Closed (fixed)
Project:
Mapbuilder
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
1 Mar 2007 at 15:52 UTC
Updated:
15 Mar 2007 at 20:46 UTC
I create a blog entry, add the following HTML to the body:
<map>mapbuilder/config/16</map>
The following error is thrown:
Fatal error: Call to undefined function path_to_url() in /[...]sites/all/modules/mapbuilder/mapbuilder.module on line 821
At line 821 is the following function, which has been commented out:
function path_to_url( $path ) {
$parts = parse_url( $path );
//drupal_set_message( var_export($path,true) );
if( isset($parts['scheme']) )
return $path;
if( $path[0] == '/' )
return 'http://' . $_SERVER['HTTP_HOST'] . $path;
global $base_url;
return $base_url . '/' . $path;
}
When I uncomment the function, the page displays.
Comments
Comment #1
jpulles commentedThe function path_to_url was meant to be replaced by config_path_to_url. I hadn't noticed that it was still used in 1 place.
Comment #2
(not verified) commented