coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: iakito on January 01, 2010, 10:49:51 PM

Title: Critical error after update
Post by: iakito on January 01, 2010, 10:49:51 PM
Hello,

Today, I have upgraded 2 galleries from 1.4.10 to 1.4.25
The first gallery: no problem
The seccond gallery, I obtain messa
I am having a problem with my gallery after update from 1.4.10 to 1.4.25
Title: Re: Critical error after update
Post by: iakito on January 01, 2010, 11:01:39 PM
oupsss!! finger too wide on the keys!  ::) the message has been posted without my consent

I continue
The second gallery, I obtain an Critical error and this message:

There was an error while processing a database query.

While executing query "SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg148_albums AS a  LEFT JOIN cpg148_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN ()GROUP BY a.aid" 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 ')GROUP BY a.aid' at line 1

The debug info are:

USER:
------------------
Array
(
    [ID] => 89443aba9b6b321d48f8de617f72e95f
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
Title: Re: Critical error after update
Post by: iakito on January 02, 2010, 11:35:08 AM
Hello,

Is repaired  :D

I installed the backup on a blank database and I run again update.php after changing include/config.inc.php with the new values of connection.
Always make backups...

I wish you a happy new year