Missing Images?
Kieg Khan - February 24, 2006 - 08:46
| Project: | Graphstat |
| Version: | HEAD |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hello,
Please have a look at the attached screen shot. I have installed graphstat and it seems to work well under 4.7.0beta3 except that the three entries under the graph do not have any information. If looks like image place holders, but it would seem to indicate that there should be some values displayed there.
I have only installed the graphstat module as per download from CVS files, so if I am supposed to have included something else to make this display correctly, please let me know.
Thanks.
| Attachment | Size |
|---|---|
| graphstat.JPG | 38.35 KB |

#1
Possibly related... on an upgraded web site, from 4.6.3 to 4.7.2, I decided to install graphstat. The daily charts show up fine - great - but none of the history charts show up at all. The render.php file just returns a dud image (0x0 pixels, 0 bits size).
As an indication of what's going on, here's the relevant lines from the SQL log for the node chart that devel.module spits out:
1.58 0 graphstat_graphs_history SELECT MIN(created) FROM node1.83 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1000118162 AND nid != 0
5.78 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1014143253 AND nid != 0
4.22 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1028168344 AND nid != 0
3.96 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1042193435 AND nid != 0
4.62 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1056218526 AND nid != 0
4.77 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1070243617 AND nid != 0
4.12 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1084268708 AND nid != 0
5.35 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1098293799 AND nid != 0
6.43 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1112318890 AND nid != 0
3.85 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1126343981 AND nid != 0
6.51 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1140369072 AND nid != 0
4.8 0 graphstat_graphs_history SELECT COUNT(nid) FROM node WHERE created <= 1154394163 AND nid != 0
The URL of the image for the nodes history chart is: render.php?l=1,19,19,19,19,19,19,21,32,306,364,428&xl=09/10/2001,04/22/2003,12/01/2004,08/01/2006&x=Date&y=Number%20of%20nodes.
Any suggestions as to how I can help fix this are appreciated :)
#2
Did you ever get further with this? I have the exact same issue - daily's are OK - history - nothing.
#3
I had the same issue and did a
$ wget -o render.png http://example.com/modules/contrib/graphstat/render.php?...on one of the failed images.$ file render.pngtold me this was an ascii text file, and contained an error message saying:<b>Fatal error</b>: Call to undefined function: imageantialias() in ...I have installed the gd library with php4, I have made sure it is working (through
phpinfo()), but the functionimageantialias()sure as h... wasn't working. The php documentation forimageantialias()has a note at the end, saying:Note: This function is only available if PHP is compiled with the bundled version of the GD library.
I'm using debian and the package php4-gd depend on libgd2-xpm, which I'm sure isn't the version bundled with php ;-)
The quick solution: Uncomment all references to
imageantialias()Patch attached.
#4
Thanks for the patch - works well for me (am also running the debian php packages).
#5
Yup. Works for me too: comment out (or otherwise disable) the two instances of imageantialias() in render.php and the history graphs show up fine. I'm using php5, btw.