Bug #2420 [Opn]: Stats-per-release graph broken
| From: | klaus at capitalfocus dot org | Date: | Wed, 01 Jun 2005 10:45:38 +0000 |
| Subject: | Bug #2420 [Opn]: Stats-per-release graph broken | ||
| References: | 1 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-4119@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=2420&edit=1
ID: 2420
Updated by: klaus@capitalfocus.org
Reported By: eru at php dot net
Status: Open
Type: Bug
Package: Web Site
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
It seems that the whole problem is the ampersand as an HTML entity. If
it is changed to a simple ampersand, it works just fine. Of course, it
takes forever for PEAR to generate a complete graph. But on the
statistics page it shows up properly all the same.
This should be a simple fix. Unfortunately I don't have the pearweb
module checked out else I would submit a patch. (The problem is in the
"updateGraph" javascript function: line 250 of
/pearweb/public_html/package-stats.php.)
Previous Comments:
------------------------------------------------------------------------
[2004-09-30 09:51:49] eru at php dot net
Description:
------------
On modifying the statistics graph for a package (adding a release at
"Show graph of" with its own color and pressing "Update graph") no
picture is being shown. Reason is multiple errors in the
picture-generating script...
Reproduce code:
---------------
Try to modify a download statistic or browse to
http://pear.php.net/package-stats-graph.php?pid=14&releases=1092_339900
Expected result:
----------------
A nice graph.
Actual result:
--------------
Warning: Invalid argument supplied for foreach() in
/usr/local/www/pearweb/public_html/package-stats-graph.php on line 63
Warning: array_values(): The argument should be an array in
/usr/local/www/pearweb/public_html/package-stats-graph.php on line 103
Warning: Cannot modify header information - headers already sent by
(output started at
/usr/local/www/pearweb/public_html/package-stats-graph.php:63) in
/usr/local/www/pearweb/public_html/package-stats-graph.php on line 116
Warning: Cannot modify header information - headers already sent by
(output started at
/usr/local/www/pearweb/public_html/package-stats-graph.php:63) in
/usr/local/www/pearweb/public_html/package-stats-graph.php on line 117
Warning: Cannot modify header information - headers already sent by
(output started at
/usr/local/www/pearweb/public_html/package-stats-graph.php:63) in
/usr/local/www/pearweb/public_html/package-stats-graph.php on line 118
Warning: Cannot modify header information - headers already sent by
(output started at
/usr/local/www/pearweb/public_html/package-stats-graph.php:63) in
/usr/local/www/pearweb/public_html/package-stats-graph.php on line 119
JpGraph Error: Graph::Add() You tried to add a null plot to the graph.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=2420&edit=1