PNG images doesn't show up because of errors (graphstat/history_graph_nodes)
kenorb - February 16, 2009 - 21:19
| Project: | Graphstat |
| Version: | HEAD |
| Component: | Rendering |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
When I'm going to: admin/reports/graphs images doesn't exist.
When I'm going manually to: /graphstat/history_graph_users or /graphstat/history_graph_nodes etc.
The page is empty.
What's wrong?

#1
I've got this error in watchdog:
call_user_func_array() [<a href='function.call-user-func-array'>function.call-user-func-array</a>]: First argument is expected to be a valid callback, 'graphstat_render_graph' was given w pliku /home/sites/co.uk/public_html/includes/menu.inc, linia 348.#2
I've cleared the cache and error disappeared, because probably after upgrade.
But images still doesn't show up, because contain errors.
The reason can be, because Devel show some html tags at the end. See attachment.
It's possible to turn it off without disabling Devel feature?
#3
Disabled Devel and still testing...
And it's because headers for images are in text/html format:
<img height="300" width="500" alt="Number of Nodes (last 2 weeks)" title="Number of Nodes (last 2 weeks)" src="/graphstat/nodes_graph_nodes_details"/>etc.
GET /graphstat/nodes_graph_node_typesResponse HeadersDate Mon, 16 Feb 2009 21:35:43 GMT
Server Apache/2
X-Powered-By PHP/5.2.8
Expires Sun, 19 Nov 1978 05:00:00 GMT, Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control store, no-cache, must-revalidate, post-check=0, pre-check=0, store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-Encoding gzip
Vary Accept-Encoding
Set-Cookie DRUPAL_UID=1; expires=Thu, 12-Mar-2009 01:09:04 GMT; path=/;
Last-Modified Mon, 16 Feb 2009 21:35:44 GMT
Keep-Alive timeout=15, max=98
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html; charset=utf-8
Request HeadersUser-Agent Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 FirePHP/0.2.1
Accept image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language en-gb,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive