Hello,
I recently installed Drupal. I haven't installed any modules other than what came with the installation package. I did install some additional themes.

I'm getting alot of errors from the themes. I think it started when I first changed themes to another theme that was included with the download. Here are some examples of the error messages:

Duplicate entry 'themes/engines/xtemplate/xtemplate.engine' for key 1 query: INSERT INTO system (name, type, filename, status, throttle, bootstrap) VALUES ('xtemplate', 'theme_engine', 'themes/engines/xtemplate/xtemplate.engine', 1, 0, 0) in /home/httpd/vhosts/activefarming.com/httpdocs/includes/database.mysql.inc on line 66.

Duplicate entry 'themes/pushbutton/xtemplate.xtmpl' for key 1 query: INSERT INTO system (name, description, type, filename, status, throttle, bootstrap) VALUES ('pushbutton', 'themes/engines/xtemplate/xtemplate.engine', 'theme', 'themes/pushbutton/xtemplate.xtmpl', 0, 0, 0) in /home/httpd/vhosts/activefarming.com/httpdocs/cms/includes/database.mysql.inc on line 66.

I also installed phptemplate engine but I began recieving these errors before that.

It seems that everytime I view a page on my drupal, I get this error message recorded in my logs for each engine and every theme installed.

Other than this, it looks like drupal is working good.

I tried searching both on drupal and google and couldn't find a fix for this. I found a lot of simular problems with error's on line 66 but none to do with themes.

Can anyone help?

Thanks,
Michael

Comments

hadishon’s picture

Has anyone had this problem before or can anyone point me in the right direction?

Thanks,
Michael

hadishon’s picture

I installed the "Database Administration" module: http://drupal.org/project/dba

I ran a check and it said "No repairs are required."

But I'm still getting the above error messages.

Many of the errors that come up have to deal with themes that are not enabled. If they are not enabled than why is drupal requesting something of them?

Thanks,
Michael

hadishon’s picture

I tried a clean install and still no progress. I still get the same errors and a bunch of them at that. All the errors seem to deal with the themes.

Here is a copy of 1 page of error log (I get about a full page of errors for every page view of dupal there is.

 Type Date  Message User Operations 
 php 2005-11-09 18:39 Duplicate entry 'themes/lincolns_revenge/alternate/style.css' fo Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/box_grey/box_cleanslate/style.css' for k Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/lincolns_revenge/alternate/style.css' fo Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_green/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/box_grey/box_cleanslate/style.css' for k Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_blue/style.css' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_green/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_black/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_blue/style.css' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/lincolns_revenge/alternate/style.css' fo Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/chameleon/marvin/style.css' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/box_grey/box_cleanslate/style.css' for k Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_black/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_green/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/pushbutton/xtemplate.xtmpl' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_blue/style.css' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/chameleon/marvin/style.css' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_black/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/bluemarine/xtemplate.xtmpl' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/chameleon/marvin/style.css' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/pushbutton/xtemplate.xtmpl' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/pushbutton/xtemplate.xtmpl' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/lincolns_revenge/page.tpl.php' for key 1 Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/bluemarine/xtemplate.xtmpl' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/bluemarine/xtemplate.xtmpl' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/lincolns_revenge/page.tpl.php' for key 1 Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/box_grey/page.tpl.php' for key 1 query:  Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/lincolns_revenge/page.tpl.php' for key 1 Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/box_grey/page.tpl.php' for key 1 query:  Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/box_grey/page.tpl.php' for key 1 query:  Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash.theme' for key 1 query: INSE Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash.theme' for key 1 query: INSE Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/chameleon/chameleon.theme' for key 1 que Admin  details 
 php 2005-11-09 18:39 file_exists(): open_basedir restriction in effect. File(/style.c Admin  details 
 php 2005-11-09 18:39 file_exists(): open_basedir restriction in effect. File(/style.c Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/chameleon/chameleon.theme' for key 1 que Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/box_grey/box_cleanslate/style.css' for k Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/engines/xtemplate/xtemplate.engine' for  Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_green/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/lincolns_revenge/alternate/style.css' fo Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_blue/style.css' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/box_grey/box_cleanslate/style.css' for k Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_black/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_green/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/chameleon/marvin/style.css' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_blue/style.css' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/pushbutton/xtemplate.xtmpl' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/slash/slash_black/style.css' for key 1 q Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/bluemarine/xtemplate.xtmpl' for key 1 qu Admin  details 
 php 2005-11-09 18:39 Duplicate entry 'themes/chameleon/marvin/style.css' for key 1 qu Admin  details 


Can anyone please help or point me to the right direction?

Michael

Mehul-1’s picture

Hi,

I'm quite new with Drupal. I have Drupal 4.6 installed on an Apache webserver.

Recently my hosts webserver went down, meaning that I lost my site and had to restore it from backups (luckily I had some). Since then, every time I try to create a new piece of content (node) I get this error:
-----------------------

user error: Duplicate entry '21' for key 1
query: INSERT INTO node (status, moderate, promote, sticky, comment, title, body, format, uid, created, type, teaser, changed, nid) VALUES('1', '0', '1', '0', '2', 'efdfsd', 'sdfdsfsdf', '3', '1', '1136995645', 'blog', 'sdfdsfsdf', '1136995657', '21') in /home/mehul/domains/mehulhirani.com/public_html/includes/database.mysql.inc on line 66.

warning: Cannot modify header information - headers already sent by (output started at /home/mehul/domains/mehulhirani.com/public_html/includes/common.inc:384) in /home/mehul/domains/mehulhirani.com/public_html/includes/common.inc on line 192.

----------------------------

Can anyone help me?

Thank you

Mehul

jj24’s picture

i'm sorry to say, i am having the same exact issue, and i'm looking for help in the forum.
best of luck to you!

taybin’s picture

I found out that these seem to be caused by multiple:

path_to_theme()

calls in a theme. I hardcoded the path and the errors went away.

Andrupal’s picture

Location http://www.ewsis.org/comment/reply/themes/meta/css/images/background-bla...
Referrer http://www.ewsis.org/comment/reply/226
Message comment/reply/themes/meta/css/images/background-black.gif not found.

I've removed all the path_to_theme() references I could find in the tpl files and hardcoded the full URL wherever possible.

Can anyone point me to the file that may be causing this?

zoinks’s picture

I'm having the same problem using meta theme on my site http://www.wesleycrushers.com. Front-end is fine (ie. background images all showing up) but admin logs incorrect relative path, even after hard-coding into the theme. Probably related to Clean URLs but don't know how to fix. Just gonna turn off logging for that for now, but anyone who finds a solution please give a shout-out. Thx.

andydev’s picture

Same problem here, I tried deleting them, and the error disappear, to appear again after a few clicks

cgdigitaltreats’s picture

I get this problem on two different installs of drupal 6.

Antnio

Phillip Mc’s picture

same problem here with Drupal 6.10

mennonot’s picture

This post also discussed the duplicate Entry issue:

http://drupal.org/node/169150

The (temporary) solution that worked for me was running cron.php.