I got the error message , please help I got the error message , please help
 

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

Main Menu

I got the error message , please help

Started by fishman88, June 01, 2006, 07:01:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fishman88

Hi Sir,

when i uploaded the photo and created the albums , i can not open the "Album List"
and i got the error message in the web page !

"Critical error

There was an error while processing a database query.


While executing query "SELECT * FROM cpg143_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8" on 0

mySQL error: Got error 28 from table handler



File: /home/virtual/site27/fst/var/www/html/gallery/include/functions.inc.php - Line: 248  "

--------------------------------------------------------------------------------------------------------

Debug info:

USER:
------------------
Array
(
    [ID] => c10edaf9b1c2c8002c37e9fdb662fda8
    [am] => 1
    [lang] => english
    [lap] => 1
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 3
    [user_name] => man
    [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 cpg143_filetypes; (0s)
        [1] => select * from cpg143_plugins order by priority asc; (0s)
        [2] => delete from `tornado-unit_com_-_test-gallary`.cpg143_sessions where time<1149134816 and remember=0; (0s)
        [3] => delete from `tornado-unit_com_-_test-gallary`.cpg143_sessions where time<1147928816; (0s)
        [4] => select user_id from `tornado-unit_com_-_test-gallary`.cpg143_sessions where session_id=md5("0b10889d7bc2f930b82af82a122bee65ac4d71a33bb9b8ebd6a8ed810dd4c532"); (0s)
        [5] => select user_id as id, user_password as password from `tornado-unit_com_-_test-gallary`.cpg143_users where user_id=3 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `tornado-unit_com_-_test-gallary`.cpg143_users AS u INNER JOIN `tornado-unit_com_-_test-gallary`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='3' (0s)
        [7] => SELECT user_group_list FROM `tornado-unit_com_-_test-gallary`.cpg143_users AS u WHERE user_id='3' 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 cpg143_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0s)
        [10] => update `tornado-unit_com_-_test-gallary`.cpg143_sessions set time='1149138416' where session_id=md5('0b10889d7bc2f930b82af82a122bee65ac4d71a33bb9b8ebd6a8ed810dd4c532'); (0s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 3 (0s)
        [12] => DELETE FROM cpg143_mod_online WHERE last_action < NOW() - INTERVAL 15 MINUTE (0.002s)
        [13] => REPLACE INTO cpg143_mod_online (user_id, user_name, user_ip, last_action) VALUES ('3', 'man', '203.189.174.3', NOW()) (0s)
        [14] => DELETE FROM cpg143_banned WHERE expiry < '2006-06-01 13:06:56' (0s)
        [15] => SELECT * FROM cpg143_banned WHERE (ip_addr='203.189.174.3' OR ip_addr='10.1.31.123' OR user_id=3) AND brute_force=0 (0s)
        [16] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = ''  ORDER BY pos (0.001s)
        [17] => SELECT aid FROM cpg143_albums WHERE category = 12 (0s)
        [18] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category = 12 (0s)
        [19] => SELECT count(*) FROM cpg143_albums as a WHERE category = '12' (0s)
        [20] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg143_albums as a LEFT JOIN cpg143_pictures as p ON a.thumb=p.pid WHERE category=12 ORDER BY a.pos LIMIT 0,2 (0s)
        [21] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg143_albums AS a  LEFT JOIN cpg143_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (32, 39)GROUP BY a.aid (0s)
        [22] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '12'  ORDER BY pos (0s)
        [23] => SELECT aid FROM cpg143_albums as a WHERE category>=10000 (0s)
        [24] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category >= 10000 (0s)
        [25] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '1'  ORDER BY pos (0s)
        [26] => SELECT aid FROM cpg143_albums WHERE category = 9 (0s)
        [27] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category = 9 (0.001s)
        [28] => SELECT count(*) FROM cpg143_albums as a WHERE category = '9' (0s)
        [29] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg143_albums as a LEFT JOIN cpg143_pictures as p ON a.thumb=p.pid WHERE category=9 ORDER BY a.pos LIMIT 0,15 (0.001s)
        [30] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg143_albums AS a  LEFT JOIN cpg143_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (45, 44, 43, 42, 41, 40, 38, 37, 36, 35, 33, 30, 20, 19, 11)GROUP BY a.aid (0.01s)
        [31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='651' (0s)
        [32] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '9'  ORDER BY pos (0.001s)
        [33] => SELECT aid FROM cpg143_albums WHERE category = 14 (0s)
        [34] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category = 14 (0s)
        [35] => SELECT count(*) FROM cpg143_albums as a WHERE category = '14' (0s)
        [36] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg143_albums as a LEFT JOIN cpg143_pictures as p ON a.thumb=p.pid WHERE category=14 ORDER BY a.pos LIMIT 0,1 (0s)
        [37] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg143_albums AS a  LEFT JOIN cpg143_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (18)GROUP BY a.aid (0.003s)
        [38] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '14'  ORDER BY pos (0s)
        [39] => SELECT aid FROM cpg143_albums as a WHERE category = '0' (0s)
        [40] => SELECT count(*) FROM cpg143_albums as a WHERE 1 (0s)
        [41] => SELECT count(*) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0.002s)
        [42] => SELECT count(*) FROM cpg143_comments as c LEFT JOIN cpg143_pictures as p ON c.pid=p.pid LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0.001s)
        [43] => SELECT count(*) FROM cpg143_categories WHERE 1 (0s)
        [44] => SELECT sum(hits) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON p.aid=a.aid WHERE 1 (0.006s)
        [45] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.003s)
        [46] => SELECT count(*) FROM cpg143_albums as a WHERE category = '0' (0s)
        [47] => SELECT COUNT(*) from cpg143_pictures WHERE approved = 'YES'  (0.001s)
        [48] => SELECT * FROM cpg143_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.10 - OK
    ------------------
    mySQL version: 3.23.58
    ------------------
    Coppermine version: 1.4.3(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 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
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 1
    Active Links 2
    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.1.1
    Linked Version 1.2.1.2
    ==========================
    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 | .:/php/includes:/usr/share/php | .:/php/includes:/usr/share/php
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i -f admin27@tornado-unit.com | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 60 | 60
    max_input_time | 60 | 60
    upload_max_filesize | 50M | 50M
    post_max_size | 100M | 100M
    ==========================
    Page generated in 0.188 seconds - 49 queries in 0.032 seconds - Album set : ; Meta set: ;

    please help !

    Thanks
    fishman88

Joachim Müller

In the future, don't post debug_output unless requested, the error message alone is usually enough. The error message comes from mysql, not coppermine and means that the mysql database has run out of space, so you should contact your webhost. Searching for the error message you got would have told you so as well. Has been asked and answered only yesterday by Nibbler: http://forum.coppermine-gallery.net/index.php?topic=32097.msg149002#msg149002