|
error when trying to chart director |
Posted by carlos villanueva on May-14-2011 21:05 |
|
Hello:
I am using windows 7 and xampp.
I installed chart direcotr in C:\\xampp\\htdocs\\chartdirector.
Inside the chardirect folder I have: doc,lib phpdemo, license and readme.
In lib: finance chart, phpdir, phpchardir.chw, and phpchartdir520.dll, and more.
When Itried to used the demo it gave this error: Trying to load "phpchartdir530.dll" from the PHP extension directory "C:\\xampp\\php\\ext".
Could you hel so I can load the charts with no problem.
Thanks, Carlos |
Re: error when trying to load chart director |
Posted by carlos villanueva on May-15-2011 01:19 |
|
The complete message I had is:
Trying to load "phpchartdir530.dll" from the PHP extension directory "C:\\xampp\\php\\ext".
Fatal error: Call to undefined function dl() in C:\\xampp\\htdocs\\chart_director\\ChartDirector\\lib\\phpchartdir.php on line 44 |
Re: error when trying to load chart director |
Posted by Peter Kwan on May-16-2011 15:36 |
|
Hi Carlos,
Please make sure you have installed ChartDirector as according to the Installation section of the ChartDirector documentation. In brief, for PHP 5.3.x, you would need to:
(a) Copy *everything* from "ChartDirector/lib" (including all files) to your PHP extension directory, which is "C:\\xampp\\php\\ext".
(b) Add the following line in your active PHP configuration file "php.ini". If you are not where is your active "php.ini", please use "phpinfo" to find out.
extension=phpchartdir530.dll
(c) If you are using Apache, you need to restart it for the updated "php.ini" to take effect.
Hope this can help.
Regards
Peter Kwan |
Re: error when trying to load chart director |
Posted by carlos villanueva on May-16-2011 21:49 |
|
Dear Peter:
I have done what you tell me. Now I can see the graphics.
I get at the begining this message:
Description : ChartDirector
Version : 5.0.2
Copyright : Copyright (c) 2009 Advanced Software Engineering Limited
Boot Log :
2011-05-16 16:43:13> ChartDirector at C:\\xampp\\php\\ext\\chartdir.dll started
2011-05-16 16:43:13> Cannot load license file C:\\xampp\\php\\ext\\chartdir.lic - No such file or directory [error code = 2]
Updated license check at 2011-05-16 16:44:28> Cannot load license file C:\\xampp\\php\\ext\\chartdir.lic - No such file or directory [error code = 2]
Font Loading Test :
Searching for arial.ttf - No such file or directory [err code = 2]
Successfully opened C:\\Windows/fonts/arial.ttf
Thanks for your help |
Re: error when trying to load chart director |
Posted by Peter Kwan on May-17-2011 01:21 |
|
Hi carlos,
There message is normal and is not an error. It means ChartDirector cannot detect any license key, so it will run in evaluation mode (the charts will contain small yellow bars at the bottom). From the message, it seems everything is working fine.
Regards
Peter Kwan |
|