This piece of code in charts_openflash.class.inc

$mod_path = drupal_get_path('module', $this->getModuleName());
    $openflash_swf_uri = $mod_path . '/open-flash-chart.swf';
    $openflash_swf_uri = url($openflash_swf_uri, array('absolute' => TRUE));

which return example.com/?q=sites/all/modules/charts_graphs/apis/charts_openflash/open-flash-chart.swf instead of example.com/sites/all/modules/charts_graphs/apis/charts_openflash/open-flash-chart.swf which actually breaks all mechanism.

Comments

eiland’s picture

Priority: Normal » Critical
jpsoto’s picture

I have checked the same critical issue in charts_openflash.class.inc

Workaround:

//$openflash_swf_uri = url($openflash_swf_uri, array('absolute' => TRUE));
$openflash_swf_uri = base_path() . $openflash_swf_uri;

rsevero’s picture

I have just tried the original Charts and Graphs method and the new one proposed. Got the following results:

$openflash_swf_uri => http://drupal6/sites/all/modules/charts_graphs/apis/charts_openflash/open-flash-chart.swf
$openflash_swf_uri_new => /sites/all/modules/charts_graphs/apis/charts_openflash/open-flash-chart.swf

Can't see the difference mentioned in the opening post.

Also looking at the url function used by Charts and Graphs I also cannot see how it would produce the "?q=" result.

I bet the difference Daniel A. Beilinson mentioned is being generated by some other factor.

rsevero’s picture

Assigned: Unassigned » rsevero
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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