forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: tinhduong on May 17, 2012, 04:44:11 am

Title: [HELP] Critical error : There was an error while processing a database query
Post by: tinhduong on May 17, 2012, 04:44:11 am
First, I must say sorry because I posted in the section of 1.5.x, but I see that no one 've seen it on 1.4.x section.

My cpg got this error :
Error :
Quote
While executing query "SELECT * FROM xam_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 12" on 0

mySQL error: Got error 28 from storage engine

Debug info :
Code: [Select]
USER:
------------------
Array
(
    [ID] => e504df3392de658bb36a6fb4b878ed9f
    [am] => 1
    [lang] => vietnamese
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [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] => 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
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM xam_filetypes; (0s)
    [1] => select * from xam_plugins order by priority asc; (0s)
    [2] => delete from `tattoo_hinhxamdep`.xam_sessions where time<1337213230 and remember=0; (0.001s)
    [3] => delete from `tattoo_hinhxamdep`.xam_sessions where time<1336007230; (0.001s)
    [4] => select user_id from `tattoo_hinhxamdep`.xam_sessions where session_id = 'a82f22b75fcacaa55361fc26632f7047' (0s)
    [5] => select user_id as id, user_password as password from `tattoo_hinhxamdep`.xam_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 `tattoo_hinhxamdep`.xam_users AS u INNER JOIN `tattoo_hinhxamdep`.xam_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `tattoo_hinhxamdep`.xam_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 xam_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  xam_usergroups WHERE group_id= 1 (0s)
    [10] => update `tattoo_hinhxamdep`.xam_sessions set time='1337216830' where session_id = 'a82f22b75fcacaa55361fc26632f7047' (0s)
    [11] => SELECT user_favpics FROM xam_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM xam_banned WHERE expiry < '2012-05-17 08:07:11' (0s)
    [13] => SELECT * FROM xam_banned WHERE (ip_addr='58.187.119.70' OR ip_addr='58.187.119.70' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM xam_categories WHERE parent = ''  ORDER BY pos (0.001s)
    [15] => SELECT aid FROM xam_albums WHERE category = 25 (0s)
    [16] => SELECT count(*) FROM xam_pictures as p, xam_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 25 (0.001s)
    [17] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM xam_pictures WHERE pid='15848' (0s)
    [18] => SELECT count(*) FROM xam_albums as a WHERE category = '25' (0s)
    [19] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM xam_albums as a LEFT JOIN xam_pictures as p ON a.thumb=p.pid WHERE category=25 ORDER BY a.pos LIMIT 0,4 (0.001s)
    [20] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM xam_albums AS a  LEFT JOIN xam_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (41, 52, 554, 555)GROUP BY a.aid (0.003s)
    [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM xam_pictures WHERE pid='15870' (0s)
    [22] => SELECT aid FROM xam_albums WHERE category = 22 (0.001s)
    [23] => SELECT count(*) FROM xam_pictures as p, xam_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 22 (0.011s)
    [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM xam_pictures WHERE pid='12941' (0s)
    [25] => SELECT count(*) FROM xam_albums as a WHERE category = '22' (0s)
    [26] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM xam_albums as a LEFT JOIN xam_pictures as p ON a.thumb=p.pid WHERE category=22 ORDER BY a.pos LIMIT 0,27 (0.002s)
    [27] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM xam_albums AS a  LEFT JOIN xam_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (231, 552, 551, 553, 17, 265, 9, 288, 4, 6, 5, 7, 10, 11, 12, 14, 15, 16, 18, 13, 21, 23, 24, 8, 20, 19, 300)GROUP BY a.aid (0.096s)
    [28] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM xam_pictures WHERE pid='15743' (0s)
    [29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM xam_pictures WHERE pid='15100' (0s)
    [30] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM xam_pictures WHERE pid='15344' (0s)
    [31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM xam_pictures WHERE pid='14031' (0s)
    [32] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM xam_pictures WHERE pid='14104' (0s)
    [33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM xam_pictures WHERE pid='14174' (0.002s)
    [34] => SELECT aid FROM xam_albums as a WHERE category>=10000 (0.001s)
    [35] => SELECT count(*) FROM xam_pictures as p, xam_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.015s)
    [36] => SELECT aid FROM xam_albums WHERE category = 28 (0s)
    [37] => SELECT count(*) FROM xam_pictures as p, xam_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 28 (0.001s)
    [38] => SELECT count(*) FROM xam_albums as a WHERE category = '28' (0s)
    [39] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM xam_albums as a LEFT JOIN xam_pictures as p ON a.thumb=p.pid WHERE category=28 ORDER BY a.pos LIMIT 0,7 (0.001s)
    [40] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM xam_albums AS a  LEFT JOIN xam_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (67, 68, 77, 78, 84, 85, 218)GROUP BY a.aid (0.002s)
    [41] => SELECT aid FROM xam_albums as a WHERE category = '0' (0.001s)
    [42] => SELECT count(*) FROM xam_albums as a WHERE 1 (0s)
    [43] => SELECT count(*) FROM xam_pictures as p LEFT JOIN xam_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.016s)
    [44] => SELECT count(*) FROM xam_comments as c LEFT JOIN xam_pictures as p ON c.pid=p.pid LEFT JOIN xam_albums as a ON a.aid=p.aid WHERE 1 (0.049s)
    [45] => SELECT count(*) FROM xam_categories WHERE 1 (0s)
    [46] => SELECT sum(hits) FROM xam_pictures as p LEFT JOIN xam_albums as a ON p.aid=a.aid WHERE 1 (0.033s)
    [47] => SELECT COUNT(*) FROM xam_pictures WHERE approved = 'NO' (0.009s)
    [48] => SELECT count(*) FROM xam_albums as a WHERE category = '0' (0.001s)
    [49] => SELECT * FROM xam_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 12 (0.001s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 5.3.10 - OK
------------------
mySQL version: 5.5.22-cll
------------------
Coppermine version: 1.4.19(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
JPEG 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.5.22
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 | 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 | 50M | 50M
post_max_size | 50M | 50M
==========================
Page generated in 0.488 seconds - 50 queries in 0.25 seconds - Album set : ; Meta set: ;

Any one know how to fix it ?
Title: Re: [HELP] Critical error : There was an error while processing a database query
Post by: Joe Carver on May 17, 2012, 11:39:31 am
1) cpg 1.4.x is no longer supported since 2010.
     - you are running a very outdated version of cpg 1.4.x
     - upgrade to cpg 1.5.x

2) This is not a hotline for instant response - volunteers help when they can, on their own time.
     - do not over-post please

3) Debug output should not be posted, unless it is requested.

4) A quick search on the web reveals this result:
Quote
error code  28:  No space left on device.

Talk to your host - upgrade your Coppermine.