coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: LukeK on July 10, 2009, 02:15:58 PM

Title: Critial error - An error occurred on a query to database
Post by: LukeK on July 10, 2009, 02:15:58 PM
Hi we have problem with cpg at our site:
http://www.ladislavspilka-fanclub.eu/fotogalerie/

Kritická chyba
Vyskytla se chyba pi databázovém dotazu.


Translate:
Critical error
An error occured during database query


How do we fix it?
Title: Re: Critial error - An error occurred on a query to database
Post by: Nibbler on July 10, 2009, 02:18:04 PM
Please search the board before posting. Every post like yours gets the same reply.

Enable debug mode (http://coppermine-gallery.net/tutorial/debug_mode.php) and post the mysql error message (not the entire debug output) you get.
Title: Re: Critial error - An error occurred on a query to database
Post by: LukeK on July 10, 2009, 02:27:07 PM
While executing query "SELECT count(*) FROM fotog_pictures as p, fotog_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000" on 0

mySQL error: Table './ladislavspilka-fanclub_eu/fotog_pictures' is marked as crashed and should be repaired


Debug info
USER:
------------------
Array
(
    [ID] => 11a1d230e0db2010503aa666ea98f044
    [am] => 1
    [lang] => czech
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 3
    [user_name] => Admin
    [groups] => Array
        (
           
Title: Re: Critial error - An error occurred on a query to database
Post by: Nibbler on July 10, 2009, 02:57:27 PM
The table is crashed. Repair it.

http://forum.coppermine-gallery.net/index.php/topic,10409.0.html
Title: Re: Critial error - An error occurred on a query to database
Post by: LukeK on July 10, 2009, 03:12:53 PM
Thanks a lot.