"Unable to interact with database" error since upgrade to 2.1.1
washingtonheights
Joined: 2003-04-20
Posts: 10 |
![]() |
Since I upgraded to v. 2.1.1, I get a database error -- "An error has occurred while interacting with the database": The relevant debug info is as follows: Error (1): Quote:
file_exists(/www/n/naborsapts/g2data/cache/module/_all/0/0/GalleryStorage_describeMap.inc) mysql error: [1062: Duplicate entry '30' for key 1] in EXECUTE("INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (30,3907)") (mysql): INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (30,3907) 1062: Duplicate entry '30' for key 1 And for error (2): Quote:
file_exists(/www/n/naborsapts/g2data/cache/module/_all/0/0/GalleryStorage_describeEntity.inc) getParameter lock.system for core plugin file_exists(/www/n/naborsapts/g2data/cache/module/_all/0/0/GalleryStorage_describeMap.inc) mysql error: [1062: Duplicate entry '31' for key 1] in EXECUTE("INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (31,0)") (mysql): INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (31,0) 1062: Duplicate entry '31' for key 1 |
|
washingtonheights
Joined: 2003-04-20
Posts: 10 |
![]() |
Hello, Any ideas? Thanks. -WaHI Online |
|
washingtonheights
Joined: 2003-04-20
Posts: 10 |
![]() |
Ahem ... Anyone have any ideas what I could do to be able to use the Gallery again? No one can upload images to the gallery anymore. Should I reinstall from scratch? If so, how can I save all the images and descriptions, etc.? If not, would you recommend another script that might work better? Thanks for your help. -- WaHI Online |
|
washingtonheights
Joined: 2003-04-20
Posts: 10 |
![]() |
Help, please! Don't know what to do. |
|
smeagol
Joined: 2004-07-30
Posts: 8 |
![]() |
unfortunately I don't know a solution to your specific problem, but you can perhaps try and restore a backup copy of your gallery2. easier than reinstalling from scratch I think. |
|
washingtonheights
Joined: 2003-04-20
Posts: 10 |
![]() |
Hello again, Unfortunately, I don't have a backup that goes back that far -- I upgraded some time ago, and the Gallery stopped working since the upgrade. Should I reinstall from scratch? And if I do, will I lose the photographs, or can I still connect to the same database? If the problem is with the database, does anyone have a suggestion on how I can preserve the photos while upgrading? These photos have been uploaded by a bunch of community members, and I would hate to have to tell them that they have to say good-bye to the photos that they painstakingly uploaded to the website. Please, help! |
|
catnip
![]()
Joined: 2006-08-23
Posts: 17 |
![]() |
I'm having the same exact problem with my gallery when someone trying to upload photos. I've never updated & gallery was working fine until Saturday, when it suddenly started throwing these errors. Restoring my g2 tables didn't help, and my forum, which shares the same database is working fine, so it makes me think that despite the error message, it's not database related. _____________________________________________________________________________________________________ |
|
joe7rocks
![]()
Joined: 2004-10-07
Posts: 560 |
![]() |
catnip: I guess you didn't experience the problem because of some caching, but it was there. |
|
joe7rocks
![]()
Joined: 2004-10-07
Posts: 560 |
![]() |
washingtonheights: dunno, one would need to take a closer look. |
|
catnip
![]()
Joined: 2006-08-23
Posts: 17 |
![]() |
Oh, it's been fixed for quite some time now, but thanks! |
|