antialiasing problem / history graphs not showing

pepiqueta - May 19, 2006 - 06:31
Project:Graphstat
Version:HEAD
Component:Miscellaneous
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

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?

#1

ec - May 20, 2006 - 12:13

+1 for this tips. users and nodes graphs were not showing and with this tips everything is working as espected. thank you. eric.

#2

dmuth - December 27, 2006 - 04:18

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

Stephan_M - April 4, 2007 - 13:02

Thanks a lot! Works.

 
 

Drupal is a registered trademark of Dries Buytaert.