|
PHP error |
Posted by Ben on Jul-05-2011 03:59 |
|
Hi,
I installed Chart Director on a site I set up a few years ago, and recently it's started
showing an error. It's on a shared server, so it may be that the hosting company has
updated the PHP installation, but otherwise nothing has changed. Does the following help
diagnose what might be wrong?
Thanks,
Ben
Error Loading ChartDirector for PHP Extension
An attempt has been made to dynamically load ChartDirector, but it was not successful.
Please refer to your ChartDirector for PHP documentation or click here for how to resolve
the problem.
Error Log
Trying to load "phpchartdir520.dll" from the PHP extension directory
"/home/spasurve/www/ChartDirector/lib".
dl(): Unable to load dynamic library
'/home/spasurve/www/ChartDirector/lib/phpchartdir520.dll' -
/home/spasurve/www/ChartDirector/lib/phpchartdir520.dll: wrong ELF class: ELFCLASS32
Also trying to load "phpchartdir520.dll" from
"/home/spasurve/public_html/ChartDirector/lib".
dl(): Temporary module name should contain only filename
System Information
Operating System : Linux grange.accountservergroup.com 2.6.18-338.12.1.el5.lve0.8.34
#1 SMP Tue Jun 7 16:46:50 EEST 2011 x86_64
PHP version : 5.2.17
PHP / Web Server interface : cgi
PHP configuration file location : "/home/spasurve/public_html/php.ini"
PHP extension directory : "/home/spasurve/www/ChartDirector/lib" |
Re: PHP error |
Posted by Peter Kwan on Jul-05-2011 20:54 |
|
Hi Ben,
The error message means that you are using the 32-bit Linux edition of ChartDirector, but your Linux OS is 64-bit. If your system was working before, your host probably have moved to your side to another server running a different OS that is incompatible with your original server.
If the above is the cause of the porblem, please download and use "ChartDirector for PHP" for Linux (x86_64) instead. Please copy all files in "ChartDirector/lib" to your PHP extension directory "/home/spasurve/public_html/ChartDirector/lib".
Hope this can help.
Regards
Peter Kwan |
Re: PHP error |
Posted by Ben on Jul-08-2011 05:16 |
|
That sorted it! Thanks Peter,
Ben |
|