coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: keyskeeper on August 14, 2009, 04:12:00 PM

Title: Critical Error across entire gallery post-upgrade
Post by: keyskeeper on August 14, 2009, 04:12:00 PM
I upgraded my gallery from 1.4.23 to 1.4.25 and can no longer access it at all.  It gives me a "Critical error: There was an error while processing a database query." message.  I turned debug mode on via phpMyAdmin and received this message:

QuoteWhile executing query "SELECT count(*) FROM   WHERE owner=2" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE owner=2' at line 1


File: [..]/include/functions.inc.php - Line: 248 

Searching the docs and board have failed to turn up anything that looks similar.  URL is http://ihwmedia.net/index.php.  Thanks!
Title: Re: Critical Error across entire gallery post-upgrade
Post by: François Keller on August 14, 2009, 04:16:55 PM
works as expected for me  ???
Title: Re: Critical Error across entire gallery post-upgrade
Post by: keyskeeper on August 14, 2009, 08:06:18 PM
I'm still getting the same error - perhaps because I'm still logged in from before I performed the update?
Title: Re: Critical Error across entire gallery post-upgrade
Post by: Nibbler on August 14, 2009, 08:10:46 PM
Clear your cookies then.
Title: Re: Critical Error across entire gallery post-upgrade
Post by: keyskeeper on August 15, 2009, 10:24:38 PM
I did, and when I log in again I get the same error.
Title: Re: Critical Error across entire gallery post-upgrade
Post by: phill104 on August 15, 2009, 11:15:05 PM
Clear your browsers cache. Your site works well for me.
Title: Re: Critical Error across entire gallery post-upgrade
Post by: onthepike on August 16, 2009, 12:08:10 AM
It works fine for me as well, however the problem seems to persist upon Admin login. Does the issue remain using a guest or another login? Can anyone else log in?

Also, if you use any thrid-party cleaning applications, such as "CCleaner" for example, you will need to manually delete the cookie yourself, or remove the cookie from the "protected" list. Clearing the cache will not delete these cookies.
Title: Re: Critical Error across entire gallery post-upgrade
Post by: Nibbler on August 16, 2009, 12:14:02 AM
Must be related to some mod you have applied (Stramm's modpack maybe) since that query is not a normal part of Coppermine. Remember to fully reapply mods after updating Coppermine.
Title: Re: Critical Error across entire gallery post-upgrade
Post by: keyskeeper on August 16, 2009, 05:20:15 PM
Great!  I didn't think I had the mod pack enabled, but reuploaded and upgraded anyway to check and it's now working.  Thanks!