Why does debug information appear on the main page of my gallery?
http://www.ellenpageinfo.com/cpg1410/index.php
Here is what shows up:
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => ok5allegra
[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 cpg1410_filetypes; (0s)
[1] => delete from `db203692262`.cpg1410_sessions where time<1178211364 and remember=0; (0s)
[2] => delete from `db203692262`.cpg1410_sessions where time<1177005364; (0s)
[3] => select user_id from `db203692262`.cpg1410_sessions where session_id=md5("bd73d6fbc652d547c9b43c3d268cd4a8617e3af6b477a18bf9b645c281a22f4d"); (0s)
[4] => select user_id as id, user_password as password from `db203692262`.cpg1410_users where user_id=1 (0s)
[5] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `db203692262`.cpg1410_users AS u INNER JOIN `db203692262`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[6] => SELECT user_group_list FROM `db203692262`.cpg1410_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
[7] => 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)
[8] => SELECT group_name FROM cpg1410_usergroups WHERE group_id= 1 (0s)
[9] => update `db203692262`.cpg1410_sessions set time='1178214964' where session_id=md5('bd73d6fbc652d547c9b43c3d268cd4a8617e3af6b477a18bf9b645c281a22f4d'); (0s)
[10] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0s)
[11] => DELETE FROM cpg1410_banned WHERE expiry < '2007-05-03 17:56:04' (0s)
[12] => SELECT * FROM cpg1410_banned WHERE (ip_addr='24.89.208.225' OR ip_addr='24.89.208.225' OR user_id=1) AND brute_force=0 (0s)
[13] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '' ORDER BY pos (0s)
[14] => SELECT aid FROM cpg1410_albums as a WHERE category>=10000 (0s)
[15] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
[16] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '1' ORDER BY pos (0s)
[17] => SELECT aid FROM cpg1410_albums WHERE category = 2 (0s)
[18] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
[19] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '2' (0s)
[20] => 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,12 (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 cpg1410_albums AS a LEFT JOIN cpg1410_pictures AS p ON a.aid = p.aid AND p.approved = 'YES' WHERE a.aid IN (9, 11, 10, 15, 14, 16, 17, 18, 12, 13, 19, 6)GROUP BY a.aid (0s)
[22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='158' (0s)
[23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='138' (0s)
[24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='126' (0s)
[25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='171' (0.005s)
[26] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='150' (0s)
[27] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='166' (0s)
[28] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='169' (0s)
[29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='160' (0s)
[30] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='163' (0s)
[31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='140' (0s)
[32] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='175' (0s)
[33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='98' (0s)
[34] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '2' ORDER BY pos (0s)
[35] => SELECT aid FROM cpg1410_albums WHERE category = 3 (0s)
[36] => SELECT count(*) FROM cpg1410_pictures as p, cpg1410_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
[37] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '3' (0.001s)
[38] => 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,5 (0.001s)
[39] => 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 (2, 20, 21, 22, 23)GROUP BY a.aid (0s)
[40] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg1410_pictures WHERE pid='201' (0.001s)
[41] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '3' ORDER BY pos (0s)
[42] => SELECT aid FROM cpg1410_albums as a WHERE category = '0' (0s)
[43] => SELECT count(*) FROM cpg1410_albums as a WHERE 1 (0s)
[44] => SELECT count(*) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
[45] => 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)
[46] => SELECT count(*) FROM cpg1410_categories WHERE 1 (0s)
[47] => SELECT sum(hits) FROM cpg1410_pictures as p LEFT JOIN cpg1410_albums as a ON p.aid=a.aid WHERE 1 (0s)
[48] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0.001s)
[49] => SELECT count(*) FROM cpg1410_albums as a WHERE category = '0' (0s)
[50] => SELECT COUNT(*) from cpg1410_pictures WHERE approved = 'YES' (0s)
[51] => SELECT * FROM cpg1410_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 8 (0.023s)
[52] => SELECT count(*) from cpg1410_comments where pid=158 and msg_id!=0 (0s)
[53] => SELECT count(*) from cpg1410_comments where pid=75 and msg_id!=0 (0s)
[54] => SELECT count(*) from cpg1410_comments where pid=125 and msg_id!=0 (0s)
[55] => SELECT count(*) from cpg1410_comments where pid=116 and msg_id!=0 (0s)
[56] => SELECT count(*) from cpg1410_comments where pid=155 and msg_id!=0 (0s)
[57] => SELECT count(*) from cpg1410_comments where pid=36 and msg_id!=0 (0s)
[58] => SELECT count(*) from cpg1410_comments where pid=54 and msg_id!=0 (0s)
[59] => SELECT count(*) from cpg1410_comments where pid=98 and msg_id!=0 (0s)
[60] => SELECT COUNT(*) from cpg1410_pictures WHERE approved = 'YES' (0s)
[61] => SELECT * FROM cpg1410_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 0 ,8 (0.001s)
[62] => SELECT count(*) from cpg1410_comments where pid=201 and msg_id!=0 (0s)
[63] => SELECT count(*) from cpg1410_comments where pid=200 and msg_id!=0 (0.001s)
[64] => SELECT count(*) from cpg1410_comments where pid=199 and msg_id!=0 (0s)
[65] => SELECT count(*) from cpg1410_comments where pid=198 and msg_id!=0 (0s)
[66] => SELECT count(*) from cpg1410_comments where pid=197 and msg_id!=0 (0s)
[67] => SELECT count(*) from cpg1410_comments where pid=196 and msg_id!=0 (0s)
[68] => SELECT count(*) from cpg1410_comments where pid=195 and msg_id!=0 (0s)
[69] => SELECT count(*) from cpg1410_comments where pid=194 and msg_id!=0 (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 4.0.27-standard-log
------------------
Coppermine version: 1.4.10(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 0
Active Links 1
Client API version 4.0.25
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
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/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 | 50000 | 50000
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.156 seconds - 70 queries in 0.034 seconds - Album set : ; Meta set: ;
I am a bit confused.
Probably a result of enabling it in config. Known issue.
Yes I just figured this out!
So I have it only viewable for me, not the public.
I am still not sure what the debug message means but I think its photo related and posted it in another part of the support forum.
Thanks.
If you don't understand it then turn it off. Don't post debug output unless requested - it just clutters up the thread.
"Help, help - whenever I hit myself on the head, it hurts badly!"...
What do you expect: if you turn on debug_mode, debug_output shows. That's expected behaviour. The feature "debug_mode" is meant to help developers, supporters and users who know their way around to hunt for errors/bugs, as it displays details. If you don't need that feature (because you're not a coder, or because you don't have issues with your gallery), then leave it turned off.