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
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!
#2
Fixed in 5.x-1.3.
Please test and reopen this issue if the problem remains.
Thanks toemaz!
#3