new location entry copies over to previous post.

mrgoltra - October 21, 2008 - 22:54
Project:Location
Version:5.x-3.0-rc2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Good Day,

I have been reading the forum all day long and couldn't find any info on my problem. I am not sure if I should post this in location or gmaps.

The problem. When a user enters a location information, it will reset previous posted node's location to the current one. Any ideas?

Thank you,

#1

mrgoltra - October 21, 2008 - 23:04

I am attaching a screenshot. Note the location. This original location was at Peck Ave. Manhattan Beach Ca. Next user that posted listed Malholland Drive as his location but it carried over to this node.

AttachmentSize
location error.png 15.04 KB

#2

bdragon - October 21, 2008 - 23:10

Err, isn't that a user profile?

#3

mrgoltra - October 22, 2008 - 03:40

I wish it was. Will downgrade to previous version. Thanks.

#4

bdragon - October 22, 2008 - 14:32
Status:active» postponed (maintainer needs more info)

What IS it then?

I don't recognize that UI at all...

I'm not sure what you mean by "When a user enters a location information, it will reset previous posted node's location to the current one."

Is this a custom module of some sort?

#5

mrgoltra - October 22, 2008 - 16:51

Thank you very much for the help.

regarding UI : web site is mymissedconnection.com (you can use any of the forms, all of them have the location fields.)

when a user post a missed connection and enters a location (i.e. JFK Airport, New York) any one(not all)of the previous post will inherit this new location even if the previous post has a different location specified (i.e. LAX Airport, etc).

I did update the module to 5.x-3.x-dev and the problem is no longer there after several testing. Now I am getting this http://drupal.org/node/317159 though.

Time to troubleshoot again. Maybe will downgrade to version that was working.

Thanks,

Mark

#6

bdragon - October 22, 2008 - 17:42

OK, I'm going to make a guess here...

You did a bulk import and forgot to bump sequences, didn't you?

#7

mrgoltra - October 22, 2008 - 18:39

bulk import? sorry, please clarify. Node imports?

#8

bdragon - October 22, 2008 - 18:43

Importing location data at the SQL level.

In Drupal 5, the next id when adding a row is determined by the 'location_lid' row in the {sequences} table. You're describing exactly the symptoms of forgetting to update this row when adding rows by hand to the location table.

#9

mrgoltra - October 22, 2008 - 18:55

Thank you for the info. where can I get more info on this. I am a noob with all this. I use phpMyAdmin to import the data location. Does this have to be done every time new version of the module is out. Thank you for your patience. I really appreciate your help.

#10

bdragon - October 22, 2008 - 19:04
Status:postponed (maintainer needs more info)» fixed

Just remember that in Drupal 5, whenever you insert rows into a Drupal table, you need to go to the sequences table and change the appropriate sequence, or your data will get stomped later. This isn't a location.module specific thing, it will also happen if you do the same to nodes / users / taxonomy / comments / etc...

See http://drupal.org/node/69722.

Sequences finally went away in Drupal 6.

#11

mrgoltra - October 22, 2008 - 21:17
Status:fixed» closed

Thanks. Will look into it. closing it for now.

 
 

Drupal is a registered trademark of Dries Buytaert.