can't upload photos can't upload photos
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

can't upload photos

Started by swankyfunk, February 18, 2007, 07:55:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

swankyfunk

I'm having trouble uploading photos into my albums, both by batch add and single file.

When trying to batch add, I kept getting the Warning message that I needed to set my directory to 777 or 755. I went into Config and found that the directories were already set to 0777. I tried 777, 0755, and 755 to no avail. (It is currently set to 0777.)

I read the troubleshooting manual and enabled debug mode, and tried the single file upload method. This is the error I got:

Destination directory albums/userpics/ is not writable by the script !


I have also checked the permissions on the /ALBUMS, /ALBUMS/USERPICS, and /ALBUMS/EDIT directories in my file manager. All are set to 777.

I have set up a test user account.
User: test
Pass: testing

Please let me know what else I should do. Thanks in advance.

swankyfunk

My apologies, I forgot to include the url to my gallery: http://www.swankyfunk.com/gallery

biruk1977

#2
The previous file could not be placed.

You have successfully placed all the files.

is the message i keep recieving.  the files are successfully uploaded but when i try to assign them to a album i keep coming upon this error.  i do not think the chmod is the issue.  anyhow here is what the source looks like:
USER:
------------------
Array
(
    [ID] => 667858599d46cc6eb8815a294309786f
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0s)
    [1] => select * from cpg1410_plugins order by priority asc; (0s)
    [2] => delete from `U6145071`.cpg1410_sessions where time<1171780454 and remember=0; (0.001s)
    [3] => delete from `U6145071`.cpg1410_sessions where time<1170574454; (0s)
    [4] => select user_id from `U6145071`.cpg1410_sessions where session_id=md5("b01b3a30efdcb5423b3daf08b1f04d16645919bc608327c8d5c79e860a2be906"); (0s)
    [5] => select user_id as id, user_password as password from `U6145071`.cpg1410_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `U6145071`.cpg1410_users AS u INNER JOIN `U6145071`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `U6145071`.cpg1410_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => 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)
    [9] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 1 (0s)
    [10] => update `U6145071`.cpg1410_sessions set time='1171784054' where session_id=md5('b01b3a30efdcb5423b3daf08b1f04d16645919bc608327c8d5c79e860a2be906'); (0s)
    [11] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0.004s)
    [12] => DELETE FROM cpg1410_banned WHERE expiry < '2007-02-18 07:34:14' (0s)
    [13] => SELECT * FROM cpg1410_banned WHERE (ip_addr='72.81.134.106' OR ip_addr='72.81.134.106' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg1410_albums WHERE category < 10000 ORDER BY title (0s)
    [15] => SELECT aid, title FROM cpg1410_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT encoded_string FROM cpg1410_temp_data WHERE unique_ID = '82c55b94' (0s)
    [17] => UPDATE cpg1410_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = '82c55b94' (0.001s)
    [18] => SELECT category FROM cpg1410_albums WHERE aid='2' (0.001s)
    [19] => DELETE FROM cpg1410_temp_data WHERE unique_ID = '82c55b94' (0.001s)
    [20] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0.001s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [album] => 2
    [title] => Men In Pain Video
    [caption] => Men In Pain Video
    [keywords] => Men In Pain Video
    [control] => phase_2
    [unique_ID] => 82c55b94
    [debugtext] => USER:
------------------
Array
(
    [ID] => 667858599d46cc6eb8815a294309786f
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0s)
    [1] => select * from cpg1410_plugins order by priority asc; (0s)
    [2] => delete from `U6145071`.cpg1410_sessions where time<1171780438 and remember=0; (0s)
    [3] => delete from `U6145071`.cpg1410_sessions where time<1170574438; (0s)
    [4] => select user_id from `U6145071`.cpg1410_sessions where session_id=md5("b01b3a30efdcb5423b3daf08b1f04d16645919bc608327c8d5c79e860a2be906"); (0s)
    [5] => select user_id as id, user_password as password from `U6145071`.cpg1410_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `U6145071`.cpg1410_users AS u INNER JOIN `U6145071`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `U6145071`.cpg1410_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => 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)
    [9] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 1 (0s)
    [10] => update `U6145071`.cpg1410_sessions set time='1171784038' where session_id=md5('b01b3a30efdcb5423b3daf08b1f04d16645919bc608327c8d5c79e860a2be906'); (0s)
    [11] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg1410_banned WHERE expiry < '2007-02-18 07:33:58' (0s)
    [13] => SELECT * FROM cpg1410_banned WHERE (ip_addr='72.81.134.106' OR ip_addr='72.81.134.106' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg1410_albums WHERE category < 10000 ORDER BY title (0s)
    [15] => SELECT aid, title FROM cpg1410_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT encoded_string FROM cpg1410_temp_data WHERE unique_ID = '82c55b94' (0s)
    [17] => UPDATE cpg1410_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMDoiMzUyMl8xLmpwZyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfZDk5ZDdjMGQuanBnIjtzOjEyOiJwcmV2aWV3X3BhdGgiO3M6MzQ6Ii4vYWxidW1zL2VkaXQvcHJldmlld18zZTM1NTg2My5qcGciO319' WHERE unique_ID = '82c55b94' (0s)
    [18] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0s)
    [19] => SELECT cat.name FROM cpg1410_categories cat, cpg1410_albums alb WHERE alb.aid='1' AND cat.cid=alb.category (0s)
    [20] => SELECT cat.name FROM cpg1410_categories cat, cpg1410_albums alb WHERE alb.aid='2' AND cat.cid=alb.category (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [unique_ID] => 82c55b94
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => 667858599d46cc6eb8815a294309786f
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0s)
    [1] => select * from cpg1410_plugins order by priority asc; (0s)
    [2] => delete from `U6145071`.cpg1410_sessions where time<1171780435 and remember=0; (0s)
    [3] => delete from `U6145071`.cpg1410_sessions where time<1170574435; (0s)
    [4] => select user_id from `U6145071`.cpg1410_sessions where session_id=md5("b01b3a30efdcb5423b3daf08b1f04d16645919bc608327c8d5c79e860a2be906"); (0s)
    [5] => select user_id as id, user_password as password from `U6145071`.cpg1410_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `U6145071`.cpg1410_users AS u INNER JOIN `U6145071`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `U6145071`.cpg1410_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => 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)
    [9] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 1 (0s)
    [10] => update `U6145071`.cpg1410_sessions set time='1171784035' where session_id=md5('b01b3a30efdcb5423b3daf08b1f04d16645919bc608327c8d5c79e860a2be906'); (0s)
    [11] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg1410_banned WHERE expiry < '2007-02-18 07:33:55' (0s)
    [13] => SELECT * FROM cpg1410_banned WHERE (ip_addr='72.81.134.106' OR ip_addr='72.81.134.106' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg1410_albums WHERE category < 10000 ORDER BY title (0s)
    [15] => SELECT aid, title FROM cpg1410_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0.001s)
    [17] => SELECT unique_ID FROM cpg1410_temp_data (0s)
    [18] => INSERT INTO cpg1410_temp_data VALUES ('82c55b94', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMDoiMzUyMl8xLmpwZyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfZDk5ZDdjMGQuanBnIjt9fQ==', '1171784035') (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [URI_array] => Array
        (
            [0] =>
            [1] =>
            [2] =>
        )

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.0 - OK
------------------
mySQL version: 4.0.26-standard
------------------
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
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.15
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.2.2
Linked Version 1.2.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /usr/local/bin/ | /usr/local/bin/
safe_mode_gid | On | On
safe_mode_include_dir | /usr/local/lib/php/ | /usr/local/lib/php/
safe_mode_exec_dir | /usr/local/bin/ | /usr/local/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 | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i -f customerbounce@servage.net | /usr/sbin/sendmail -t -i -f customerbounce@servage.net
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 | 10M | 10M
post_max_size | 8M | 8M
==========================
Page generated in 0.086 seconds - 19 queries in 0.001 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.0 - OK
------------------
mySQL version: 4.0.26-standard
------------------
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
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.15
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.2.2
Linked Version 1.2.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /usr/local/bin/ | /usr/local/bin/
safe_mode_gid | On | On
safe_mode_include_dir | /usr/local/lib/php/ | /usr/local/lib/php/
safe_mode_exec_dir | /usr/local/bin/ | /usr/local/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 | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i -f customerbounce@servage.net | /usr/sbin/sendmail -t -i -f customerbounce@servage.net
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 | 10M | 10M
post_max_size | 8M | 8M
==========================
Page generated in 0.246 seconds - 21 queries in 0 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.0 - OK
------------------
mySQL version: 4.0.26-standard
------------------
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
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.15
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.2.2
Linked Version 1.2.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /usr/local/bin/ | /usr/local/bin/
safe_mode_gid | On | On
safe_mode_include_dir | /usr/local/lib/php/ | /usr/local/lib/php/
safe_mode_exec_dir | /usr/local/bin/ | /usr/local/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 | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i -f customerbounce@servage.net | /usr/sbin/sendmail -t -i -f customerbounce@servage.net
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 | 10M | 10M
post_max_size | 8M | 8M
==========================
Page generated in 0.103 seconds - 21 queries in 0.009 seconds - Album set : ; Meta set: ;


swankyfunk

Quote from: Nibbler on February 18, 2007, 12:23:19 PM
Enable 'silly safe mode'

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#safe


I checked the include/config.inc.php file, and it already has the define('SILLY_SAFE_MODE', 1); line. What else should I do?

swankyfunk

Well, nothing's worked so far. I think I'll just delete the gallery and try reinstalling.

Joachim Müller

Do exactly as suggested in the upload troubleshooting section of the docs.