CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • PDF not generating for reports
Pages: [1]

Author Topic: PDF not generating for reports  (Read 4620 times)

leapywca

  • Guest
PDF not generating for reports
November 20, 2009, 08:59:24 am
So on all reports pages it has a button that says either "Preview PDF" or "PDF" and if we click either of them, we get a blank page. We've tried in both FF and Ie. Neither is working. We also have custom reports that we wrote and they do not display either. Any ideas of how to fix this?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: PDF not generating for reports
November 20, 2009, 09:57:55 am

please check your error logs to see what the message is. a blank page report by itself is not very useful to us :(

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

leapywca

  • Guest
Re: PDF not generating for reports
November 20, 2009, 11:09:33 am
Hey lobo, this is all we're getting in the CiviCRM Log:
Code: [Select]
Nov 20 14:07:22  [info] $IDS Detector Details = Array
(
    [0] => Array
        (
            [name] => report_header
            [value] => <html>
  <head>
    <title>CiviCRM Report</title>
    <style type="text/css">@import url(*url removed*/drupal/sites/all/modules/civicrm/css/print.css);</style>
  </head>
  <body><div id="crm-container">
            [page] => /drupal/civicrm/report/instance/30
            [userid] => 1
            [session] => 97e581bc4b8d366ba1686ebe8bbf161e
            [ip] => 127.0.0.1
            [reaction] => 0
            [impact] => 47
        )

    [1] => Array
        (
            [name] => report_footer
            [value] => <p><img src="*url removed*/drupal/sites/all/modules/civicrm/i/powered_by.png"></p></div></body>
</html>

            [page] => /drupal/civicrm/report/instance/30
            [userid] => 1
            [session] => 97e581bc4b8d366ba1686ebe8bbf161e
            [ip] => 127.0.0.1
            [reaction] => 0
            [impact] => 47
        )

)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: PDF not generating for reports
November 20, 2009, 03:52:10 pm

please check the apache error logs. PHP fatal errors are recorded there

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

leapywca

  • Guest
Re: PDF not generating for reports
November 23, 2009, 05:41:26 am
Hey Lobo, here's what the apache error log yields:

Code: [Select]
PDFlib exception (fatal): [1202] PDF_set_parameter: Unknown key 'objorient'
[Mon Nov 23 08:36:54 2009] [notice] Parent: child process exited with status 99 -- Restarting.
[Mon Nov 23 08:36:54 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Nov 23 08:36:54 2009] [notice] Digest: done
[Mon Nov 23 08:36:56 2009] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9 configured -- resuming normal operations
[Mon Nov 23 08:36:56 2009] [notice] Server built: Dec 10 2008 00:10:06
[Mon Nov 23 08:36:56 2009] [notice] Parent: Created child process 6692
[Mon Nov 23 08:36:58 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Nov 23 08:36:58 2009] [notice] Digest: done
[Mon Nov 23 08:36:59 2009] [notice] Child 6692: Child process is running
[Mon Nov 23 08:36:59 2009] [notice] Child 6692: Acquired the start mutex.
[Mon Nov 23 08:36:59 2009] [notice] Child 6692: Starting 250 worker threads.
[Mon Nov 23 08:36:59 2009] [notice] Child 6692: Starting thread to listen on port 443.
[Mon Nov 23 08:36:59 2009] [notice] Child 6692: Starting thread to listen on port 80.

It seems to be an issue with the PHP 5.2 pdf dll file.  Is there any work arounds or fixes that you know of?
« Last Edit: November 23, 2009, 06:49:17 am by leapywca »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: PDF not generating for reports
November 23, 2009, 06:54:28 am

u will need to follow this issue with the pdflib folks

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

leapywca

  • Guest
Re: PDF not generating for reports
November 23, 2009, 10:19:44 am
So this seems to be an issue with PHP 5.2.9 (perhaps 5.2.*) and Windows.

In case anyone else has this issue here is how we fixed it:

We downloaded pdflib lite (free version) from http://sourceforge.net/projects/gnuwin32/files/pdflib-lite/6.0.2/pdflib-lite-6.0.2.exe/download installed it and navigated to C:\Program Files\GnuWin32\bin

Once in this directory we copied the file pdflib5.dll  then navigated to C:\xampp\php\ext and pasted the file in.  Then we just disabled the old dll and enabled the new one in the php.ini file (found in your php directory) by commenting out the line extension=php_pdf.dll and entering in the line extension=pdflib5.dll

the file should then look like this
Code: [Select]
;extension=php_pdf.dll
extension=pdflib5.dll

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • PDF not generating for reports

This forum was archived on 2017-11-26.