Hi everybody!
Today a friend of mine uploaded some pictures into his gallery, and wanted to change the sort order of the pictures - but he got a critical error and since that the gallery doesn´t work - it only returns a critical error. Unfortunately he couldn´t explain exactly what he did >:( - so I´ve just got this poor information.
Here´s the message I got by using the debug mode:
USER:
------------------
Array
(
[ID] => 2c68549e468721fd67ca35be598b88a7
[am] => 1
[liv] => Array
(
- => 426
[1] => 269
[2] => 274
[3] => 73
[4] => 427
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => admin
[user_password] => ********
[user_lastvisit] => 2006-03-01 16:20:55
[user_regdate] => 2005-05-18 10:35:36
[user_group_list] =>
[user_email] =>
[user_website] =>
[user_location] =>
[user_interests] =>
[user_occupation] =>
[user_actkey] =>
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 0
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 9
[num_URI_upload] => 3
[can_post_comments] => 0
[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
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg133_filetypes;
[1] => SELECT * FROM cpg133_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '75649dc2eec26e2c409aa56bdcceea0f'
[2] => 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 cpg133_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg133_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg133_banned WHERE expiry < '2006-03-01 16:21:21'
[5] => SELECT * FROM cpg133_banned WHERE ip_addr='62.47.34.22' OR ip_addr='62.47.34.22' OR user_id=1
[6] => SELECT cid, name, description, thumb FROM cpg133_categories WHERE parent = '' ORDER BY pos
[7] => SELECT aid FROM cpg133_albums as a WHERE category>=10000
[8] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category >= 10000
[9] => SELECT cid, name, description, thumb FROM cpg133_categories WHERE parent = '1' ORDER BY pos
[10] => SELECT aid FROM cpg133_albums WHERE category = 2
[11] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category = 2
[12] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='73'
[13] => SELECT count(*) FROM cpg133_albums as a WHERE category = '2'
[14] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg133_albums as a LEFT JOIN cpg133_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,8
[15] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg133_pictures WHERE aid IN (39, 37, 14, 5, 7, 15, 16, 17) AND approved = 'YES' GROUP BY aid
[16] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='442'
[17] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='427'
[18] => SELECT cid, name, description, thumb FROM cpg133_categories WHERE parent = '2' ORDER BY pos
[19] => SELECT aid FROM cpg133_albums WHERE category = 3
[20] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category = 3
[21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='46'
[22] => SELECT count(*) FROM cpg133_albums as a WHERE category = '3'
[23] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg133_albums as a LEFT JOIN cpg133_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,10
[24] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg133_pictures WHERE aid IN (38, 18, 19, 20, 24, 25, 26, 29, 30, 31) AND approved = 'YES' GROUP BY aid
[25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='441'
[26] => SELECT cid, name, description, thumb FROM cpg133_categories WHERE parent = '3' ORDER BY pos
[27] => SELECT aid FROM cpg133_albums WHERE category = 4
[28] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category = 4
[29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='227'
[30] => SELECT count(*) FROM cpg133_albums as a WHERE category = '4'
[31] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg133_albums as a LEFT JOIN cpg133_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,3
[32] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg133_pictures WHERE aid IN (22, 27, 28) AND approved = 'YES' GROUP BY aid
[33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='227'
[34] => SELECT cid, name, description, thumb FROM cpg133_categories WHERE parent = '4' ORDER BY pos
[35] => SELECT aid FROM cpg133_albums WHERE category = 5
[36] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category = 5
[37] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='291'
[38] => SELECT count(*) FROM cpg133_albums as a WHERE category = '5'
[39] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg133_albums as a LEFT JOIN cpg133_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,3
[40] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg133_pictures WHERE aid IN (33, 32, 23) AND approved = 'YES' GROUP BY aid
[41] => SELECT cid, name, description, thumb FROM cpg133_categories WHERE parent = '5' ORDER BY pos
[42] => SELECT aid FROM cpg133_albums WHERE category = 6
[43] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category = 6
[44] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='65'
[45] => SELECT count(*) FROM cpg133_albums as a WHERE category = '6'
[46] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg133_albums as a LEFT JOIN cpg133_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,6
[47] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg133_pictures WHERE aid IN (9, 35, 34, 36, 13, 12) AND approved = 'YES' GROUP BY aid
[48] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='210'
[49] => SELECT cid, name, description, thumb FROM cpg133_categories WHERE parent = '6' ORDER BY pos
[50] => SELECT aid FROM cpg133_albums WHERE category = 7
[51] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category = 7
[52] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='454'
[53] => SELECT count(*) FROM cpg133_albums as a WHERE category = '7'
[54] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg133_albums as a LEFT JOIN cpg133_pictures as p ON a.thumb=p.pid WHERE category=7 ORDER BY a.pos LIMIT 0,1
[55] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg133_pictures WHERE aid IN (40) AND approved = 'YES' GROUP BY aid
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 4.0.24-log
------------------
Coppermine version: 1.3.3
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 2
Client API version 4.0.24
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /usr/local/pd-admin2/var/mysql.run/mysql.sock
MYSQL_INCLUDE -I/usr/local/pd-admin2/include/mysql
MYSQL_LIBS -L/usr/local/pd-admin2/lib/mysql -lmysqlclient
==========================
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 | 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/local/pd-admin2/lib/php | .:/usr/local/pd-admin2/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 | -1 | -1
max_input_time | 60 | 60
upload_max_filesize | 20M | 20M
post_max_size | 20M | 20M
==========================
Page generated in 0.059 seconds - 56 queries in 0.015 seconds - Album set :
-----------------------------------------------------------------------------------------------------------------------------------
Would be nice if somebody could help me to figure out what the problem is - or (better) how to fix it.
Chris
Post the actual mysql error message you get.
Quote from: Nibbler on March 01, 2006, 06:44:18 PM
Post the actual mysql error message you get.
Here it is:
While executing query "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg133_pictures WHERE aid IN (40) AND approved = 'YES' GROUP BY aid" on 0
mySQL error: Got error 134 from table handler
It's a mysql issue, unrelated to Coppermine.
MySQL error code 134: Record was already deleted (or record file crashed)
Try running a REPAIR on the table using phpmyadmin.