Hi to everybody.
Often,I get received messages that ''There was an error while processing a database query" So, How can I solve that problem.
Regards
enable degug mode and then post the full error message (not the debug output itself)
USER:
------------------
Array
(
[ID] => 6f0678b1c951819a83bbf0aa071feae8
[am] => 1
[lang] => turkish
[liv] => Array
(
[0] => 170
[1] => 198
[2] => 201
[3] => 205
[4] => 197
)
[lap] => 1
[search] => Array
(
[search] => A
[album] => search
[title] => on
[newer_than] =>
[caption] => on
[older_than] =>
[keywords] => on
[type] => OR
[params] => Array
(
[title] => on
[caption] => on
[keywords] => on
)
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 2
[user_name] => fotokafe
[groups] => Array
(
[0] => 102
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 0
[can_send_ecards] => 1
[ufc_max] => 0
[ufc_min] => 0
[custom_user_upload] => 0
[num_file_upload] => 1
[num_URI_upload] => 0
[can_post_comments] => 0
[can_upload_pictures] => 1
[can_create_albums] => 0
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 0
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 102
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0.001s)
[1] => select * from cpg1410_plugins order by priority asc; (0.001s)
[2] => SELECT * FROM cpg1410_bridge (0.001s)
[3] => SELECT u.user_id AS user_id, u.user_password AS password, u.user_level FROM `fotokafenet`.phpbb_users AS u, `fotokafenet`.phpbb_sessions AS s WHERE u.user_id=s.session_user_id AND s.session_id = '171ce444a6879fea558c9862b0c0ddd7' AND u.user_id > 0 (0.001s)
[4] => SELECT u.user_id AS id, u.username AS username, u.user_password AS password, ug.group_id AS group_id FROM `fotokafenet`.phpbb_users AS u, `fotokafenet`.phpbb_user_group AS ug WHERE u.user_id=ug.user_id AND u.user_id='2' (0.001s)
[5] => SELECT ug.group_id+100 AS group_id FROM `fotokafenet`.phpbb_users AS u, `fotokafenet`.phpbb_user_group AS ug, `fotokafenet`.phpbb_groups as g WHERE u.user_id=ug.user_id AND u.user_id='2' AND g.group_id = ug.group_id AND group_single_user = 0 (0s)
[6] => 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 (102) (0.001s)
[7] => SELECT group_name FROM cpg1410_usergroups WHERE group_id= 102 (0s)
[8] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 2 (0s)
[9] => SELECT * FROM cpg1410_lang_strings WHERE lang = 'turkish' (0.001s)
[10] => DELETE FROM cpg1410_mod_online WHERE last_action < NOW() - INTERVAL 5 MINUTE (0.156s)
[11] => REPLACE INTO cpg1410_mod_online (user_id, user_name, user_ip, last_action) VALUES ('2', 'fotokafe', '85.105.227.158', NOW()) (0.001s)
[12] => SELECT * FROM cpg1410_highslide_config (0.001s)
[13] => DELETE FROM cpg1410_banned WHERE expiry < '2007-01-29 12:01:22' (0.001s)
[14] => SELECT * FROM cpg1410_banned WHERE (ip_addr='85.105.227.158' OR ip_addr='85.105.227.158' OR user_id=2) AND brute_force=0 (0s)
[15] => SELECT aid FROM cpg1410_albums as a WHERE category>=10000 (0.001s)
[16] => SELECT cid FROM cpg1410_categories WHERE parent = '1' (0.001s)
[17] => SELECT name, parent FROM cpg1410_categories WHERE cid = '1' (0.01s)
[18] => SELECT cid, name, description, thumb FROM cpg1410_categories WHERE parent = '1' ORDER BY name (0s)
[19] => SELECT aid FROM cpg1410_albums as a WHERE category >= 10000 (0.001s)
[20] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0s)
[21] => select null from cpg1410_albums as p INNER JOIN cpg1410_pictures AS pics ON pics.aid = p.aid where ( category>10000 ) group by category; (0.002s)
[22] => SELECT user_id as user_id,username as user_name,COUNT(DISTINCT a.aid) as alb_count,COUNT(DISTINCT pid) as pic_count,MAX(pid) as thumb_pid, MAX(galleryicon) as gallery_pid FROM cpg1410_albums AS a INNER JOIN `fotokafenet`.phpbb_users as u on u.user_id = a.category - 10000 INNER JOIN cpg1410_pictures AS p ON p.aid = a.aid WHERE ((isnull(approved) or approved='YES') AND category > 10000) GROUP BY user_id ORDER BY category LIMIT 0, 15 (0.014s)
)
==========================
GET :
------------------
Array
(
[cat] => 1
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.2 - OK
------------------
mySQL version: 4.1.18-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: 1
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.1.20
MYSQL_MODULE_TYPE none
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
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 | proc_close,proc_get_status,proc_nice,proc_terminate,escapeshellarg,escapeshellcmd,proc_open,exec,system,shell_exec,popen,passthru,set_time_limit,ini_set | proc_close,proc_get_status,proc_nice,proc_terminate,escapeshellarg,escapeshellcmd,proc_open,exec,system,shell_exec,popen,passthru,set_time_limit,ini_set
file_uploads | On | On
include_path | .: | .:
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 1.383 seconds - 23 queries in 0.195 seconds - Album set : AND aid IN (15,7,9,11,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,38,39,40,41,42,43) ; Meta set: AND aid IN (15,7,9,11,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,38,39,40,41,42,43) ;
[Edited] By Sami:
added code block
[/Edited]
Thanks Stramm
Stramm asked for full Error message not the debug output !
Is this?
While executing query "SELECT user_id as user_id,username as user_name,COUNT(DISTINCT a.aid) as alb_count,COUNT(DISTINCT pid) as pic_count,MAX(pid) as thumb_pid, MAX(galleryicon) as gallery_pid FROM cpg1410_albums AS a INNER JOIN `fotokafenet`.phpbb_users as u on u.user_id = a.category - 10000 INNER JOIN cpg1410_pictures AS p ON p.aid = a.aid WHERE ((isnull(approved) or approved='YES') AND category > 10000) GROUP BY user_id ORDER BY category LIMIT 0, 15 " on 0
mySQL error: Out of memory (Needed 4194276 bytes)
Thanks Sami
Try asking your host for support, it's not a Coppermine issue.
ok Thanks all