Closed (fixed)
Project:
Charts and Graphs
Version:
6.x-1.0-rc2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
23 Mar 2010 at 13:39 UTC
Updated:
8 Jul 2010 at 02:00 UTC
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
Comment #1
eiland commentedComment #2
jpsoto commentedI 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;
Comment #3
rsevero commentedI have just tried the original Charts and Graphs method and the new one proposed. Got the following results:
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.
Comment #4
rsevero commented