Quick patch:

Line 815 of gmap.module:

if (module_exist('gmap_location') && user_access('show user map')) {

Comments

sym’s picture

This seems to work for me, although I get errors when updating any page (only admin users), even if there is no map.

Shouldn't all the location related code be removed? I don't think I am able to have gmap without location any more...

sym’s picture

At the moment, I'm getting about 30 errors per forum page just by having this module installed.

doesn't exist query: gmap_user SELECT * FROM location WHERE oid=258 AND type='user' in public_html/includes/database.mysql.inc on line 120.
webgeer’s picture

Status: Needs review » Fixed

It looks like sym has an old version of the gmap.module installed. It has been quite a while since the gmap_user table was ever used.

I have implemented the patch suggested by jvandervort. However, this will only fix errors that were showing on the administrator's page.

sym’s picture

I am using v1.30, last edited on the 5th of June. Does 8 days count as "quite a while"? I will update and see if it's fixed.

webgeer’s picture

Sorry, I misread the error report you had included. I tought the reference to gmap_user was the table, but I now see that the table is location. I don't know what the reference to gmap_user is.

I hope that the fix I put in also fixes your problem. If not please reopen this issue.

Do you have any gmap features that were implemented some other method (in the theme or in a block, or other module.)

sym’s picture

The latest one in CVS fixed the problems :) thank you.

No I didn't have anything else to change the gmap module - just the standard install.

Kardinal7’s picture

Version: 6.x-1.x-dev » 4.7.x-1.x-dev

I'm using the version 4.7.0 from gmap module. And it appered to me this error. I've solved like you say on this page, but now appears another error, in every page:

Parse error: parse error, unexpected T_CASE in C:\wamp\www\incognito\modules\gmap\gmap.module on line 837

Can you help me?

Thanks

Anonymous’s picture

Status: Fixed » Closed (fixed)