forum.coppermine-gallery.net

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
        (
           
        )

    [disk_max] => 10024
    [disk_min] => 10024
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 0
    [has_admin_access] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 0
    [group_name] => Registered
    [upload_form_config] => 3
    [group_quota] => 10024
    [can_see_all_albums] => 0
    [group_id] => 2
)

==========================
Queries:
------------------
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.