[support] Duplicate entry error

Michael Prasuhn mike at mikeyp.net
Fri Mar 16 17:00:59 UTC 2012


Do you have an old version of the Skinr module installed? Older version
are particularly prone to causing this problem.

In short this problem is caused by a race condition when two separate
requests are trying to rebuild the theme information in the database
from all the individual .info files.

This was fixed by introducing a lock there to prevent concurrent
rebuilds of the theme data, and you'll need Drupal 6.24 or newer to
prevent these errors.

Here's the relevant change if you are interested:
http://drupalcode.org/project/drupal.git/commit/bf4c9bf97f67c64450680e152258e62178c34285

-Mike

Ms. Nancy Wichmann wrote:
> I am getting a bunch (literally thousands) of the following errors and
> they come in groups. While the Zen Classic theme is installed, it is not
> the one in use - it's not even enabled. Any ideas?
> 
> /Duplicate entry
> 'sites/all/themes/zen/zen_classic/zen_classic.info' for key
> 'PRIMARY' query: INSERT INTO system (name, owner, info, type,
> filename, status, throttle, bootstrap) VALUES ('zen_classic',
> 'themes/engines/phptemplate/phptemplate.engine',
> 'a:16:{s:4:\"name\";s:11:\"Zen
> Classic\";s:11:\"description\";s:97:\"Zen sub-theme
> based on <a
> href=\"http://www.oswd.org/design/preview/id/2634\">Deliciously
> Blue</a>.\";s:10:\"screenshot\";s:47:\"sites/all/themes/zen/zen_classic/screenshot.png\";s:4:\"core\";s:3:\"6.x\";s:10:\"base
> theme\";s:3:\"zen\";s:11:\"stylesheets\";a:2:{s:3:\"all\";a:7:{s:18:\"layout-garland.css\";s:51:\"sites/all/themes/zen/zen_classic/layout-garland.css\";s:17:\"html-elements.css\";s:50:\"sites/all/themes/zen/zen_classic/html-elements.css\";s:9:\"icons.css\";s:42:\"sites/all/themes/zen/zen_classic/icons.css\";s:15:\"zen-classic.css\";s:48:\"sites/all/themes/zen/zen_classic/zen-classic.css\";s:12:\"messages.css\";s:45:\"sites/all/themes/zen/zen_classic/messages.css\";s:14:\"wireframes.css\";s:47:\"sites/all/themes/zen/zen_classic/wireframes.css\";s:7:\"zen.css\";s:40:\"sites/all/themes/zen/zen_classic/zen.css\";}s:5:\"print\";a:1
> :{s:9:\"print.css\";s:42:\"sites/all/themes/zen/zen_classic/print.css\";}}s:23:\"conditional-stylesheets\";a:1:{s:5:\"if
> IE\";a:1:{s:3:\"all\";a:1:{i:0;s:6:\"ie.css\";}}}s:7:\"regions\";a:8:{s:4:\"left\";s:12:\"left
> sidebar\";s:5:\"right\";s:13:\"right
> sidebar\";s:6:\"navbar\";s:14:\"navigation
> bar\";s:11:\"content_top\";s:11:\"content
> top\";s:14:\"content_bottom\";s:14:\"content
> bottom\";s:6:\"header\";s:6:\"header\";s:6:\"footer\";s:6:\"footer\";s:14:\"closure_region\";s:7:\"closure\";}s:8:\"features\";a:10:{i:0;s:4:\"logo\";i:1;s:4:\"name\";i:2;s:6:\"slogan\";i:3;s:7:\"mission\";i:4;s:17:\"node_user_picture\";i:5;s:20:\"comment_user_picture\";i:6;s:6:\"search\";i:7;s:7:\"favicon\";i:8;s:13:\"primary_links\";i:9;s:15:\"secondary_links\";}s:8:\"settings\";a:10:{s:17:\"zen_block_editing\";s:1:\"1\";s:14:\"zen_breadcrumb\";s:3:\"yes\";s:24:\"zen_breadcrumb_separator\";s:8:\"
> ::
> \";s:19:\"zen_breadcrumb_home\";s:1:\"1\";s:23:\"zen_breadcrumb_trailing\";s:1:\"0\";s:20:\"zen_breadcrumb_title\";s:1:\"0\";s:17:\"zen_classic_fixed\";s:1:\"0\";s:10:\"zen_layout\";s:22:\"border-politics-liquid\";s:20:\"zen_rebuild_registry\";s:1:\"0\";s:14:\"zen_wireframes\";s:1:\"0\";}s:7:\"version\";s:7:\"6.x-1.0\";s:7:\"project\";s:3:\"zen\";s:9:\"datestamp\";s:10:\"1234555897\";s:7:\"scripts\";a:1:{s:9:\"script.js\";s:42:\"sites/all/themes/zen/zen_classic/script.js\";}s:3:\"php\";s:5:\"4.3.5\";s:6
> :\"engine\";s:11:\"phptemplate\";}',
> 'theme',
> 'sites/all/themes/zen/zen_classic/zen_classic.info', 0, 0, 0)/
> in //home/thepolit/public_html/modules/system/system.module/ on line /821/.
>  
> /*Nancy*/
>  
> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L.
> King, Jr.
> 

-- 
__________________
Michael Prasuhn
503.512.0822 office
mike at mikeyp.net



More information about the support mailing list