After fixing http://drupal.org/node/912414 this issue appears:

With 'Direct embedding - do not use JavaScript replacement' selected i get this message:
'You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.'
With 'SWFObject 2 - JavaScript' selected it just does not render, empty white space.

If i check the source of the webpage, i see the 'base url' of the site (the directory it's in) twice in the url, removing it makes it work.

the "base" is fine, the "src" is wrong, also the swfoject.embedSWF (".... line is wrong, the directory is added twice. http://www.bla.org/basedir/basedir/sites/all/modules/charts_graphs/apis/...")

Swf status page works, i see the flash demo. Followed all the same steps as in 912414.

Comments

rob c’s picture

in file charts_graphs_open_flash.class.inc
in the apis dir

function get_chart() {
...
$openflash_swf_uri = $base_url . base_path() . $mod_path . '/open-flash-chart.swf';
...

breaks it, base_path() adds the directory again, base_url already contains it, so it's added twice.
The site i'm testing this on does not have any settings in the settings.php, so it's behaving like this by default?

my base_url returns http://host.bla/subdirdrupalisin
my base_path() returns /subdirdrupalisin/

I've changed it to:

$openflash_swf_uri = $base_url . "/" . $mod_path . '/open-flash-chart.swf';

Now it works, but it shouldn't be like this i assume?

rsevero’s picture

Project: Statistics Pro » Charts and Graphs
Version: 6.x-2.3 » 6.x-2.4
Assigned: Unassigned » rsevero
Status: Active » Closed (duplicate)

This is a Charts and Graphs bug, not Statistics Pro.

It was already reported at #921748: Open flash path bug but only now I managed to understand the issue.

Thanks for your info.

rob c’s picture

Jup it is, your right, only discovered it before i replied, great to hear your making progress. Sorry to post it here, but now you solved it already, so, i won't open / reply to the correct post, closing, next issue :)