PHP error "Duplicate entry" (problem with themes) keeps crashing the server please help!!

Paul_83uk - August 21, 2007 - 08:31

Hi all please help,

In my log i am getting hundreds maybe even thousands of duplicate entry errors I will paste a few of them they are all related to the theme engine. I am running a custom theme called redwood. all other default themes are not enabled.

Duplicate entry 'themes/engines/theme_editor/theme_editor_engine.engine' for key 1 query: INSERT INTO system (name, type, filename, status, throttle, bootstrap) VALUES ('theme_editor_engine', 'theme_engine', 'themes/engines/theme_editor/theme_editor_engine.engine', 1, 0, 0) in /usr/local/drupal/drupal/includes/database.mysql.inc on line 121.

Duplicate entry 'themes/bluemarine/page.tpl.php' for key 1 query: INSERT INTO system (name, description, type, filename, status, throttle, bootstrap) VALUES ('bluemarine', 'themes/engines/phptemplate/phptemplate.engine', 'theme', 'themes/bluemarine/page.tpl.php', 0, 0, 0) in /usr/local/drupal/drupal/includes/database.mysql.inc on line 121.

Duplicate entry 'themes/chameleon/marvin/style.css' for key 1 query: INSERT INTO system (name, description, type, filename, status, throttle, bootstrap) VALUES ('marvin', 'themes/chameleon/chameleon.theme', 'theme', 'themes/chameleon/marvin/style.css', 0, 0, 0) in /usr/local/drupal/drupal/includes/database.mysql.inc on line 121.

Duplicate entry 'themes/chameleon/marvin/style.css' for key 1 query: INSERT INTO system (name, description, type, filename, status, throttle, bootstrap) VALUES ('marvin', 'themes/chameleon/chameleon.theme', 'theme', 'themes/chameleon/marvin/style.css', 0, 0, 0) in /usr/local/drupal/drupal/includes/database.mysql.inc on line 121.

Please help,

Paul

Duplicate entry themes

DrupalIsWet - June 1, 2008 - 03:42

I was having the same problem in 6.2 and could not find a solution in the posts. Today, I went to Admin / Site building / Themes and noticed that my default theme was no longer selected as enabled. Weired or bug? Got me. So far, so good with it re-enabled.

many duplicate entry errors

designanddraft - August 1, 2008 - 19:00

i have been having a similar list of multiple duplicate entries, nothing about them suggested the theme though. i found a differance between my global and theme specific settings and changed them to match. this seems to have solved it, however i ran cron, changed them back and ran cron in order to recreate the issue and nothing, the errors are not back so i think it is strange. my errors listed line 2353 of menu.inc and i use zen classic theme on drupal 6.2. i will write back if it happens again.

more info

designanddraft - August 1, 2008 - 19:25

here is a copy of errors, a small portion anyway. now it seems to appear on the first page after i make a change to something, taxonomy, menu, etc. and then not again until another change, this is tolerable but seems to be a bug none the less. before now it was on every page.

user warning: Duplicate entry 'comment_subscribe' for key 1 query: INSERT INTO menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, fit, number_parts, tab_parent, tab_root, title, title_callback, title_arguments, type, block_callback, description, position, weight, file) VALUES ('comment_subscribe', '', '', 'user_access', 'a:1:{i:0;i:1;}', 'comment_subscribe_page', 'a:0:{}', 1, 1, '', 'comment_subscribe', 'Comment Subscribe', 't', '', 4, '', '', '', 0, '') in /home/content/d/e/s/designanddraft/html/govbyus/includes/menu.inc on line 2353.
user warning: Duplicate entry 'wiki' for key 1 query: INSERT INTO menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, fit, number_parts, tab_parent, tab_root, title, title_callback, title_arguments, type, block_callback, description, position, weight, file) VALUES ('wiki', '', '', 'user_access', 'a:1:{i:0;s:14:\"access content\";}', 'wikitools_handle_request', 'a:0:{}', 1, 1, '', 'wiki', '', 't', '', 4, '', '', '', 0, '') in /home/content/d/e/s/designanddraft/html/govbyus/includes/menu.inc on line 2353.
user warning: Duplicate entry 'node' for key 1 query: INSERT INTO menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, fit, number_parts, tab_parent, tab_root, title, title_callback, title_arguments, type, block_callback, description, position, weight, file) VALUES ('node', '', '', 'user_access', 'a:1:{i:0;s:14:\"access content\";}', 'node_page_default', 'a:0:{}', 1, 1, '', 'node', 'Content', 't', '', 4, '', '', '', 0, '') in /home/content/d/e/s/designanddraft/html/govbyus/includes/menu.inc on line 2353.
user warning: Duplicate entry 'image_attach' for key 1 query: INSERT INTO menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, fit, number_parts, tab_parent, tab_root, title, title_callback, title_arguments, type, block_callback, description, position, weight, file) VALUES ('image_attach', '', '', 'user_access', 'a:1:{i:0;s:14:\"access content\";}', 'image_attach_view_image', 'a:0:{}', 1, 1, '', 'image_attach', 'Image Attachment View', 't', '', 4, '', '', '', 0, '') in /home/content/d/e/s/designanddraft/html/govbyus/includes/menu.inc on line 2353.

 
 

Drupal is a registered trademark of Dries Buytaert.