Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.0

Bug #5994 Error
Submitted: 2005-11-17 10:04 UTC
From: matjaz dot toplisek at toplisek dot net Assigned:
Status: Bogus Package: Image_Graph
PHP Version: 4.3.10 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-11-17 10:04 UTC] matjaz dot toplisek at toplisek dot net
Description: ------------ When I would like to show Graph there will be error in file GRAPH.PHP line: class Image_Graph extends Image_Graph_Element Test script: --------------- File is as sample logo_graph.php Expected result: ---------------- I would like to see sample graph: logo_graph.php Actual result: -------------- Fatal error: Cannot redeclare class image_graph in /usr/lib/php/Graph.php on line 66

Comments

 [2005-11-17 11:01 UTC] nosey
This is not a bug, it is most likely because you are including the Image/Graph.php file twice. You are probably using include/require instead of include_once/require_once?
 [2005-11-17 11:20 UTC] matjaz dot toplisek at toplisek dot net
I use the following in Graph: * Include file Image/Graph/Element.php */ require_once 'Image/Graph/Element.php'; /** * Include file Image/Graph/Constants.php */ require_once 'Image/Graph/Constants.php';
 [2005-11-17 11:43 UTC] nosey
You only need to include(_once) Image/Graph.php and then use Image_Graph::factory() to do the rest
 [2005-11-17 18:48 UTC] matjaz dot toplisek at toplisek dot net
I have fixed problems, but there is the following error: Warning: imagettfbbox(): Could not find/open font in /usr/lib/php/Image/Canvas/GD.php on line 1240 do you know what is wrong? Need help
 [2005-11-19 11:19 UTC] nosey
This is not the place to do support - this is the place to report bugs in the software or request new features. Search the PEAR mailing list archives or the forum at http://forum.veggerby.dk/ you should find some answers - this question has been brought up numerous times.
 [2005-11-19 11:36 UTC] matjaz dot toplisek at toplisek dot net
If I have problem to show graph, there is bad support to implement chart. you are not helpful. Thanks. I will use another chart software.
 [2007-04-18 15:46 UTC] osde8info (Clive Darra)
https://help.ubuntu.com/community/PhpPear $ sudo -i # cd /usr/share/php/Image/Canvas # ln -s /usr/share/fonts/truetype/msttcorefonts/ Fonts $ http://pear.php.net/bugs/bug.php?id=3487 http://pear.php.net/bugs/bug.php?id=5994