user warning

toma - December 12, 2006 - 12:16
Project:location (API, module)
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:toma
Status:duplicate
Description

Hi i install the module everything work fine, when i add nodes i receive this error

user warning: Unknown column 'oid' in 'where clause' query: SELECT * FROM location WHERE oid=1 AND type='user' in /home/web/annoncemaroc/includes/database.mysql.inc on line 121.

Thanks

#1

scriptnews - December 12, 2006 - 20:35

We have the same problem.

#2

pshadow - December 12, 2006 - 21:20

same problem here.

#3

pshadow - December 12, 2006 - 21:35

o.k. here's what I noticed. the module automatically sets up the databases. but creates a location database with eid field. the mysql file for location database has oid field. so somewhere the field got renamed? I tried delecting the location table and reinserting using the mysql file (oid version) but now I get:

Unknown column 'eid' in 'where clause' query: SELECT * FROM location WHERE eid=1 AND type='user'

anu ideas how to fix this?

#4

pshadow - December 12, 2006 - 22:09

o.k. so read the oid to eid change was intended. so changed back and getting error on all pages now. I disabled gmap module and the error has stopped. looks like gmap location module reference oid?

#5

pshadow - December 12, 2006 - 22:18

sorry for so many posts. just to verify this does seem to be the problem. did a replace of 'oid' to 'eid' in gmap_location module and errors are now gone and seems to be working properly. Not sure how to move this issue to gmap project maybe.

#6

dustyd - December 12, 2006 - 22:55

Thanks for posting. I just installed and got the same error. Disabling gmap_location till it's updated.

#7

toma - December 14, 2006 - 19:28

I change oid to eid in gmap_location.module and in location.mysql delete your location table in your database and apply the new location.mysql and it will work fine

check http://drupal.org/node/101538

#8

dustyd - December 15, 2006 - 21:56

That worked for me to, thanks.

#9

greggles - January 2, 2007 - 03:12
Status:active» duplicate

This is a duplicate of the probem at http://drupal.org/node/101538 - marking status as such.

 
 

Drupal is a registered trademark of Dries Buytaert.