coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Rockyuk on May 19, 2009, 01:10:14 PM

Title: Critical error - There was an error while processing a database query!
Post by: Rockyuk on May 19, 2009, 01:10:14 PM
Hi Everyone,
I am getting a unusal error when click on a random image, i will include the debug info below if anyone can help please

While executing query "SELECT * FROM cpg14x_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT -1" 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 '-1' at line 1

USER:
------------------
Array
(
    [ID] => c5e926f0a5eae75d24b129ac756c47b9
    [am] => 1
    [lang] => english_gb
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
           
Title: Re: Critical error - There was an error while processing a database query!
Post by: François Keller on May 19, 2009, 01:15:53 PM
instead posting debbug info, it would be better to post a link to your gallery
Title: Re: Critical error - There was an error while processing a database query!
Post by: Rockyuk on May 19, 2009, 01:44:36 PM
My gallery is http://www.hotbrits.net/hbportfolio/index.php (http://www.hotbrits.net/hbportfolio/index.php)
Title: Re: Critical error - There was an error while processing a database query!
Post by: Joe Carver on May 19, 2009, 02:49:58 PM
You might want to try testing the effect of the rcmenu plugin that you have installed. I got at least one error with a right click on the pic..