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

kenorb - February 16, 2009 - 21:22
Title:Images doesn't exist» First argument is expected to be a valid callback, 'graphstat_render_graph' menu.inc on line 348

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

kenorb - February 16, 2009 - 21:32
Title:First argument is expected to be a valid callback, 'graphstat_render_graph' menu.inc on line 348» PNG images doesn't show up because of errors (graphstat/history_graph_nodes)
Project:Graphstat» Devel
Version:6.x-1.x-dev» 6.x-1.9
Component:Code / API» devel

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?

AttachmentSize
Clipboard01.jpg 211.42 KB

#3

kenorb - February 16, 2009 - 21:43
Project:Devel» Graphstat
Version:6.x-1.9» HEAD
Component:devel» Rendering

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_types

Response Headers
Date 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 Headers
User-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

 
 

Drupal is a registered trademark of Dries Buytaert.