Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: There was an error while processing a database query.  (Read 2665 times)

0 Members and 1 Guest are viewing this topic.

pricefan

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
There was an error while processing a database query.
« on: May 09, 2010, 10:18:06 am »

Hi guys wondering if you can help me. I'm having an issue at http://sophia-bush.org/gallery. When I try to create categories it says

There was an error while processing a database query.


I enabled debug mode which told me

While executing query "UPDATE cpg141x_categories SET pos='6' WHERE cid = '6' LIMIT 1" on 0

mySQL error: Incorrect key file for table './sophiabo_sophiabgall/cpg141x_categories.MYI'; try to repair it



and here is the rest of the info.. can anyone help please? thank you

Quote
USER:
------------------
Array
(
    [ID] => 99f4bbb9219573de9c3267bd2994bc0e
    [am] => 1
    [lang] => english_gb
    [liv] => Array
        (
           
  • => 21447

        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 4
    [user_name] => admin
    [groups] => Array
        (
           
  • => 1

        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [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
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg141x_filetypes; (0s)
  • [1] => select * from cpg141x_plugins order by priority asc; (0s)
        [2] => delete from `sophiabo_sophiabgall`.cpg141x_sessions where time<1273388353 and remember=0; (0s)
        [3] => delete from `sophiabo_sophiabgall`.cpg141x_sessions where time<1272182353; (0s)
        [4] => select user_id from `sophiabo_sophiabgall`.cpg141x_sessions where session_id = 'f888371e7b9f74f1b13cfd5935796ff5' (0s)
        [5] => select user_id as id, user_password as password from `sophiabo_sophiabgall`.cpg141x_users where user_id=4 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.avatar_url AS avatar_url, u.enable_admin_email AS notify, u.auto_subscribe_post AS auto_subscribe_post, u.auto_subscribe_comment AS auto_subscribe_comment, u.user_group+100 AS group_id FROM `sophiabo_sophiabgall`.cpg141x_users AS u INNER JOIN `sophiabo_sophiabgall`.cpg141x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='4' (0s)
        [7] => SELECT user_group_list FROM `sophiabo_sophiabgall`.cpg141x_users AS u WHERE user_id='4' and user_group_list <> ''; (0s)
        [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg141x_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg141x_usergroups WHERE group_id= 1 (0s)
        [10] => update `sophiabo_sophiabgall`.cpg141x_sessions set time='1273391953' where session_id = 'f888371e7b9f74f1b13cfd5935796ff5' (0s)
        [11] => SELECT user_favpics FROM cpg141x_favpics WHERE user_id = 4 (0s)
        [12] => DELETE FROM cpg141x_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE (0s)
        [13] => REPLACE INTO cpg141x_mod_online (user_id, user_name, user_ip, last_action) VALUES ('4', 'admin', '92.3.25.120', NOW()) (0s)
        [14] => SELECT count(*) FROM  cpg141x_pms WHERE owner=4 (0s)
        [15] => SELECT count(*) FROM  cpg141x_pms WHERE owner=4 AND showed='0' (0s)
        [16] => SELECT count(*) FROM  cpg141x_buddy WHERE user_id=4 (0s)
        [17] => SELECT count(*) FROM  cpg141x_buddy_req WHERE buddy_to=4 (0s)
        [18] => DELETE FROM cpg141x_banned WHERE expiry < '2010-05-09 03:59:14' (0s)
        [19] => SELECT * FROM cpg141x_banned WHERE (ip_addr='92.3.25.120' OR ip_addr='92.3.25.120' OR user_id=4) AND brute_force=0 (0s)
        [20] => SELECT cid FROM cpg141x_categories WHERE 1 (0s)
        [21] => UPDATE cpg141x_categories SET parent = '0' WHERE parent=cid OR parent NOT IN (1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,37,38,39,41,42,43,44,45) (0.038s)
        [22] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '0' ORDER BY pos (0s)
        [23] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '1' ORDER BY pos (0s)
        [24] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '2' ORDER BY pos (0s)
        [25] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '45' ORDER BY pos (0s)
        [26] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '16' ORDER BY pos (0s)
        [27] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '15' ORDER BY pos (0s)
        [28] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '14' ORDER BY pos (0s)
        [29] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '13' ORDER BY pos (0s)
        [30] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '12' ORDER BY pos (0s)
        [31] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '11' ORDER BY pos (0s)
        [32] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '10' ORDER BY pos (0s)
        [33] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '9' ORDER BY pos (0s)
        [34] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '5' ORDER BY pos (0s)
        [35] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '34' ORDER BY pos (0s)
        [36] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '35' ORDER BY pos (0s)
        [37] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '37' ORDER BY pos (0s)
        [38] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '33' ORDER BY pos (0s)
        [39] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '22' ORDER BY pos (0s)
        [40] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '38' ORDER BY pos (0s)
        [41] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '8' ORDER BY pos (0s)
        [42] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '23' ORDER BY pos (0s)
        [43] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '24' ORDER BY pos (0s)
        [44] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '32' ORDER BY pos (0s)
        [45] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '25' ORDER BY pos (0s)
        [46] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '26' ORDER BY pos (0s)
        [47] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '27' ORDER BY pos (0s)
        [48] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '28' ORDER BY pos (0s)
        [49] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '29' ORDER BY pos (0s)
        [50] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '30' ORDER BY pos (0s)
        [51] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '31' ORDER BY pos (0s)
        [52] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '39' ORDER BY pos (0s)
        [53] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '43' ORDER BY pos (0s)
        [54] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '44' ORDER BY pos (0s)
        [55] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '41' ORDER BY pos (0s)
        [56] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '7' ORDER BY pos (0s)
        [57] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '4' ORDER BY pos (0s)
        [58] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '6' ORDER BY pos (0s)
        [59] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '18' ORDER BY pos (0s)
        [60] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '21' ORDER BY pos (0s)
        [61] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '42' ORDER BY pos (0s)
        [62] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '19' ORDER BY pos (0s)
        [63] => SELECT cid, name, description FROM cpg141x_categories WHERE parent = '20' ORDER BY pos (0s)
        [64] => UPDATE cpg141x_categories SET pos='0' WHERE cid = '1' LIMIT 1 (0s)
        [65] => UPDATE cpg141x_categories SET pos='1' WHERE cid = '2' LIMIT 1 (0s)
        [66] => UPDATE cpg141x_categories SET pos='0' WHERE cid = '45' LIMIT 1 (0s)
        [67] => UPDATE cpg141x_categories SET pos='1' WHERE cid = '16' LIMIT 1 (0s)
        [68] => UPDATE cpg141x_categories SET pos='2' WHERE cid = '15' LIMIT 1 (0s)
        [69] => UPDATE cpg141x_categories SET pos='3' WHERE cid = '14' LIMIT 1 (0s)
        [70] => UPDATE cpg141x_categories SET pos='4' WHERE cid = '13' LIMIT 1 (0s)
        [71] => UPDATE cpg141x_categories SET pos='5' WHERE cid = '12' LIMIT 1 (0s)
        [72] => UPDATE cpg141x_categories SET pos='6' WHERE cid = '11' LIMIT 1 (0s)
        [73] => UPDATE cpg141x_categories SET pos='7' WHERE cid = '10' LIMIT 1 (0s)
        [74] => UPDATE cpg141x_categories SET pos='8' WHERE cid = '9' LIMIT 1 (0s)
        [75] => UPDATE cpg141x_categories SET pos='2' WHERE cid = '5' LIMIT 1 (0s)
        [76] => UPDATE cpg141x_categories SET pos='0' WHERE cid = '34' LIMIT 1 (0s)
        [77] => UPDATE cpg141x_categories SET pos='1' WHERE cid = '35' LIMIT 1 (0s)
        [78] => UPDATE cpg141x_categories SET pos='2' WHERE cid = '37' LIMIT 1 (0s)
        [79] => UPDATE cpg141x_categories SET pos='3' WHERE cid = '33' LIMIT 1 (0s)
        [80] => UPDATE cpg141x_categories SET pos='4' WHERE cid = '22' LIMIT 1 (0s)
        [81] => UPDATE cpg141x_categories SET pos='5' WHERE cid = '38' LIMIT 1 (0s)
        [82] => UPDATE cpg141x_categories SET pos='3' WHERE cid = '8' LIMIT 1 (0s)
        [83] => UPDATE cpg141x_categories SET pos='0' WHERE cid = '23' LIMIT 1 (0s)
        [84] => UPDATE cpg141x_categories SET pos='0' WHERE cid = '24' LIMIT 1 (0s)
        [85] => UPDATE cpg141x_categories SET pos='0' WHERE cid = '32' LIMIT 1 (0s)
        [86] => UPDATE cpg141x_categories SET pos='1' WHERE cid = '25' LIMIT 1 (0s)
        [87] => UPDATE cpg141x_categories SET pos='2' WHERE cid = '26' LIMIT 1 (0s)
        [88] => UPDATE cpg141x_categories SET pos='3' WHERE cid = '27' LIMIT 1 (0s)
        [89] => UPDATE cpg141x_categories SET pos='4' WHERE cid = '28' LIMIT 1 (0s)
        [90] => UPDATE cpg141x_categories SET pos='5' WHERE cid = '29' LIMIT 1 (0s)
        [91] => UPDATE cpg141x_categories SET pos='0' WHERE cid = '30' LIMIT 1 (0s)
        [92] => UPDATE cpg141x_categories SET pos='1' WHERE cid = '31' LIMIT 1 (0s)
        [93] => UPDATE cpg141x_categories SET pos='6' WHERE cid = '39' LIMIT 1 (0s)
        [94] => UPDATE cpg141x_categories SET pos='0' WHERE cid = '43' LIMIT 1 (0s)
        [95] => UPDATE cpg141x_categories SET pos='1' WHERE cid = '44' LIMIT 1 (0s)
        [96] => UPDATE cpg141x_categories SET pos='2' WHERE cid = '41' LIMIT 1 (0s)
        [97] => UPDATE cpg141x_categories SET pos='4' WHERE cid = '7' LIMIT 1 (0s)
        [98] => UPDATE cpg141x_categories SET pos='5' WHERE cid = '4' LIMIT 1 (0s)
        [99] => UPDATE cpg141x_categories SET pos='6' WHERE cid = '6' LIMIT 1 (0.014s)
        [100] => SELECT COUNT(*) FROM cpg141x_pictures WHERE approved = 'NO' (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.13 - OK
    ------------------
    mySQL version: 5.0.90-community-log
    ------------------
    Coppermine version: 1.4.24(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.34 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support:
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 5.0.90
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib64 -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.3
    Linked Version 1.2.3
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | /home/sophiabo:/usr/lib/php:/usr/local/lib/php:/tmp | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 300 | 300
    max_input_time | 300 | 300
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.315 seconds - 101 queries in 0.053 seconds - Album set : ; Meta set: ;
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: There was an error while processing a database query.
« Reply #1 on: May 09, 2010, 10:23:23 am »

mySQL error: Incorrect key file for table './sophiabo_sophiabgall/cpg141x_categories.MYI'; try to repair it
That's an error message from your database that only shines through Coppermine. Ask your webhost for support on this issue or (if you can) run the repair command against that database table.
Please don't post debug_output unless requested. Not related to bridging, moving accordingly from cpg1.4 bridging
Logged
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 21 queries.