Situation:
New development installation with clean database.
Apache 1.x, PHP 4.x, MySQL 4.x

Steps to recreate:
1) Logged in as the administrator.
2) Clicked 'administer' from the menu
3) Clicked 'modules' from the menu

Received the following error message:

Fatal error: Duplicate entry 'locale:en' for key 1
query: INSERT INTO cache (cid, data, created, expire, headers) VALUES('locale:en', 'N;', 1092332578, 0, '') in /home/devinhedge/public_html/devinhedge-com/v2.0-1/includes/database.mysql.inc on line 125

Comments

devinhedge’s picture

Verified this is a bug. This occurs as a result of Drupal "serializing" all of the installed modules the first time. I'm going to see what happens with a "base" installation of Drupal cvs without any additional modules. This may be a case where there needs to be logic in database.mysql.inc that issues an "update" query instead of an "insert" query.

devinhedge’s picture

ok. That is what the issue was. When I uninstalled all of the additional modules (deleted) and then went into 1) administer and 2) modules, all of the core modules were correctly initialized and everything runs correctly. I'm not sure if this is an incompatibility with some of the existing v4.4 modules or what. In any case, the current cvs core is going to cause some problems for people that will be upgrading from v4.4.2.

Devin.

romca’s picture

Hi,

I got exactly the same error when creating vocabulary - looking for the cause, I was suspicious of i18n module. And in this case, it was true

-the error doesn't happen when the "synchronize content" is switched off for taxanomy (configure/i18n ).

I must add that this error happens in the case of non-rewrited link
http://myweb.com/?q=admin/taxonomy/add/vocabulary

but doesn't occur when there is language code indicator, as
http://myweb.com/?q=en/admin/taxonomy/add/vocabulary

I will look in and try to find solution, if my limited knowledge of PHP allows to.

roman

killes@www.drop.org’s picture

if it is a problem with a particular contrib modules please file bugs against that project. Contrib bugs are by definition not core bugs.