|
Changed servers, now text is missing |
Posted by Mark on May-28-2015 09:52 |
|
We recently changed our server hardware. We moved Apache, PHP and chartdirector from one Ubuntu server to another. All running the same versions of the software.
Charts are there, except the text from the labels looks like it's missing.
Everything else looks good otherwise.
I can't seem to put my finger on what the problem is. Anyone have any ideas?
Thanks.
Mark |
Re: Changed servers, now text is missing |
Posted by Peter Kwan on May-28-2015 23:37 |
|
Hi Mark,
It is probably because of the missing fonts subdirectory. In the ChartDirector for Linux
distribution, there is a fonts subdirectory include in the same directory that contains the
ChartDirector shared object "libchartdir.so". For PHP, these files and the fonts subdirectory
are typically copied to the PHP extension directory. If you just copied the phpchartdir???.dll
and libchartdir.so, but not the fonts subdirectory, there will be no fonts and so no text.
Please also make sure the "fonts" subdirectory and all the fonts inside are readable by
everyone.
For further diagnostics, the ChartDirector distribution comes with a diagnostic script
"cdinfo.php". One of the things it would report is a font loading test. It will explain why the
fonts cannot be loaded. (Note: Like other sample code in ChartDirector, the "cdinfo.php"
expects uses require_once("../lib/phpchartdir.php"); to load ChartDirector, so it needs to be
run with the "phpchartdir.php" in that directory.)
Hope this can help.
Regards
Peter Kwan |
|