Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Another "There was an error while processing a database query"  (Read 5226 times)

0 Members and 1 Guest are viewing this topic.

andy_cul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 63
  • Incigida

Need help! ;D

After uploading some pictures got this error There was an error while processing a database query. After that when I tried accessing my photo gallery (http://jologs.com/photogallery1) same error appeared.

Thanks in advance...
Quote
While executing query "SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,4" on 0

mySQL error: Got error 134 from table handler

 File: /home/vhosts/www.jologs.com/photogallery1/include/functions.inc.php - Line: 105


Debug Info
Quote
Warning: mysql_query(): Unable to save result set in /home/vhosts/www.jologs.com/photogallery1/include/functions.inc.php on line 79

USER:
------------------
Array
(
    [ID] => 871028de31c2c5a6b5af1c0adb4caac0
    [am] => 1
    [liv] => Array
        (
           
  • => 8997
  • [1] => 8995
                [2] => 8998
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
[user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => andy
    [user_password] => ********
    [user_lastvisit] => 2005-04-30 10:16:15
    [user_regdate] => 2005-02-12 21:24:29
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [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] => 10
    [num_URI_upload] => 5
    [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
(
   
  • => SELECT extension, mime, content FROM cpg132_filetypes;
  • [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'c44bd8ef898b7035f4792e019524eead'
        [2] => 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 cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1114881421
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='210.1.88.236' OR ip_addr='210.1.88.236' OR user_id=1
        [6] => DELETE FROM cpg132_users WHERE user_active = 'NO' AND user_regdate < NOW() - INTERVAL 24 HOUR
        [7] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos
        [8] => SELECT aid FROM cpg132_albums as a WHERE category>=10000
        [9] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000
        [10] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '1'  ORDER BY pos
        [11] => SELECT aid FROM cpg132_albums WHERE category = 2
        [12] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 2
        [13] => SELECT count(*) FROM cpg132_albums as a WHERE category = '2'
        [14] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,7
        [15] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg132_pictures WHERE aid IN (11, 14, 19, 31, 16, 13, 17) AND approved = 'YES' GROUP BY aid
        [16] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='9052'
        [17] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='9099'
        [18] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='7055'
        [19] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='8415'
        [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='8997'
        [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='9039'
        [22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='8902'
        [23] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '2'  ORDER BY pos
        [24] => SELECT aid FROM cpg132_albums WHERE category = 5
        [25] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 5
        [26] => SELECT aid FROM cpg132_albums WHERE category = 6
        [27] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 6
        [28] => SELECT aid FROM cpg132_albums WHERE category = 7
        [29] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 7
        [30] => SELECT aid FROM cpg132_albums WHERE category = 8
        [31] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 8
        [32] => SELECT aid FROM cpg132_albums WHERE category = 9
        [33] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 9
        [34] => SELECT count(*) FROM cpg132_albums as a WHERE category = '9'
        [35] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=9 ORDER BY a.pos LIMIT 0,6
        [36] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg132_pictures WHERE aid IN (1, 2, 9, 8, 7, 10) AND approved = 'YES' GROUP BY aid
        [37] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='8336'
        [38] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='8394'
        [39] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='8962'
        [40] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='9085'
        [41] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='8783'
        [42] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='6910'
        [43] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '9'  ORDER BY pos
        [44] => SELECT aid FROM cpg132_albums WHERE category = 10
        [45] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 10
        [46] => SELECT aid FROM cpg132_albums WHERE category = 11
        [47] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 11
        [48] => SELECT aid FROM cpg132_albums WHERE category = 13
        [49] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 13
        [50] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '13'  ORDER BY pos
        [51] => SELECT aid FROM cpg132_albums as a WHERE category = '0'
        [52] => SELECT count(*) FROM cpg132_albums as a WHERE 1
        [53] => SELECT count(*) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
        [54] => SELECT count(*) FROM cpg132_comments as c LEFT JOIN cpg132_pictures as p ON c.pid=p.pid LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
        [55] => SELECT count(*) FROM cpg132_categories WHERE 1
        [56] => SELECT sum(hits) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON p.aid=a.aid WHERE 1
        [57] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'
        [58] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,4
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.3 - OK
    ------------------
    mySQL version: 4.0.21-Max
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.15 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.58
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.0.7
    Linked Version 1.2.0.7
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | On
    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/share/pear | .:/usr/share/pear
    open_basedir | /home/vhosts/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/xpanel/plugins/:/var/www/html/autoinstaller:/home/filus/:/var/www/html/phpmyadmin/:/home/cv/:/home/epforum/:/home/mails/:/var/www/html/:/home/topsites/:/home/guestbook/:/vaw/www/html/404/:var/www/html/alternate/:/home/blog/:/home/mobile/:/var/www/html/blog/:/usr/local/xpanel/conf_php | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    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 | 20 | 30
    max_input_time | 30 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 2M | 8M
    ==========================
    Page generated in 2.266 seconds - 59 queries in 0.2 seconds - Album set :

« Last Edit: May 01, 2005, 05:31:52 pm by TranzNDance »
Logged

andy_cul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 63
  • Incigida
Re: Another "There was an error while processing a database query"
« Reply #1 on: May 01, 2005, 02:05:21 am »

I think I have made the problem worst, theres a new error after I made a database repair in cpg132_pictures

PHP ADMIN ERROR
Quote
#1016 - Can't open file: 'cpg132_pictures.MYI'. (errno: 144)

Is there a way that I can fix it because I dont have any backup in my db.

PHOTOGALLERY ERROR
Quote
While executing query "SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000" on 0

mySQL error: Can't open file: 'cpg132_pictures.MYI'. (errno: 144)

 File: /home/vhosts/www.jologs.com/photogallery1/include/functions.inc.php - Line: 105

Debug Info

Quote
USER:
------------------
Array
(
    [ID] => 871028de31c2c5a6b5af1c0adb4caac0
    [am] => 1
    [liv] => Array
        (
           
  • => 8997
  • [1] => 8995
                [2] => 8998
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
[user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => andy
    [user_password] => ********
    [user_lastvisit] => 2005-04-30 10:16:15
    [user_regdate] => 2005-02-12 21:24:29
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [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] => 10
    [num_URI_upload] => 5
    [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
(
   
  • => SELECT extension, mime, content FROM cpg132_filetypes;
  • [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'c44bd8ef898b7035f4792e019524eead'
        [2] => 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 cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1114902699
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='210.1.81.100' OR ip_addr='210.1.81.100' OR user_id=1
        [6] => DELETE FROM cpg132_users WHERE user_active = 'NO' AND user_regdate < NOW() - INTERVAL 24 HOUR
        [7] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos
        [8] => SELECT aid FROM cpg132_albums as a WHERE category>=10000
        [9] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.3 - OK
    ------------------
    mySQL version: 4.0.21-Max
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.15 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.58
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.0.7
    Linked Version 1.2.0.7
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | On
    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/share/pear | .:/usr/share/pear
    open_basedir | /home/vhosts/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/xpanel/plugins/:/var/www/html/autoinstaller:/home/filus/:/var/www/html/phpmyadmin/:/home/cv/:/home/epforum/:/home/mails/:/var/www/html/:/home/topsites/:/home/guestbook/:/vaw/www/html/404/:var/www/html/alternate/:/home/blog/:/home/mobile/:/var/www/html/blog/:/usr/local/xpanel/conf_php | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    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 | 20 | 30
    max_input_time | 30 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 2M | 8M
    ==========================
    Page generated in 0.063 seconds - 10 queries in 0.015 seconds - Album set :
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Another "There was an error while processing a database query"
« Reply #2 on: May 01, 2005, 07:19:53 am »

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

Joachim

P.S. No need to post your debug output. In fact, you should only post it when supporters request it explicitely.
Logged

andy_cul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 63
  • Incigida
Re: Another "There was an error while processing a database query"
« Reply #3 on: May 01, 2005, 05:17:23 pm »

thanks for the help :) everything is ok now
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 20 queries.