Fatal error:Call to undefined function getFCColor()
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Fatal error:Call to undefined function... Expand / Collapse
Author
Message
Posted 4/16/2008 1:50:19 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 6/22/2008 7:28:15 AM
Posts: 15, Visits: 29
I am new to FusionCharts. I'm working through the examples but when I try anything under PHP/BasicExamples instead of seeing the chart I see the error above. I have checked that the path to FC_Color.php and FC_Color.asp is correct. (I tested it by adding an echo statement to FusionCharts.php which is in the same directory. That statement displays when I point my browser to SingleSeries.htm). I have also tried copying FC_COLOR.php and FC_Color.asp to the same directory where SingleSeries.php sits and changing the include statement so that it only references the file and not the path. I've done this separately for both the asp and the php versions on FC_Color. It makes no difference. Has anyone else seen this issue? Can anyone help to to debug this? Thanks in advance for any insights you can share.

--Liz
Post #5711
Posted 4/19/2008 11:09:03 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 6/22/2008 7:28:15 AM
Posts: 15, Visits: 29
All.

Is this a really stupid question, or has no one any ideas on how to fix this?

I'd like to understand why I'm having this issue and I'd like to get it fixed so that I can start to use Fusion Charts on my website. Any input is appreciated.

Thanks!

--Liz

Post #5783
Posted 4/21/2008 1:45:56 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 4:23:50 AM
Posts: 738, Visits: 1,187
Hi,

Can you please send us the code and directory strucure that you are using?

It is probable that FC_Colors.php is not getting included in the PHP Application. This error occurs when the file is not included or not properly loaded. If you try setting error_reporting  =  E_ALL in PHP.ini you could also see warning like this :

Warning: include(Includes/FC_Colors.php) [function.include]: failed to open stream: No such file or directory in ...\PHP\ArrayExample\SingleSeries.php on line 7

Warning: include() [function.include]: Failed opening 'Includes/FC_Colors.php' for inclusion (include_path='.;C:\php5\pear') in ...\PHP\ArrayExample\SingleSeries.php on line 7

This issue never occured when we created and tested the code in our labs.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #5792
Posted 4/21/2008 2:34:28 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 4/29/2008 4:06:17 AM
Posts: 44, Visits: 93
You just include keyword 'php' in first line of file FC_colors.php.

They have just given <? //php code?>. you just include <?php on first line .

Post #5799
Posted 4/21/2008 4:19:09 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 6/22/2008 7:28:15 AM
Posts: 15, Visits: 29
Thank you both. I did make the suggested change to the first line of FC_Colors.php and I made quite sure it was in the path of the includes statement. It works now. I believe I was hitting both of these issues. I've noticed that if I move all the files that I need to include (FusionCharts.php, FC_Colors.php, FusionCharts.js and the swf file that I call) to the directory where the code resides, it usually works now.

It's not an ideal way of working, I know, but as long as I can get it to do what I want, right now that's good enough.

I appreciate your help, Sudipto. I did see exactly the error message you mentioned on a couple of occasions.

--Liz

Post #5815
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 7:40pm


Execution: 0.063.