I'm trying to upgrade Drupal from 6.26 to 7.14 and I am getting the following error with one of the modules I wrote:
(20024)The given path is misformatted or contained invalid characters: Cannot map GET
It's supposedly an Apache error, but I don't have the problem with D6.
Here is the code: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');