[rt-devel] Statistics Add-on for RT3

Jacob S. Barrett jbarrett at pogozone.com
Thu Aug 14 13:45:04 EDT 2003


I am running RT 3.0.4 with the latest statistics package from 
http://www.tzi.de/~hollow/Statistics3.tgz.

On all the stats pages I just get the broken image icon.  When I try to 
view the image directly Mozilla claims that the content type it returned 
as text/html and displays the bytes of the PNG as text.  I don't know 
too much about RT yet to really debug this myself but I tried a few 
things.  I modified one of the Chart files and changed the line that 
said $r->header_out("image/$format") to 
$r->content_type("image/$format").  This time Mozilla got the correct 
content type, but complained that the image was corrupt and couldn't be 
displayed.  I tweaked around with a few more things, but couldn't get 
anywhere.  I saved the image to disk and opened it with a binary editor 
and noticed that there is a line feed (0x0a) in the first byte.  If I 
delete that byte I can load the image.  I am not sure where it is coming 
from though, so I can't fix it.

I can't imagine everyone that is using this had to change this line and 
weak a bunch of stuff so, am I missing something trivial here?  Are 
there updates or patches to the above version that I am missing?

Thanks,
Jake

-- 
Jacob S. Barrett
Chief Technology Officer
PogoZone LLC

   email: jbarrett at pogozone.com
     web: www.pogozone.com
   voice: 360-676-8772
     fax: 360-733-3941
address: 114 W. Magnolia Street Suite 417
          Bellingham, Washington 98225




More information about the Rt-devel mailing list