I upgraded last night and everything seemed fine, no errors, uploaded fine. Today I get errors...
Notice: Undefined index: cat_thumb in /home/scrappin/public_html/gallery/themes/water_drop/theme.php on line 1048
Notice: Undefined index: cat_albums in /home/scrappin/public_html/gallery/themes/water_drop/theme.php on line 1050
Debug says:
QuoteUSER:
------------------
Array
(
[ID] => a6585a5c931f069e27ea6678b3cb8740
[am] => 1
[liv] => Array
(
- => 487
[1] => 485
[2] => 517
[3] => 516
[4] => 518
)
[lap] => 1
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 6
[user_group] => 1
[user_active] => YES
[user_name] => marcie
[user_password] => ********
[user_lastvisit] => 2004-09-25 01:22:43
[user_regdate] => 2004-07-30 11:25:20
[user_group_list] =>
[user_email] => marciehunter@gmail.com
[user_website] => http://simplisticmemories.com
[user_location] =>
[user_interests] =>
[user_occupation] =>
[user_actkey] =>
[user_favpics] =>
[disk_max] => 2000
[disk_min] => 2000
[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] => 2000
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg11d_filetypes;
[1] => SELECT * FROM cpg11d_users WHERE user_id='6'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '3e47b75000b0924b6c9ba5759a7cf15d'
[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 cpg11d_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg11d_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg11d_banned WHERE expiry < 1096090343
[5] => SELECT * FROM cpg11d_banned WHERE ip_addr='66.219.233.83' OR ip_addr='66.219.233.83' OR user_id=6
[6] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '' ORDER BY pos
[7] => SELECT aid FROM cpg11d_albums as a WHERE category>=10000
[8] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category >= 10000
[9] => SELECT aid FROM cpg11d_albums WHERE category = 5
[10] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 5
[11] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '5'
[12] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,12
[13] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (55, 56, 57, 61, 58, 59, 60, 62, 63, 64, 65, 100) AND approved = 'YES' GROUP BY aid
[14] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='468'
[15] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='367'
[16] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='500'
[17] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='354'
[18] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='463'
[19] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='270'
[20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='362'
[21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='512'
[22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='445'
[23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='491'
[24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='399'
[25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='493'
[26] => SELECT aid FROM cpg11d_albums WHERE category = 6
[27] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 6
[28] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '6'
[29] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,4
[30] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (81, 82, 83, 84) AND approved = 'YES' GROUP BY aid
[31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='519'
[32] => SELECT aid FROM cpg11d_albums WHERE category = 20
[33] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 20
[34] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '20'
[35] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=20 ORDER BY a.pos LIMIT 0,1
[36] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (98) AND approved = 'YES' GROUP BY aid
[37] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='516'
[38] => SELECT aid FROM cpg11d_albums WHERE category = 3
[39] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 3
[40] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '3'
[41] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,2
[42] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (104, 112) AND approved = 'YES' GROUP BY aid
[43] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='426'
[44] => SELECT aid FROM cpg11d_albums WHERE category = 60
[45] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 60
[46] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '60'
[47] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=60 ORDER BY a.pos LIMIT 0,2
[48] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (94, 116) AND approved = 'YES' GROUP BY aid
[49] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='394'
[50] => SELECT aid FROM cpg11d_albums WHERE category = 23
[51] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 23
[52] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '23'
[53] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=23 ORDER BY a.pos LIMIT 0,1
[54] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (95) AND approved = 'YES' GROUP BY aid
[55] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='474'
[56] => SELECT aid FROM cpg11d_albums WHERE category = 9
[57] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 9
[58] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '9'
[59] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=9 ORDER BY a.pos LIMIT 0,3
[60] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (96, 131, 132) AND approved = 'YES' GROUP BY aid
[61] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='131'
[62] => SELECT aid FROM cpg11d_albums WHERE category = 8
[63] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 8
[64] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '8'
[65] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=8 ORDER BY a.pos LIMIT 0,1
[66] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (97) AND approved = 'YES' GROUP BY aid
[67] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='507'
[68] => SELECT aid FROM cpg11d_albums WHERE category = 66
[69] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 66
[70] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '66'
[71] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=66 ORDER BY a.pos LIMIT 0,2
[72] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (110, 54) AND approved = 'YES' GROUP BY aid
[73] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='495'
[74] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='285'
[75] => SELECT aid FROM cpg11d_albums as a WHERE category = '0'
[76] => SELECT count(*) FROM cpg11d_albums as a WHERE 1
[77] => SELECT count(*) FROM cpg11d_pictures as p LEFT JOIN cpg11d_albums as a ON a.aid=p.aid WHERE 1
[78] => SELECT count(*) FROM cpg11d_comments as c LEFT JOIN cpg11d_pictures as p ON c.pid=p.pid LEFT JOIN cpg11d_albums as a ON a.aid=p.aid WHERE 1
[79] => SELECT count(*) FROM cpg11d_categories WHERE 1
[80] => SELECT sum(hits) FROM cpg11d_pictures as p LEFT JOIN cpg11d_albums as a ON p.aid=a.aid WHERE 1
[81] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES'
[82] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg11d_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 0 ,8
[83] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '0'
[84] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES'
[85] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg11d_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 4
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.3 - OK
------------------
mySQL version: 4.0.20-standard
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.15 compatible)
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /var/tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
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 | 30000 | 30000
max_input_time | -1 | -1
upload_max_filesize | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 0.121 seconds - 86 queries in 0.017 seconds - Album set :
Then when I go to the upload page I get these errors
Notice: Undefined offset: 2 in /home/scrappin/public_html/gallery/upload.php on line 250
Notice: Undefined offset: 3 in /home/scrappin/public_html/gallery/upload.php on line 256
Notice: Undefined offset: 4 in /home/scrappin/public_html/gallery/upload.php on line 256
Any suggestions?
Thanks
Have you done a search for the error message, Notice: Undefined offset:
In the future, please reserve red font color for emphasis. Red text is difficult to read if there's too much of it. I have changed the color code to 'quote'.
Just turn off debug mode, they will go away. Only have debug mode on when you have a problem, and then it is warnings and errors you need to worry about, not notices.
thanks I figured it out...sorry for the red text.... :-[