I'm using Drupal 6.20 with Charts and Graphs 6.x-2.6. This is a plain vanilla testing site with only the required modules needed to run Charts and Graphs. Whenever I load a page what has graphs in it (Statistics Pro, Views Charts via Views Group By) teh WSOD comes out. I checked Apache's error log and it threw the error below.
This one uses Bluff API:
[Mon Jan 24 08:42:15 2011] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Class 'ChartsGraphsCanvas' not found in /var/www/html/sites/all/modules/charts_graphs/apis/charts_graphs_bluff/charts_graphs_bluff.class.inc on line 13, referer: http://localhost/admin/settings/statspro
This one uses Google Charts:
[Mon Jan 24 08:51:32 2011] [error] [client 118.101.105.131] PHP Fatal error: Class 'ChartsGraphsCanvas' not found in /var/www/html/sites/all/modules/charts_graphs/apis/charts_graphs_google_charts/charts_graphs_google_charts.class.inc on line 35, referer: http://localhost/admin/settings/statspro
An audit log from ModSecurity threw this one:
Apache-Error: [file "/builddir/build/BUILD/php-5.3.5/sapi/apache2handler/sapi_apache2.c"] [line 326] [level 3] PHP Fatal error: Class 'ChartsGraphsCanvas' not found in /var/www/html/sites/all/modules/charts_graphs/apis/charts_graphs_google_charts/charts_graphs_google_charts.class.inc on line 35, referer: http://localhost/admin/settings/statspro
Apache-Handler: php5-script
Stopwatch: 1295859092738752 120157 (785 2152 -)
Producer: ModSecurity for Apache/2.5.12 (http://www.modsecurity.org/); core ruleset/2.0.5.
Server: Apache
Any help would be great!
Comments
Comment #1
rsevero commentedYou are facing some strange issues in fact. I say so because charts_graphs_canvas.class.inc file which defines the ChartsGraphsCanvas class is included in the hook_init of Charts and Graphs.
Can you confirm if charts_graphs_init() is really executed? Do you have any error when executing charts_graphs_init()?
Comment #2
amal850720 commentedAfter extensive searching through the net and checking the PHP error log, I found out that it was because of the performance-oriented APC settings. Disabling apc.include_override_once solved this problem. charts_graphs_init() was not called with this turned on. Everything works fine now (Views Charts + Charts and Graphs, Statistics Pro).
Thanks for the quick response.
Comment #3
rsevero commentedMarking it as fixed.