Page 1 of 1
Map Module errors
Posted: Thu Jul 26, 2007 9:00 pm
by ivobaska
I'm trying to get Map Module to work.
In Admin (Content > Map Manager) I get this error:
Undefined variable: points in E:\WWW\hoevedeknol.nl.com\www\modules\Map\map.classes.php on line 101
On the website this appears:
Fatal error: Call to a member function geturl() on a non-object in E:\WWW\hoevedeknol.nl.com\www\modules\Map\Map.module.php on line 89
The system is running on a Windows server.
Any ideas?
Re: Map Module errors
Posted: Fri Aug 03, 2007 12:20 pm
by dinoxrc
Hi,
I got the same error.
I tried to modify the Map.module.php.
When I replace
by
Code: Select all
$map->imageurl = '/modules/Map/images/WorldMap.png';
the error disappear and the map is displayed but with no points.
I'm stuck now.
If anybody can help us.
Regards,
DiNo
Re: Map Module errors
Posted: Mon Aug 06, 2007 11:28 am
by manu
In case you are still trying to get it to work here's a quick fix (actually there are two
) The reason it doesn't work for you is because you are most likely feeding the module with the wrong parameters. That's acutally not your fault, since the links in the admin panel are just wrong.
To get it to work use something similar in your page like this (note the parameter
map instead of
id):
Another way to fix it is to edit the action.default.php file in the modules/Map/ folder. Replace line 2 with the following:
Code: Select all
$mapid = (isset($params['id']) ? $params['id'] : '');
Then the links given in the admin panel will work - finally.
Cheers,
manu
Re: Map Module errors
Posted: Fri Aug 10, 2007 5:04 pm
by ivobaska
Thanks Manu.
The front end is working now. But in Admin I get this error:
Notice: Undefined variable: points in E:\WWW\hoevedeknol.nl.com\www\modules\Map\map.classes.php on line 101
Do you have a fix for that one too?