The solution worked for me. There are two jpgraph.php files. The one that worked for me was the one under \Program Files\Apache Group\Apache\htdocs\crm\jpgraph\src
Hope this helps.
The solution worked for me. There are two jpgraph.php files. The one that worked for me was the one under \Program Files\Apache Group\Apache\htdocs\crm\jpgraph\src
Hope this helps.
Can you just set the variables that JPGraph was trying to set with hard coded values? If that does not work then there is a bigger problem.
Also, you might want to try '/' slashes. This will prevent the need to hard code double slashes like "c:\\windows".
I recommend hard coding the paths with the '/' slash, and seeing if it works. If it does not work, either start adding logging to see what is going on or contact us at contact@sugarcrm.com for more interactive help.
Jacob
I've already tried hard-coding the variables (commenting out the CACHE_DIR and TTF_DIR statements and setting them manually, AND ensuring they're set to the correct values. (I tried slashes every which way...\\, /, \, //, etc)
I've even turned debug on and posted the results here in an earlier post.
I've also been to the forums for jpgraph and some others are having similar issues, but none of the solutions seem to work for me. I've tried setting options to show text errors, image errors, forcing the use of the GD_LIBRARY, bla bla bla. No errors, no indication, and as you can see in one of my previous posts, the debug log shows the graphs being drawn.
I'm going to try some debugging with Komodo's debugger and see if I can find anything. I'll probably take your suggestions Jacob and contact the e-mail address you listed for interactive help.
Ok, my problem has a band-aid on it now and is working.
There appears to have been 3 problems converging into one big one. They are as follows:
Problem#1:
TTF_DIR needs to be defined in jp-config.inc. Either one of the following works:
DEFINE("TTF_DIR","c:/windows/fonts/");
DEFINE("TTF_DIR","c:\\windows\\fonts\\");Problem#2:
$_ENV[] references in jpgraph.php need to be changed to $_SERVER (thanks to Thermopyl for that one)Incidentally, I upgraded to version 1.16 of jpgraph along my troublshooting sessions for the hell of it. So far, so good.Problem#3:
I appears the last problems was with the $includeDirectory in my config.php file. When I originally installed it, I remember it complained it couldn't modify it, and the path to the inlude file in the installer looked like this:
http://localhost/sugarcrm/\include
...which I "corrected", or at least I thought I did, by modifying it in config.php with the proper slash. It seems as if some of the code wasn't able to find the inlude directory.
I ended up re-installing and the installer didn't complain about modifying config.php. Oddly enough, config.php still looks funny to me (no separating '\' between $root_directory and $includeDirectory) , but it's working so I'm not touching.
To be honest, I'm still confused as to why when you replace $_ENV[] with $_SERVER[] it works (i.e. how is the SystemRoot environment variable available in the $_SERVER array?) What's even more baffling is that if it is available there, why does it work only if TTF_DIR is defined previously when that block of code in jpgraph.php is supposed to determine it if it's not defined? I actually changed $_SERVER to getenv() and then back to the original $_ENV and the image did not show even with TTF_DIR defined in jpg-config.inc. In theory, if TTF_DIR is defined the "if" statement should fail and it should never attempt to build the fonts directory from the enironment variable.
<sigh>
:blink:
I have tried all you have suggested:
- Forced TTF_DIR and CACHE_DIR to "c:/winnt/fonts/" and "c:/winnt/temp" respectively
- I have replaces $_ENV with $_SERVER
- and I have re-installed 3 times
BUT
I still can't see the "Total Pipeline by Sales Stage" image. All the other imigaes renders fine (even the 3D pie chart) but not this one. This problem occurs on both the Home and DashBoard pages
I have the following installed:
Apache 1.3.31
PHP 4.3.8 (which is bundled with GD 2.0.23)
SugarCRM 1.1f
All configuration seems to be in place and working properly.
Any help would be appreciated.
Christiaan
I did the above two steps on a fresh install, and it is now working perfectly:
Problem#1:
TTF_DIR needs to be defined in jp-config.inc. Either one of the following works:
DEFINE("TTF_DIR","c:/windows/fonts/");
DEFINE("TTF_DIR","c:windowsfonts");
Problem#2:
$_ENV[] references in jpgraph.php need to be changed to $_SERVER (thanks to Thermopyl for that one)
Thanks for the work around!
Scott
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks