Fatal Error / "Kritischer Fehler": Database / MYSQL Problems? Fatal Error / "Kritischer Fehler": Database / MYSQL Problems?
 

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

Fatal Error / "Kritischer Fehler": Database / MYSQL Problems?

Started by s-treffi, May 16, 2007, 03:19:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

s-treffi

Hello! I need your help!
I have one following Problem:

I have a very big gallery with nearly ~120 Albums and thousands of images. I already added them without a problem. But now, after adding ~10-20 more Images into an album, the following error appears:

In German:
Kritischer Fehler

Beim Ausführen einer Datenbank-Abfrage ist ein Fehler aufgetreten.

[b]Debugmessage:[/b]
While executing query "SELECT * FROM cpg1410_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8" on 0

mySQL error: Got error -1 from storage engine


[b]Debug-Info:[/b]
USER:
------------------
Array
(
    [ID] => db6303936f9fb066a331889600e375be
    [am] => 1
    [lang] => german
    [liv] => Array
        (
            [0] => 5478
        )

    [lap] => 3
    [search] => Array
        (
            [search] => IMG_0514.jpg
            [album] => search
            [title] => on
            [newer_than] =>
            [caption] => on
            [older_than] =>
            [keywords] => on
            [type] => AND
            [filename] => on
            [params] => Array
                (
                    [title] => on
                    [caption] => on
                    [keywords] => on
                    [filename] => on
                )

        )

    [sort] => na
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => STreffi
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0s)
    [1] => select * from cpg1410_plugins order by priority asc; (0s)
    [2] => delete from `siedlungsshow`.cpg1410_sessions where time<1179318843 and remember=0; (0.001s)
    [3] => delete from `siedlungsshow`.cpg1410_sessions where time<1178112843; (0s)
    [4] => select user_id from `siedlungsshow`.cpg1410_sessions where session_id=md5("ff7e90dd202b55499599ce1bc54825fe0c3a3b3e0a33942df4b6104f907ba6fd"); (0s)
    [5] => select user_id as id, user_password as password from `siedlungsshow`.cpg1410_users where user_id=1 (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 `siedlungsshow`.cpg1410_users AS u INNER JOIN `siedlungsshow`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `siedlungsshow`.cpg1410_users AS u WHERE user_id='1' 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 cpg1410_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 1 (0s)
    [10] => update `siedlungsshow`.cpg1410_sessions set time='1179322443' where session_id=md5('ff7e90dd202b55499599ce1bc54825fe0c3a3b3e0a33942df4b6104f907ba6fd'); (0s)
    [11] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg1410_banned WHERE expiry < '2007-05-16 14:34:04' (0s)
    [13] => SELECT * FROM cpg1410_banned WHERE (ip_addr='217.225.131.67' OR ip_addr='217.225.131.67' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = ''  ORDER BY pos (0.001s)
    [15] => SELECT aid FROM cpg1410_albums as a WHERE category>=10000 (0s)
    [16] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [17] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '1'  ORDER BY pos (0s)
    [18] => SELECT aid FROM cpg1410_albums WHERE category = 6 (0s)
    [19] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0.001s)
    [20] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '6' (0s)
    [21] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_albums as a LEFT JOIN cpg1410_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,16 (0.001s)
    [22] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg1410_albums AS a  LEFT JOIN cpg1410_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 43, 44, 39, 41, 40)GROUP BY a.aid (0.012s)
    [23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='2969' (0.001s)
    [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='3198' (0s)
    [25] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '6'  ORDER BY pos (0s)
    [26] => SELECT aid FROM cpg1410_albums WHERE category = 5 (0s)
    [27] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0.002s)
    [28] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '5' (0s)
    [29] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_albums as a LEFT JOIN cpg1410_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,49 (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 cpg1410_albums AS a  LEFT JOIN cpg1410_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 119, 82, 83, 84, 117, 118, 89, 92, 93, 94, 95, 96, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 90, 112, 113, 114, 115, 121)GROUP BY a.aid (0.013s)
    [31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='4947' (0.001s)
    [32] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='5003' (0s)
    [33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='5071' (0s)
    [34] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='5242' (0s)
    [35] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='7731' (0s)
    [36] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='8142' (0s)
    [37] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='8118' (0s)
    [38] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '5'  ORDER BY pos (0.001s)
    [39] => SELECT aid FROM cpg1410_albums WHERE category = 4 (0s)
    [40] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0.002s)
    [41] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '4' (0s)
    [42] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_albums as a LEFT JOIN cpg1410_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,19 (0.001s)
    [43] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg1410_albums AS a  LEFT JOIN cpg1410_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)GROUP BY a.aid (0.016s)
    [44] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='5776' (0s)
    [45] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='6411' (0s)
    [46] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='6415' (0s)
    [47] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='6648' (0s)
    [48] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='6741' (0s)
    [49] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='7049' (0s)
    [50] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='7210' (0s)
    [51] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='7534' (0s)
    [52] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='7556' (0s)
    [53] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='7660' (0s)
    [54] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '4'  ORDER BY pos (0s)
    [55] => SELECT aid FROM cpg1410_albums WHERE category = 3 (0s)
    [56] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0.002s)
    [57] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '3' (0s)
    [58] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_albums as a LEFT JOIN cpg1410_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,25 (0.001s)
    [59] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg1410_albums AS a  LEFT JOIN cpg1410_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27)GROUP BY a.aid (0.014s)
    [60] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='170' (0s)
    [61] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='207' (0s)
    [62] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='440' (0s)
    [63] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='538' (0s)
    [64] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='660' (0s)
    [65] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='684' (0s)
    [66] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='778' (0s)
    [67] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='852' (0s)
    [68] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='913' (0s)
    [69] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='957' (0s)
    [70] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1053' (0s)
    [71] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1226' (0s)
    [72] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1265' (0s)
    [73] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1382' (0s)
    [74] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1469' (0s)
    [75] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1517' (0s)
    [76] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1582' (0s)
    [77] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1597' (0s)
    [78] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1678' (0s)
    [79] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1783' (0s)
    [80] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1808' (0s)
    [81] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='1881' (0s)
    [82] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='2067' (0s)
    [83] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='2093' (0s)
    [84] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '3'  ORDER BY pos (0s)
    [85] => SELECT aid FROM cpg1410_albums WHERE category = 2 (0s)
    [86] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0.001s)
    [87] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '2' (0s)
    [88] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_albums as a LEFT JOIN cpg1410_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,2 (0.001s)
    [89] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg1410_albums AS a  LEFT JOIN cpg1410_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1, 2)GROUP BY a.aid (0.001s)
    [90] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '2'  ORDER BY pos (0s)
    [91] => SELECT aid FROM cpg1410_albums as a WHERE category = '0' (0s)
    [92] => SELECT count(*) FROM cpg1410_albums as a WHERE 1 (0s)
    [93] => SELECT count(*) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.008s)
    [94] => SELECT count(*) FROM cpg1410_comments as c LEFT JOIN cpg1410_pictures as p ON c.pid=p.pid LEFT JOIN cpg1410_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [95] => SELECT count(*) FROM cpg1410_categories WHERE 1 (0s)
    [96] => SELECT sum(hits) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON p.aid=a.aid WHERE 1 (0.016s)
    [97] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0.004s)
    [98] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '0' (0s)
    [99] => SELECT COUNT(*) from cpg1410_pictures WHERE approved = 'YES'  (0.005s)
    [100] => SELECT * FROM cpg1410_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.088s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.4-8+etch2 - OK
------------------
mySQL version: 5.0.32-Debian_7etch1-log
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.32
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.1
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/share/php:/usr/share/pear | .:/usr/share/php:/usr/share/pear
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  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.798 seconds - 101 queries in 0.196 seconds - Album set : ; Meta set: ;





Can you please help me and say, what i have to do? I wanted to launch my Website this weekend - but with this problem it would be useless.

Please please please please help me!

Thanks a lot!

Nibbler

You'd need to ask your webhost for support on that. As a workaround you can disable the random thumbnails in config.

Hein Traag

Try to repair the table cpg1410_pictures with phpmyadmin or ask your host to do so. Worked for me once.