Warning message when switching theme

Gumugum - June 16, 2007 - 08:11
Project:Copyright
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

After upgrading to 1.2, when I switch theme using the Switch Theme, I get the following error:

user warning: Duplicate entry '1' for key 1 query: INSERT copyright_user (cpyid, uid) VALUES (0, 1) in /public_html/includes/database.mysql.inc on line 172.

The copyright message displays fine, and I'm not sure what this error means... Also when I upgraded from 1.0 to 1.2, I received 2 error messages after running the update.php, I tried uninstall/reinstall the module and the problem did not go away.

#1

toemaz - June 17, 2007 - 13:14
Status:active» needs review

I didn't have to reproduce the problem to figure out that your issue is indeed a bug.

Find the patch attached. Not tested yet so feel free to review!

AttachmentSize
copyright_user_default_license.patch 1.12 KB

#2

Robrecht Jacques - June 17, 2007 - 16:24
Status:needs review» fixed

Fixed in 5.x-1.3.

Please test and reopen this issue if the problem remains.

Thanks toemaz!

#3

Anonymous - July 1, 2007 - 16:46
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.