Closed (fixed)
Project:
Drupal core
Version:
6.13
Component:
statistics.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2009 at 17:08 UTC
Updated:
1 Mar 2013 at 12:00 UTC
user warning: Duplicate entry '7530' for key 1 query: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('Kontakt', 'contact', 'http://www.mydomain.com/', '89.103.62.159', 1, 'ieja6ffvccod0dcpqglvlt0pk1', 1025, 1248714198) in /var/www/vhosts/mydomain.com/httpdocs/modules/statistics/statistics.module on line 64.
Few days ago I noticed this warning on every page. Only the "values" part is changing. It was on D 6.12, but it is still here after upgrade to D 6.13.
I've MySQL 5.0.22 and PHP 5.1.6.
I try to clear cache, run update.php and cron, but with no avail.
Thanks for any suggestion.
Comments
Comment #1
andypostLooks like
accesslogautoincrement value is brokenComment #2
andyposthttp://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html
Comment #4
mwangi commentedthe solution suggested by andypost did it for me.
I have a drupal multisite system running on IIS - I'd made a copy of the main site so that I can work on the template offline and in the process it broke my mysql.
All sorted now.
Comment #5
radimklaskaMy table was marked as crashed so I wasn't allowed to ALTER TABLE. Repairing the table also fixed bad AUTO_INCREMENT.
REPAIR TABLE accesslog;