|
|
|
Forum 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 ?
|
|
|
|
|
FusionCharts 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
|
|
|
|
|
Forum 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?
|
|
|
|
|
Forum 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
|
|
|
|
|
Supreme 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
|
|
|
|