The Whole massege
------------------------------------------
Critical error
There was an error while processing a database query
(While executing query "SELECT COUNT(*) FROM `dbname`.user" on 0
mySQL error: )
File: /home/sitename/public_html/gallery/include/functions.inc.php - Line: 249
debg info
USER:
------------------
Array
(
[ID] => 1f84d5db9f156b456a623095721de1d6
[am] => 1
[lang] => english
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => A7la_3alm
[groups] => Array
(
)
[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 cpg1410_filetypes; (0s)
[1] => select * from cpg1410_plugins order by priority asc; (0.002s)
[2] => SELECT * FROM cpg1410_bridge (0s)
[3] => SELECT u.userid, u.password, u.usergroupid+100 AS usergroupid FROM `dbname`.user AS u, `dbname`.session AS s WHERE s.userid=u.userid AND s.sessionhash='b2a218c040c8f9beb5b1f44af89fda59' (0.01s)
[4] => SELECT u.userid AS id, u.username AS username, u.password AS password, u.usergroupid+100 AS group_id FROM `dbname`.user AS u INNER JOIN `dbname`.usergroup AS g ON u.usergroupid=g.usergroupid WHERE u.userid='1' (0.03s)
[5] => 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) (0.02s)
[6] => SELECT group_name FROM cpg1410_usergroups WHERE group_id= 1 (0s)
[7] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0s)
[8] => DELETE FROM cpg1410_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE (0s)
[9] => REPLACE INTO cpg1410_mod_online (user_id, user_name, user_ip, last_action) VALUES ('1', 'AbuHmaid', '85.114.97.5', NOW()) (0s)
[10] => DELETE FROM cpg1410_banned WHERE expiry < '2007-02-28 15:06:41' (0.02s)
[11] => SELECT * FROM cpg1410_banned WHERE (ip_addr='85.114.97.5' OR ip_addr='192.168.0.218' OR user_id=1) AND brute_force=0 (0.01s)
[12] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '' ORDER BY pos (0.011s)
[13] => SELECT aid FROM cpg1410_albums as a WHERE category>=10000 (0.01s)
[14] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
[15] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '1' ORDER BY pos (0.01s)
[16] => SELECT aid FROM cpg1410_albums WHERE category = 2 (0.011s)
[17] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
[18] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '2' (0.014s)
[19] => 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,3 (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 cpg1410_albums AS a LEFT JOIN cpg1410_pictures AS p ON a.aid = p.aid AND p.approved = 'YES' WHERE a.aid IN (7, 8, 9)GROUP BY a.aid (0s)
[21] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '2' ORDER BY pos (0.014s)
[22] => SELECT aid FROM cpg1410_albums WHERE category = 3 (0s)
[23] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
[24] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '3' (0s)
[25] => 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,2 (0s)
[26] => 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 (10, 11)GROUP BY a.aid (0s)
[27] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '3' ORDER BY pos (0s)
[28] => SELECT aid FROM cpg1410_albums WHERE category = 4 (0s)
[29] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0s)
[30] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '4' (0s)
[31] => 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,2 (0s)
[32] => 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 (12, 13)GROUP BY a.aid (0s)
[33] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '4' ORDER BY pos (0s)
[34] => SELECT aid FROM cpg1410_albums WHERE category = 5 (0s)
[35] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0s)
[36] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '5' (0s)
[37] => 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,2 (0s)
[38] => 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 (14, 15)GROUP BY a.aid (0s)
[39] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '5' ORDER BY pos (0s)
[40] => SELECT aid FROM cpg1410_albums WHERE category = 6 (0s)
[41] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
[42] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '6' (0s)
[43] => 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,3 (0s)
[44] => 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 (16, 17, 18)GROUP BY a.aid (0s)
[45] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '6' ORDER BY pos (0s)
[46] => SELECT aid FROM cpg1410_albums WHERE category = 7 (0s)
[47] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0s)
[48] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '7' (0s)
[49] => 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=7 ORDER BY a.pos LIMIT 0,2 (0s)
[50] => 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 (19, 20)GROUP BY a.aid (0s)
[51] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '7' ORDER BY pos (0s)
[52] => SELECT aid FROM cpg1410_albums WHERE category = 8 (0s)
[53] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 8 (0s)
[54] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '8' (0s)
[55] => 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=8 ORDER BY a.pos LIMIT 0,2 (0s)
[56] => 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 (21, 4)GROUP BY a.aid (0s)
[57] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='2' (0s)
[58] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '8' ORDER BY pos (0s)
[59] => SELECT aid FROM cpg1410_albums WHERE category = 9 (0s)
[60] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 9 (0s)
[61] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '9' (0s)
[62] => 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=9 ORDER BY a.pos LIMIT 0,2 (0s)
[63] => 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 (24, 25)GROUP BY a.aid (0s)
[64] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '9' ORDER BY pos (0s)
[65] => SELECT aid FROM cpg1410_albums as a WHERE category = '0' (0s)
[66] => SELECT count(*) FROM cpg1410_albums as a WHERE 1 (0s)
[67] => SELECT count(*) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
[68] => 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)
[69] => SELECT count(*) FROM cpg1410_categories WHERE 1 (0s)
[70] => SELECT sum(hits) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON p.aid=a.aid WHERE 1 (0s)
[71] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0s)
[72] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '0' (0.009s)
[73] => SELECT a.aid, a.title, a.description, category, 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=0 ORDER BY a.pos LIMIT 0,3 (0.007s)
[74] => 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, 23, 6)GROUP BY a.aid (0s)
[75] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='12' (0s)
[76] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='21' (0s)
[77] => SELECT COUNT(*) from cpg1410_pictures WHERE approved = 'YES' (0s)
[78] => SELECT * FROM cpg1410_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 10 (0.114s)
[79] => SELECT count(*) from cpg1410_comments where pid=16 and msg_id!=0 (0.002s)
[80] => SELECT count(*) from cpg1410_comments where pid=11 and msg_id!=0 (0s)
[81] => SELECT count(*) from cpg1410_comments where pid=18 and msg_id!=0 (0.01s)
[82] => SELECT count(*) from cpg1410_comments where pid=3 and msg_id!=0 (0.01s)
[83] => SELECT count(*) from cpg1410_comments where pid=4 and msg_id!=0 (0.01s)
[84] => SELECT count(*) from cpg1410_comments where pid=2 and msg_id!=0 (0.01s)
[85] => SELECT count(*) from cpg1410_comments where pid=10 and msg_id!=0 (0.01s)
[86] => SELECT count(*) from cpg1410_comments where pid=14 and msg_id!=0 (0.01s)
[87] => SELECT count(*) from cpg1410_comments where pid=7 and msg_id!=0 (0.01s)
[88] => SELECT count(*) from cpg1410_comments where pid=13 and msg_id!=0 (0.01s)
[89] => SELECT COUNT(*) from cpg1410_pictures WHERE approved = 'YES' (0s)
[90] => SELECT * FROM cpg1410_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 0 ,10 (0s)
[91] => SELECT count(*) from cpg1410_comments where pid=21 and msg_id!=0 (0s)
[92] => SELECT count(*) from cpg1410_comments where pid=20 and msg_id!=0 (0s)
[93] => SELECT count(*) from cpg1410_comments where pid=19 and msg_id!=0 (0s)
[94] => SELECT count(*) from cpg1410_comments where pid=18 and msg_id!=0 (0s)
[95] => SELECT count(*) from cpg1410_comments where pid=17 and msg_id!=0 (0s)
[96] => SELECT count(*) from cpg1410_comments where pid=16 and msg_id!=0 (0s)
[97] => SELECT count(*) from cpg1410_comments where pid=15 and msg_id!=0 (0s)
[98] => SELECT count(*) from cpg1410_comments where pid=14 and msg_id!=0 (0s)
[99] => SELECT count(*) from cpg1410_comments where pid=13 and msg_id!=0 (0s)
[100] => SELECT count(*) from cpg1410_comments where pid=12 and msg_id!=0 (0s)
[101] => SELECT COUNT(*) FROM `dbname`.user (0s)
)
==========================
GET :
------------------
Array
(
[lang] => english
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 5.0.24-standard
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support:
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 0
Active Links 2
Client API version 5.0.24
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
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 | fpassthru, cmd, backtick, virtual, pcntl_exec, ini_alter, show_source, apache_get_modules, apache_get_version, apache_note, openlog, sscanf, popen , pclose, system, exec, shell_exec, suExec, dl, passthru, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, symlink, tempnam | fpassthru, cmd, backtick, virtual, pcntl_exec, ini_alter, show_source, apache_get_modules, apache_get_version, apache_note, openlog, sscanf, popen , pclose, system, exec, shell_exec, suExec, dl, passthru, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, symlink, tempnam
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 | 300 | 300
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 1.521 seconds - 102 queries in 0.375 seconds - Album set : ; Meta set: ;
---------------------------------
Thats all