This topic is locked

Fatal error when attempting to use PDF view

11/5/2008 11:12:36 AM
PHPRunner General questions
A
alexanjn author

Hi
I'm getting an error when trying to use the PDF view for part of one of my applications (see error message below). I'm currently running the application on my PC (LOCALHOST). I don't get the error when using the PDF view on other parts of the application. I've uploaded the application and data tables to my demo account ("edit_memberdata") and there are no PDF view problems at all. The part of the application where the PDF view doesn't work on LOCALHOST is "View all member data". On LOCALHOST, PDF view works on the other parts pf the application (for example "Member"). "View all member data" and "Member" both work in the demo account_. I've tried deleting all the application files on LOCALHOST and rebuilding but it doesn't seem to help.
Thanks, Jim Alexander
Fatal error: Call to undefined function imagesx() in C:\Program Files\Apache Group\Apache2\htdocs\localhost-edit-member-data-v5\plugins\html2ps\image.class.php on line 40

J
Jane 11/6/2008

Jim,
you need to have GD2 extension enabled in your PHP to create PDFs with images.

You can find more info here:

http://www.php.net/manual/en/image.setup.php
On Windows you need to add this line to C:\Windows\php.ini file

extension=php_gd2.dll

A
alexanjn author 11/6/2008

Hi Jane
Unfortunately, there is no image. You can check out my application in the demo account at http://demo.asprunner.net/choirguy_bellsou...r_data/menu.php. The problem is with the "View all member data" feature. PDF view works on your server, but not on mine (localhost). What makes this hard to understand is that for the other features ("District", "Church", "Member", etc.) the PDF view works both on your server and my localhost. I do have an event associated with the list view in "View all member data" that causes a message to appear at the top of the list but I've tried this with another feature without a problem with view PDF. Am I missing somthing?
Jim

Jim,

you need to have GD2 extension enabled in your PHP to create PDFs with images.

You can find more info here:

http://www.php.net/manual/en/image.setup.php
On Windows you need to add this line to C:\Windows\php.ini file

A
alexanjn author 11/6/2008

Hi again
Well I tried your suggestion and it worked! I don't understand why since there is no image but thank you!
Jim

Jim,

you need to have GD2 extension enabled in your PHP to create PDFs with images.

You can find more info here:

http://www.php.net/manual/en/image.setup.php
On Windows you need to add this line to C:\Windows\php.ini file