I get the following error in Drupal 7.14 and with the latest Dev version:
(20024)The given path is misformatted or contained invalid characters: Cannot map GET
with this code:
<?php
function draw_fusionchart($elementArray){
drupal_add_js(drupal_get_path('module', 'fusion_interface') .'/FusionCharts_Personal/Code/FusionCharts/FusionCharts.js', 'file');
include_once('./'.drupal_get_path('module', 'fusion_interface') ."/FusionCharts_Personal/Code/PHP/Includes/FusionCharts.php");
$chartType = $elementArray[0];
$strXML = $elementArray[1];
$flashsource = base_path() . drupal_get_path('module', 'fusion_interface') ."/FusionCharts_Personal/Code/FusionCharts/" . $chartType;
//Create the chart - MS Column 3D Chart with data contained in strXML
return renderChart($flashsource, "", $strXML, "productSales", 600, 300);
}
The error occurs on the "drupal_add_js" line. The error does NOT occur with the following code:
<?php
function draw_fusionmap($strXML){
include_once('./'.drupal_get_path('module', 'fusion_maps_interface') ."/FusionMaps_Personal/Code/PHP/Includes/FusionMaps.php");
drupal_add_js(drupal_get_path('module', 'fusion_maps_interface') .'/FusionMaps_Personal/JSClass/FusionMaps.js');
$flashsource = base_path() . drupal_get_path('module', 'fusion_maps_interface') ."/FusionMaps_Personal/Maps/FCMap_USA.swf";
//Create the chart - MS Column 3D Chart with data contained in strXML
return renderMap($flashsource, "", $strXML, "firstMap", 750, 460,0,0);
}
AND the error does not occur in Drupal 6.26 so I believe there is something in D7 causing the error.
Comments
Comment #1
AmyJohnson CreditAttribution: AmyJohnson commentedComment #2
marcingy CreditAttribution: marcingy commentedThis is not a major bug in drupal terms - it is actually likely linked to contrib module you are using.
Comment #3
AmyJohnson CreditAttribution: AmyJohnson commentedI think you're right, it's linked to the javascript file I'm trying to load, BUT the error does not occur with Drupal 6.