Duplicate Entry Error

elgreg - May 7, 2008 - 00:35
Project:Zen
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

For the first time in a while, I went to the "themes" menu and I saw the following error:

user warning: Duplicate entry 'sites/all/themes/zen/mysubtheme/style.css' for key 1 query: UPDATE system SET description='sites/all/themes/zen/page.tpl.php', filename='sites/all/themes/zen/mysubtheme/style.css'

i think this has something to do with there being a page.tpl.php in my subtheme and in the Zen theme - but I don't know what to do to fix it I've been rolling the database back and trying various things.

One other interesting item: after this error, the holding style.css keeps printing out, which is killing the page headers as well. So now the top of every page says: /* $Id: style.css,v 1.1.2.1 2008/02/14 11:38:36 johnalbin Exp $ */ /* * This space intentionally left blank. * * See template.php to see how Zen styles are added to the page. */

Any ideas?

#1

elgreg - May 7, 2008 - 00:39

An addendum - this is definitely triggered when I go to the theme menu - only then does the error start showing up.

#2

elgreg - May 7, 2008 - 00:43

*Update* I upgraded to Zen 1.1, dropped my old subtheme in there and it seems to have solved the problem.

#3

matt@antinomia - May 7, 2008 - 00:55

Hi Greg, is it possible you have a module using the same name as your theme? The symptoms you describe are the same I was experiencing in another issue, which was fixed in the latest version of Zen.

#4

JohnAlbin - May 13, 2008 - 09:34
Status:active» duplicate

Duplicate of #248720: Only UPDATE {system} table WHERE type = 'theme'

 
 

Drupal is a registered trademark of Dries Buytaert.