forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Ozaki on April 16, 2005, 06:36:42 pm

Title: 'There was an error while processing a database query '
Post by: Ozaki on April 16, 2005, 06:36:42 pm
I have searched the forum for this error: There was an error while processing a database query

But it tells me to contact my webhost and my webhost thinks there isnt anything wrong any ideas?

URL = http://www.ewfs.co.uk/pics/
Title: Re: 'There was an error while processing a database query '
Post by: kegobeer on April 16, 2005, 06:58:15 pm
You need to enable debug mode and report the actual error message.
Title: Re: 'There was an error while processing a database query '
Post by: Ozaki on April 16, 2005, 07:31:33 pm
k, here is what i got:

While executing query "SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND category >= 10000" on 0

mySQL error: Can't open file: 'cpg_pictures.MYI' (errno: 145)
Title: Re: 'There was an error while processing a database query '
Post by: Ozaki on April 16, 2005, 07:32:57 pm
USER:
------------------
Array
(
    [ID] => 6d1fc7c45467db7b5d4f210f2eedbe42
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => Ozaki
    [user_password] => ********
    [user_lastvisit] => 2005-04-16 13:30:15
    [user_regdate] => 2005-01-12 10:55:10
    [user_group_list] =>
    [user_email] =>
    [user_website] => http://www.emmawatsonsworld.com
    [user_location] => Crewe, Cheshire, England, UK
    [user_interests] => PHP, ASP, IRC, .NET
    [user_occupation] => Web Design
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 1
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: 'There was an error while processing a database query '
Post by: Ozaki on April 16, 2005, 07:50:49 pm
ok, my webhost says they have upgraded the MySQL version and they have told me to ask if coppermine supports  version 4.1
Title: Re: 'There was an error while processing a database query '
Post by: kegobeer on April 16, 2005, 11:52:30 pm
Coppermine works just fine under 4.1.  Try searching the forums for "Can't open file: .MYI"
Title: Re: 'There was an error while processing a database query '
Post by: Ozaki on April 17, 2005, 12:14:16 pm
k, i got

'Happens for many reasons. If the server went down or the process was terminated in the middle of writing to the database, you will get a corrupt table.'

How can i fix this? or isnt it fixable?
Title: Re: 'There was an error while processing a database query '
Post by: kegobeer on April 17, 2005, 02:38:38 pm
You need to search a little longer.

http://forum.coppermine-gallery.net/index.php?topic=10409.0