ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  PHP Library Load Error
Posted by Pete on Dec-20-2012 20:42
Hi Pete,

I've followed the instructions for setting up the Chart Director Extensions, and alos looked at the previous postings in this Forum on the the matter. But I still get the error page as follows:

PHP version : 5.3.19
PHP / Web Server interface : apache2handler
PHP configuration file location : "/etc/php.ini"
PHP extension directory : "/usr/lib64/php/modules"

As above, in "/etc/php.ini"  I added a line "extension=phpchartdir530.dll" to the ini file.

Also, in  "/usr/lib64/php/modules" I copied the entire chartdirector/lib directory. But I still get the error saying PHP has not loaded the Chart Director Extension - this is when I am running the "phpdemo" contents provided in your php package.

I also restarted my apache after these changes using "sudo /etc/init.d/httpd restart" - which is correct for this particular installation. I saw it STOP and then START again.

I was using PHP 5.2 previously and am currently migrating my server to 5.3, the only change I have made is using the phpchartdir530.dll library instead of  phpchartdir520.dll

So, I have had this working fine on my 5.2 php system. Is there anything in particular I have missed on PHP 5.3? For instance I notice the extentions directory is different and is in modules, but I copied your Lib files into here.

Do I still invoke the libraried in my php using "require_once("phpchartdir.php");" ? Although as stated your Demo PHP diectory also reports the library was not loaded.

Also at first my new PHP 5.3 installation did not have PHP-GD installed by default. But I then installed these fine and phpinfo() shows these as installed, but that wasn't the problem I don't think.

Regards,

Pete

  Re: PHP Library Load Error
Posted by Pete on Dec-20-2012 20:54
Oh, actually! I've just realised my existing installation is on "Linux infong 2.4 #1 SMP Fri May 18 17:32:59 UTC 2012 i686 GNU/Linux"

....whereas my new server I am testing is on:

"Linux x86_64 #1 SMP Wed Oct 3 19:54:33 UTC 2012 x86_64"

....so I guess I should download the 64-bit verison of Chart Director as I just copied the existing version I had!

I will report back when I have done this!

  Re: PHP Library Load Error
Posted by Pete on Dec-20-2012 22:44
Hi Peter,

So, now with right version for my OS, the libraries are now loading!

However, something strange. Are there any issues you can think of going from 32 bit version of PHP to 64?

So, with your DEMO pages. things like "Simple Pie CHart", "3D Pie Chart", "Multi Depth Pie Chart",  "Side Label Layout", Circular Label Layout" All fail to load any image - just a Red Cross - but then everything below that works OK.

Just that my custom charts all produce the Red Cross, which are a mixture of Contour, and Scatter charts. Not sure why I just get a Red Cross, but it is the same symptom of why I can't render yout first 5 Pie Charts and if so what might be the symtom be?

All I have done is use the same php code as I was using with the 32 bit version, same Chart Director commands. Just that I get no final image.

  Re: PHP Library Load Error
Posted by Peter Kwan on Dec-20-2012 23:29
Hi Pete,

Please try the method below to determine what is the error message inside the "Red X". (Note: you would need to configure your PHP not to disable sending error messages to the browser, otherwise you cannot see the error message on the browser side. In this case, you can only see the error message from the Apache error log.)

http://www.chartdir.com/forum/download_thread.php?site=chartdir&bn=chartdir_faq&thread=1117817200

Regards
Peter Kwan

  Re: PHP Library Load Error
Posted by Pete on Dec-20-2012 23:33
Hi Peter! Me again!

Ahh! I forgot to copy "getchart.php" into my environment. I am using makeSession in my code. It is in the demo directory - I'd forgotten about that!

Everything is fine now! (Except for the first 5 Demo Pie Charts!!!) - not sure why they fail.....!