Please explain what the error message quoted below means and how to fix it:
Duplicate entry '85' for key 1 query: INSERT INTO gsitemap (nid, last_changed, last_comment) VALUES(85,1132801436,0) in /home/s16dntn/public_html/includes/database.mysql.inc on line 66.
Comments
Comment #1
SamAMac commentedIt means that the module is attempting to insert a duplicate entry for a node.
When do you receive this error?
Comment #2
clickdeveloper commentedI just see the error in the sitemap itself at mydomain.com/?q=gsitemap and in the Drupal log files. I don't know how and when I got this error. Any recommendations on fixing it?
Comment #3
SamAMac commentedThat is strange. The query specifically looks for nodes that are not already in the gsitemap table.
Are you using mySQL or postgreSQL, and which version?
Comment #4
clickdeveloper commentedmySQL
I've removed entry '85' from the gsitemap table in the DB. The module works fine now. Anyway, thanks for the great module.
Comment #5
clickdeveloper commentedMySQL 4.1.13
Comment #6
SamAMac commentedOK.
I don't know what caused it in the first place, but I'm glad it's working for you now.
Comment #7
he_who_shall_not_be_named commentedIf you update/remove comments that error appears.
Comment #8
he_who_shall_not_be_named commentedComment #9
SamAMac commentedThe problem was that Drupal doesn't populate every row in the node_comment_statistics table, just the rows for nodes that have comments. This caused a problem with a join that caused the module to try to reinsert existing rows. It should be fixed in the version now in CVS.
Comment #10
he_who_shall_not_be_named commentedI installed it but I have got: "Unknown column 'last_comment_timestamp' in 'field list' query: SELECT node.nid, changed, last_comment_timestamp FROM node LEFT JOIN gsitemap USING(nid) WHERE gsitemap.nid IS NULL - /home/vrencian/public_html/includes/database.mysql.inc"
Comment #11
SamAMac commentedOops. My mistake. I have fixed that.
Comment #12
(not verified) commented