Posted by pepiqueta on May 19, 2006 at 6:31am
Jump to:
| Project: | Graphstat |
| Version: | master |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
render.php calls imageantialias() twice when rendering line graphs (the graphs in history tab).
Acording to PHP manual:
"Note: This function is only available if PHP is compiled with the bundled version of the GD library."
Requesting the image directly (view html source for path) should return:
<br />
<b>Fatal error</b>: Call to undefined function: imageantialias() in <b>/path/www.yourhost.com/modules/graphstat/render.php</b> on line <b>91</b><br />So if the daily graphs appear but history graphs don't, try commenting these two calls.
Hope this will be useful for someone.
ps. I know this is not exactly a bug, 'cause the code is ok, but may be a deployment issue. What about a bool in hook_settings for selecting antialiasing?
Comments
#1
+1 for this tips. users and nodes graphs were not showing and with this tips everything is working as espected. thank you. eric.
#2
I too had this issue. I discovered that it can be dealt with by calling function_exists(). For example:
if (function_exists("imageantialias")) {imageantialias($graph, TRUE);
}
-- Doug
#3
Thanks a lot! Works.