Hello,

I've tried following the installation instructions but I'm having difficulties:

I have downloaded version 1.9.6 of open flash chart
Copied the js folder and swf file to the open flash chart api directory

I've then tried using the demo code in the documentation but all I get in firebug is:
SWFObject is not defined

Can some one help point me at what I've done wrong?

Thanks

Matt

Comments

jvandervort’s picture

Status: Active » Postponed (maintainer needs more info)

First thing to do is check the paths. Do a view source and looks for the

<script type="text/javascript" src="/sites/all/modules/open_flash_chart_api/js/swfobject.js?Q"></script>

Make sure this path (src=) actually exists on your web server and the file is served up correctly when you type this url into your web browser. NOTE the path may be slightly different.

jvandervort’s picture

Assigned: Unassigned » jvandervort
Status: Postponed (maintainer needs more info) » Fixed

Also make sure you are using OFC v1 and swjobject v1.5

dreadstar’s picture

I also downloaded this module and couldnt get the sample code to work. It crashed my test site with the following error

Fatal error: Call to undefined method open_flash_chart_api::set_y_label_steps() in W:\www\drupal\includes\common.inc(1547) : eval()'d code on line 40

Ive also made sure on the administration modules page that open flash chart api was enabled and restarted the server for good measure.

Questions:

1. On comment#1 by jvandervort ... which file in particular do I check whether the path is correct?

2. I finally got my test site back up and running by deleting manually the node via phpmyadmin. Now how do I continue in trying to get this module working without crashing my site every single time?

dreadstar’s picture

Status: Fixed » Active

Sorry, its me again ... saw this link and it is related to my problem

http://drupal.org/node/331806

But I still dont understand how this problem was solved. The line

$g->set_y_label_steps( 4 );

was changed to what exactly?

jvandervort’s picture

Status: Active » Fixed

Try:

$g->y_label_steps( 4 );

That should fix your

Fatal error: Call to undefined method open_flash_chart_api::set_y_label_steps() in W:\www\drupal\includes\common.inc(1547) : eval()'d code on line 40

set_y_label_steps() no longer exists.

Also, if you can, please add new issues for any problem you come across so you can get email, and the other thread OP's don't get emailed regarding your questions. Thanks.

dreadstar’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.