coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Bullmax on February 22, 2006, 11:57:23 PM

Title: Upgraded my webhost package, now can't upload
Post by: Bullmax on February 22, 2006, 11:57:23 PM
I upgraded my webhost package with my server and cannot upload any pictures.

Here is the error:
0 uploads were successful.
CONTINUE

Error Report
The following uploads encountered errors:
File Uploads:
File Name/URL Error Message
1. logo_bg.gif Impossible to move.


Here is the debug:
USER:
------------------
Array
(
    [ID] => fecbcc0ef4286e8f38822348a465a6af
    [am] => 1
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => Bullmax
    [groups] => Array
        (
            [0] => 102
            [1] => 102
            [2] => 111
            [3] => 1275
            [4] => 826
            [5] => 102
            [6] => 111
            [7] => 1275
            [8] => 826
        )

    [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] => 2
    [num_URI_upload] => 1
    [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] => 102
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg133_filetypes; (0s)
    [1] => select * from cpg133_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg133_bridge (0s)
    [3] => SELECT u.user_id AS user_id, u.user_password AS password, u.user_level FROM `zeppie_nuke1`.phpbb_users AS u, `zeppie_nuke1`.phpbb_sessions AS s WHERE u.user_id=s.session_user_id AND s.session_id = '352c50d05b8b4dc052cbe27e0f805786' AND u.user_id > 0 (0s)
    [4] => SELECT u.user_id AS id, u.username AS username, u.user_password AS password, ug.group_id AS group_id FROM `zeppie_nuke1`.phpbb_users AS u, `zeppie_nuke1`.phpbb_user_group AS ug WHERE u.user_id=ug.user_id AND u.user_id='2' (0s)
    [5] => SELECT ug.group_id+100 AS group_id FROM `zeppie_nuke1`.phpbb_users AS u, `zeppie_nuke1`.phpbb_user_group AS ug, `zeppie_nuke1`.phpbb_groups as g WHERE u.user_id=ug.user_id AND u.user_id='2' AND g.group_id = ug.group_id (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 cpg133_usergroups WHERE group_id in (102,102,111,1275,826,102,111,1275,826) (0s)
    [7] => SELECT group_name FROM  cpg133_usergroups WHERE group_id= 102 (0s)
    [8] => SELECT user_favpics FROM cpg133_favpics WHERE user_id = 2 (0s)
    [9] => DELETE FROM cpg133_banned WHERE expiry < '2006-02-22 22:28:31' (0s)
    [10] => SELECT * FROM cpg133_banned WHERE (ip_addr='65.95.171.54' OR ip_addr='65.95.171.54' OR user_id=2) AND brute_force=0 (0s)
    [11] => SELECT aid, title FROM cpg133_albums WHERE category < 10000 ORDER BY title (0s)
    [12] => SELECT aid, title FROM cpg133_albums WHERE category='10002' ORDER BY title (0s)
    [13] => SELECT COUNT(*) FROM cpg133_pictures WHERE approved = 'NO' (0s)
)

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

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

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.5 - OK
------------------
mySQL version: 4.1.14-standard
------------------
Coppermine version: 1.4.3(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support:
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM 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.13
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 | 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 | passthru,proc_open,proc_close,shell_exec | passthru,proc_open,proc_close,shell_exec
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 | 20 | 20
max_input_time | 30 | 30
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.119 seconds - 14 queries in 0 seconds - Album set : ; Meta set: ;


Thanks to anyone that can help.
Title: Re: Upgraded my webhost package, now can't upload
Post by: Nibbler on February 23, 2006, 12:00:57 AM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: Upgraded my webhost package, now can't upload
Post by: Bullmax on February 23, 2006, 12:10:16 AM
Ok I made the changes and get this error and debug:

error:
Critical error
Destination directory albums/userpics/10002/ is not writable by the script !

File: /home/zeppie/public_html/photoalbum/db_input.php - Line: 320


debug:
USER:
------------------
Array
(
    [ID] => fecbcc0ef4286e8f38822348a465a6af
    [am] => 1
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => Bullmax
    [groups] => Array
        (
            [0] => 102
            [1] => 102
            [2] => 111
            [3] => 1275
            [4] => 826
            [5] => 102
            [6] => 111
            [7] => 1275
            [8] => 826
        )

    [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] => 1
    [num_URI_upload] => 0
    [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] => 102
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg133_filetypes; (0.01s)
    [1] => select * from cpg133_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg133_bridge (0s)
    [3] => SELECT u.user_id AS user_id, u.user_password AS password, u.user_level FROM `zeppie_nuke1`.phpbb_users AS u, `zeppie_nuke1`.phpbb_sessions AS s WHERE u.user_id=s.session_user_id AND s.session_id = '352c50d05b8b4dc052cbe27e0f805786' AND u.user_id > 0 (0.018s)
    [4] => SELECT u.user_id AS id, u.username AS username, u.user_password AS password, ug.group_id AS group_id FROM `zeppie_nuke1`.phpbb_users AS u, `zeppie_nuke1`.phpbb_user_group AS ug WHERE u.user_id=ug.user_id AND u.user_id='2' (0.008s)
    [5] => SELECT ug.group_id+100 AS group_id FROM `zeppie_nuke1`.phpbb_users AS u, `zeppie_nuke1`.phpbb_user_group AS ug, `zeppie_nuke1`.phpbb_groups as g WHERE u.user_id=ug.user_id AND u.user_id='2' AND g.group_id = ug.group_id (0.001s)
    [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 cpg133_usergroups WHERE group_id in (102,102,111,1275,826,102,111,1275,826) (0s)
    [7] => SELECT group_name FROM  cpg133_usergroups WHERE group_id= 102 (0s)
    [8] => SELECT user_favpics FROM cpg133_favpics WHERE user_id = 2 (0s)
    [9] => DELETE FROM cpg133_banned WHERE expiry < '2006-02-22 23:07:42' (0.005s)
    [10] => SELECT * FROM cpg133_banned WHERE (ip_addr='65.95.171.54' OR ip_addr='65.95.171.54' OR user_id=2) AND brute_force=0 (0s)
    [11] => SELECT category FROM cpg133_albums WHERE aid='5' (0s)
    [12] => SELECT COUNT(*) FROM cpg133_pictures WHERE approved = 'NO' (0s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 5
    [MAX_FILE_SIZE] => 10240000
    [title] => test
    [caption] => test
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.5 - OK
------------------
mySQL version: 4.1.14-standard
------------------
Coppermine version: 1.4.3(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support:
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM 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.13
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 | 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 | passthru,proc_open,proc_close,shell_exec | passthru,proc_open,proc_close,shell_exec
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 | 20 | 20
max_input_time | 30 | 30
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.358 seconds - 13 queries in 0.042 seconds - Album set : ; Meta set: ;
Title: Re: Upgraded my webhost package, now can't upload
Post by: Nibbler on February 23, 2006, 12:12:15 AM
Destination directory albums/userpics/10002/ is not writable by the script !

Make it and all other subfolders of userpics writable by setting CHMOD 777/755 with your FTP client. See the permissions section in the manual (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#permissions).
Title: Re: Upgraded my webhost package, now can't upload
Post by: Bullmax on February 23, 2006, 12:24:47 AM
Thanks for the help so far.  I changed permissions for the albums to 777 and each userpics folder to 777 as well and I can now upload.

I have a question with this now.  If a new user creates an album this will create a userpics folder right?  Will the permissions automatically chmod to 777 for this new userpics folder?
My userpics folders are just numbers named like 10001 being the first userpic folder.
Title: Re: Upgraded my webhost package, now can't upload
Post by: Nibbler on February 23, 2006, 12:30:17 AM
They will be set to whatever mode you have set in config for new directories.
Title: Re: Upgraded my webhost package, now can't upload
Post by: Bullmax on February 23, 2006, 12:33:57 AM
Thanks for all your help.  You can mark it solved!