Map Module errors

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
ivobaska
New Member
New Member
Posts: 9
Joined: Thu Jul 26, 2007 7:59 pm

Map Module errors

Post 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?
dinoxrc

Re: Map Module errors

Post by dinoxrc »

Hi,

I got the same error.

I tried to modify the Map.module.php.

When I replace

Code: Select all

$map->image->geturl();
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
manu

Re: Map Module errors

Post 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):

Code: Select all

{cms_module module="map" map="1"}


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
ivobaska
New Member
New Member
Posts: 9
Joined: Thu Jul 26, 2007 7:59 pm

Re: Map Module errors

Post 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?
Post Reply

Return to “CMSMS Core”