<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:Tahoma;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Tahoma;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
p.style4, li.style4, div.style4
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Tahoma><span style='font-size:10.0pt'>Hi all please help,&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Tahoma><span style='font-size:10.0pt'>In my log I am getting
hundreds of duplicate entry php 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. The site has been up and fine for a while
this is a new problem but I haven&#8217;t changed anything major recently.<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Tahoma><span style='font-size:10.0pt'>I&#8217;m running Drupal
4.7.4 with PHP templates.<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Tahoma><span style='font-size:10.0pt;color:navy'>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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Tahoma><span style='font-size:
10.0pt;color:navy'>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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Tahoma><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Tahoma><span style='font-size:
10.0pt;color:navy'>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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Tahoma><span style='font-size:
10.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Tahoma><span style='font-size:
10.0pt;color:navy'>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.</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>&nbsp;<font
color=navy><span style='color:navy'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'>One
option I am looking at is if I can hardcode path_to_theme() in the tpl files?
Would this help?<font color=navy><span style='color:navy'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Tahoma><span style='font-size:10.0pt'>Please help,<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><st1:PersonName
w:st="on"><b><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
 Arial;font-weight:bold'>Paul West</span></font></b></st1:PersonName><font
face=Arial><span style='font-family:Arial'><br>
Web&nbsp;Developer<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Redwood
Software</span></font><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
 <tr>
  <td valign=top style='padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
  size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p>&nbsp;</o:p></span></font></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>