More than 1 graph on a page problem
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



More than 1 graph on a page problem Expand / Collapse
Author
Message
Posted 7/21/2007 1:22:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/21/2007 4:25:21 AM
Posts: 1, Visits: 2
I have single charts on a page working well, but if i want a second chart I get the following error

Fatal error: Cannot redeclare encodedataurl() (previously declared in /home/mydomain/FChartsDev/Code/PHP/Includes/FusionCharts.php:11) in /home/mydomain/FChartsDev/Code/PHP/Includes/FusionCharts.php on line 11

 

Is there a fix for this ?

Post #1708
Posted 7/21/2007 3:52:52 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 5:03:15 AM
Posts: 2,183, Visits: 514
Can you make sure you're including FusionCharts.php file in your page only once?

Thanks,
Pallav Nadhani
FusionCharts Team
Post #1713
Posted 8/7/2007 11:44:01 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/21/2008 5:20:13 PM
Posts: 6, Visits: 15
I could do more than 1 graph display in my page without any problem. Do you sort your .php code and sort the place where the graphs should display in the page?
Post #1896
Posted 11/13/2007 9:25:31 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 12/1/2007 11:20:45 AM
Posts: 3, Visits: 10
i had a similar problem, I got around it by creating two pages that render the charts separately - then calling them from the page I want them to appear on using php include.

Might be a cumbersome way to go about it, but worked
Post #3036
Posted 11/14/2007 12:49:46 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 5:05:35 AM
Posts: 870, Visits: 1,383
Hi
you can try using include_once function instead of include to overcome multiple includes


Regards,

Sudipto Choudhury
FusionCharts Team
Post #3041
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 5:32am


Execution: 0.094.