Closed (duplicate)
Project:
Drupal core
Version:
x.y.z
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2006 at 15:20 UTC
Updated:
19 Jun 2006 at 07:22 UTC
After enabling Russian language I constantly begin to receive the following error:
Duplicate entry 'locale:en' for key 1 query: INSERT INTO cache (cid, data, created, expire, headers) VALUES ('locale:en', .....
It happens both for 'locale:en' and 'locale:ru' languages depending on the active language of the specific user.
The error occurs because function cache_set() tries to insert a line with an existing CID.
Strange that if (!db_affected_rows()) doesn't help to prevent it.
Comments
Comment #1
adixon commentedi've had a bunch of these mysteries as well, doesn't seem to really affect anything fortunately (i.e., probably not critical). I think it might be related to
http://drupal.org/node/65801
which suggests that modules that implement hook_init and need access to the t() function create quite a mess currently. What modules do you have installed?
Comment #2
beginner commentedThis would be a duplicate of your later entry : http://drupal.org/node/69031