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?
Map Module errors
Re: Map Module errors
Hi,
I got the same error.
I tried to modify the Map.module.php.
When I replace by the error disappear and the map is displayed but with no points.
I'm stuck now.
If anybody can help us.
Regards,
DiNo
I got the same error.
I tried to modify the Map.module.php.
When I replace
Code: Select all
$map->image->geturl();
Code: Select all
$map->imageurl = '/modules/Map/images/WorldMap.png';
I'm stuck now.
If anybody can help us.
Regards,
DiNo
Re: Map Module errors
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:
Then the links given in the admin panel will work - finally.
Cheers,
manu
To get it to work use something similar in your page like this (note the parameter map instead of id):
Code: Select all
{cms_module module="map" map="1"}
Code: Select all
$mapid = (isset($params['id']) ? $params['id'] : '');
Cheers,
manu
Re: Map Module errors
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?
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?