http://www.ceconn.com/photos
Server Info:
Operating System: Linux
Kernel Version: 2.4.20-20.9smp
Machine Type: i686
Apache version: 1.3.34 (Unix)
Perl version: 5.8.4
PHP version: 4.3.11
MySQL version: 4.0.25-standard-log
GD Info: bundled (2.0.28 compatible)
I switched to single file upload. All my folders are either 777 or 755.
I tried to upload a file and got this message: Failed to create directory albums/userpics/10001 !
File: /home/cecon46/public_html/photos/db_input.php - Line: 228
Notice: Undefined index: user1 in /home/cecon46/public_html/photos/db_input.php on line 202
Notice: Undefined index: user2 in /home/cecon46/public_html/photos/db_input.php on line 203
Notice: Undefined index: user3 in /home/cecon46/public_html/photos/db_input.php on line 204
Notice: Undefined index: user4 in /home/cecon46/public_html/photos/db_input.php on line 205
Warning: mkdir(albums/userpics/10001): Permission denied in /home/cecon46/public_html/photos/db_input.php on line 227
Debug mode mode gave me this:USER:
------------------
Array
(
[ID] => e7a1be63c043557b96621289e2408015
[am] => 1
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => Erika
[user_password] => ********
[user_lastvisit] => 2006-08-14 10:52:32
[user_regdate] => 2006-08-14 10:46:27
[user_group_list] =>
[user_email] =>
[user_website] => http://www.ceconn.com
[user_location] => Canada
[user_interests] => Photography, writing
[user_occupation] => Head Hunter
[user_actkey] =>
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 0
[ufc_min] => 0
[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] => 0
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg132_filetypes;
[1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '7069e19a827865e064e05379dd23e242'
[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 cpg132_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg132_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg132_banned WHERE expiry < 1155643395
[5] => SELECT * FROM cpg132_banned WHERE ip_addr='24.43.254.121' OR ip_addr='24.43.254.121' OR user_id=1
[6] => SELECT category FROM cpg132_albums WHERE aid='1'
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[album] => 1
[MAX_FILE_SIZE] => 1048576
[title] =>
[caption] =>
[keywords] =>
[event] => picture
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.25-standard-log
------------------
Coppermine version: 1.3.2
==========================
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 1
Client API version 4.0.25
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.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | no value | no value
safe_mode_gid | On | On
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 | /home/cecon46/:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | -1 | -1
upload_max_filesize | 15M | 15M
post_max_size | 55M | 55M
==========================
Page generated in 0.079 seconds - 7 queries in 0.001 seconds - Album set :
Now what?
You mean userpics in the album folder, right? I changed it to 777. Still get this message
Impossible to move 6.jpg to albums/userpics/10001/ !
File: /home/cecon46/public_html/photos/db_input.php - Line: 266
Notice: Undefined index: user1 in /home/cecon46/public_html/photos/db_input.php on line 202
Notice: Undefined index: user2 in /home/cecon46/public_html/photos/db_input.php on line 203
Notice: Undefined index: user3 in /home/cecon46/public_html/photos/db_input.php on line 204
Notice: Undefined index: user4 in /home/cecon46/public_html/photos/db_input.php on line 205
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid/gid is 32204/705 is not allowed to access /home/cecon46/public_html/photos/albums/userpics/10001 owned by uid/gid 99/99 in /home/cecon46/public_html/photos/db_input.php on line 265
I went to the documentation and found the safe mode thing. They advised me to add the following:
Check that at the beginning the the "include/config.inc.php" file, you have a line with : "define('SILLY_SAFE_MODE', 1);" I can now upload pictures.
However, I have a new problem:Notice: Undefined variable: meta_keywords in /home/cecon46/public_html/photos/displayimage.php on line 632
Home > Family > Alexis' Bridal Shower
Notice: Undefined variable: template_tab_display in /home/cecon46/public_html/photos/themes/fruity/theme.php on line 1369
Notice: Undefined variable: lang_thumb_view in /home/cecon46/public_html/photos/themes/fruity/theme.php on line 1372
Notice: Undefined index: inactive_tab in /home/cecon46/public_html/photos/themes/fruity/theme.php on line 1373
This is the degub output:USER:
------------------
Array
(
[ID] => e7a1be63c043557b96621289e2408015
[am] => 1
[liv] => Array
(
- => 1
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => Erika
[user_password] => ********
[user_lastvisit] => 2006-08-14 10:52:32
[user_regdate] => 2006-08-14 10:46:27
[user_group_list] =>
[user_email] =>
[user_website] => http://www.ceconn.com
[user_location] => Canada
[user_interests] => Photography, writing
[user_occupation] => Head Hunter
[user_actkey] =>
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 0
[ufc_min] => 0
[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] => 0
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg132_filetypes;
[1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '7069e19a827865e064e05379dd23e242'
[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 cpg132_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg132_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg132_banned WHERE expiry < 1155656571
[5] => SELECT * FROM cpg132_banned WHERE ip_addr='24.43.254.121' OR ip_addr='24.43.254.121' OR user_id=1
[6] => SELECT aid from cpg132_pictures WHERE pid='1' LIMIT 1
[7] => SELECT title,keyword from cpg132_albums WHERE aid='1'
[8] => SELECT COUNT(*) from cpg132_pictures WHERE aid='1'
[9] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, title, caption,hits,owner_id,owner_name from cpg132_pictures WHERE aid='1' ORDER BY filename ASC
[10] => SELECT title,keyword from cpg132_albums WHERE aid='1'
[11] => SELECT COUNT(*) from cpg132_pictures WHERE aid='1'
[12] => SELECT * from cpg132_pictures WHERE aid='1' ORDER BY filename ASC LIMIT 0 ,1
[13] => SELECT title, comments, votes, category, aid FROM cpg132_albums WHERE aid='1' LIMIT 1
[14] => SELECT name, parent FROM cpg132_categories WHERE cid = '2'
[15] => UPDATE cpg132_pictures SET hits=hits+1 WHERE pid='1'
[16] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip FROM cpg132_comments WHERE pid='1' ORDER BY msg_id ASC
[17] => SELECT title,keyword from cpg132_albums WHERE aid='1'
[18] => SELECT COUNT(*) from cpg132_pictures WHERE aid='1'
[19] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, title, caption,hits,owner_id,owner_name from cpg132_pictures WHERE aid='1' ORDER BY filename ASC LIMIT 0 ,10
[20] => SELECT count(*) from cpg132_comments where pid=1 and msg_id!=0
)
==========================
GET :
------------------
Array
(
[pos] => -1
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.25-standard-log
------------------
Coppermine version: 1.3.2
==========================
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 1
Client API version 4.0.25
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.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | no value | no value
safe_mode_gid | On | On
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 | /home/cecon46/:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | -1 | -1
upload_max_filesize | 15M | 15M
post_max_size | 55M | 55M
==========================
Page generated in 1.41 seconds - 21 queries in 0.034 seconds - Album set :
Turn off the notice under config and do not post debug_info unless requested ,