Upload File Upload File
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Upload File

Started by maester, December 15, 2006, 10:44:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maester

I try uploading a file via HTTP and get this error

Failed to create directory albums/userpics/10081 !

File: /home/xeonw/public_html/gallery/upload.php - Line: 2228

albums,edit and userpics all chmodded to 777

Was working fine until server was upgraded to Apache 5.2 with PHP 5 however this should not be an issue but not leaving anything out of the open

Sami

‍I don't answer to PM with support question
Please post your issue to related board

maester

#2
After chmodding to 755 still receiving this error

Failed to create directory albums/userpics/10081 !

File: /home/xeonw/public_html/gallery/upload.php - Line: 2228

so I have turned debug mode on and get this


USER:
------------------
Array
(
    [ID] => f501a6bdaf61495a869607de96d65025
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 81
    [user_name] => maester
    [groups] => Array
        (
            [0] => 106
        )

    [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] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 106
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0.001s)
    [1] => select * from cpg1410_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg1410_bridge (0.001s)
    [3] => SELECT u.userid, u.password, u.usergroupid+100 AS usergroupid FROM `xeonw_Xeonws`.user AS u, `xeonw_Xeonws`.session AS s WHERE s.userid=u.userid AND s.sessionhash='1305651f1db6281e01029bbe4a3a9e16' (0.001s)
    [4] => SELECT u.userid AS id, u.username AS username, u.password AS password, u.usergroupid+100 AS group_id FROM `xeonw_Xeonws`.user AS u INNER JOIN `xeonw_Xeonws`.usergroup AS g ON u.usergroupid=g.usergroupid WHERE u.userid='81' (0.001s)
    [5] => SELECT g.usergroupid+100 AS group_id, u.* FROM `xeonw_Xeonws`.user AS u, `xeonw_Xeonws`.usergroup as g WHERE g.usergroupid = u.usergroupid AND u.userid = '81' (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 cpg1410_usergroups WHERE group_id in (106) (0.001s)
    [7] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 106 (0s)
    [8] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 81 (0s)
    [9] => DELETE FROM cpg1410_banned WHERE expiry < '2006-12-16 19:59:33' (0s)
    [10] => SELECT * FROM cpg1410_banned WHERE (ip_addr='69.254.102.143' OR ip_addr='69.254.102.143' OR user_id=81) AND brute_force=0 (0s)
    [11] => SELECT aid, title FROM cpg1410_albums WHERE category < 10000 ORDER BY title (0.001s)
    [12] => SELECT aid, title FROM cpg1410_albums WHERE category='10081' ORDER BY title (0.001s)
    [13] => SELECT encoded_string FROM cpg1410_temp_data WHERE unique_ID = '06388326' (0.001s)
    [14] => UPDATE cpg1410_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = '06388326' (0.001s)
    [15] => SELECT category FROM cpg1410_albums WHERE aid='2' (0.001s)
    [16] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0.019s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 2
    [title] =>
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => 06388326
    [debugtext] => USER:
------------------
Array
(
    [ID] => f501a6bdaf61495a869607de96d65025
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 81
    [user_name] => maester
    [groups] => Array
        (
            [0] => 106
        )

    [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] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 106
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0.001s)
    [1] => select * from cpg1410_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg1410_bridge (0.001s)
    [3] => SELECT u.userid, u.password, u.usergroupid+100 AS usergroupid FROM `xeonw_Xeonws`.user AS u, `xeonw_Xeonws`.session AS s WHERE s.userid=u.userid AND s.sessionhash='1305651f1db6281e01029bbe4a3a9e16' (0.001s)
    [4] => SELECT u.userid AS id, u.username AS username, u.password AS password, u.usergroupid+100 AS group_id FROM `xeonw_Xeonws`.user AS u INNER JOIN `xeonw_Xeonws`.usergroup AS g ON u.usergroupid=g.usergroupid WHERE u.userid='81' (0.001s)
    [5] => SELECT g.usergroupid+100 AS group_id, u.* FROM `xeonw_Xeonws`.user AS u, `xeonw_Xeonws`.usergroup as g WHERE g.usergroupid = u.usergroupid AND u.userid = '81' (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 cpg1410_usergroups WHERE group_id in (106) (0.001s)
    [7] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 106 (0s)
    [8] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 81 (0s)
    [9] => DELETE FROM cpg1410_banned WHERE expiry < '2006-12-16 19:59:28' (0s)
    [10] => SELECT * FROM cpg1410_banned WHERE (ip_addr='69.254.102.143' OR ip_addr='69.254.102.143' OR user_id=81) AND brute_force=0 (0s)
    [11] => SELECT aid, title FROM cpg1410_albums WHERE category < 10000 ORDER BY title (0.001s)
    [12] => SELECT aid, title FROM cpg1410_albums WHERE category='10081' ORDER BY title (0.001s)
    [13] => SELECT encoded_string FROM cpg1410_temp_data WHERE unique_ID = '06388326' (0.001s)
    [14] => UPDATE cpg1410_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czoxNToiOTk3MDY3NTA2X2wuanBnIjtzOjE0OiJ0ZW1wb3JhcnlfbmFtZSI7czoyMzoibUhUVFBfdGVtcF8xMDAzN2ZiNy5qcGciO3M6MTI6InByZXZpZXdfcGF0aCI7czozNDoiLi9hbGJ1bXMvZWRpdC9wcmV2aWV3XzM5ZDU4ZjM2LmpwZyI7fX0=' WHERE unique_ID = '06388326' (0.001s)
    [15] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0.019s)
    [16] => SELECT cat.name FROM cpg1410_categories cat, cpg1410_albums alb WHERE alb.aid='1' AND cat.cid=alb.category (0.001s)
    [17] => SELECT cat.name FROM cpg1410_categories cat, cpg1410_albums alb WHERE alb.aid='2' AND cat.cid=alb.category (0.001s)
    [18] => SELECT cat.name FROM cpg1410_categories cat, cpg1410_albums alb WHERE alb.aid='4' AND cat.cid=alb.category (0.001s)
    [19] => SELECT cat.name FROM cpg1410_categories cat, cpg1410_albums alb WHERE alb.aid='5' AND cat.cid=alb.category (0.001s)
    [20] => SELECT cat.name FROM cpg1410_categories cat, cpg1410_albums alb WHERE alb.aid='6' AND cat.cid=alb.category (0.001s)
    [21] => SELECT cat.name FROM cpg1410_categories cat, cpg1410_albums alb WHERE alb.aid='3' AND cat.cid=alb.category (0.001s)
    [22] => SELECT cat.name FROM cpg1410_categories cat, cpg1410_albums alb WHERE alb.aid='7' AND cat.cid=alb.category (0.001s)
)

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

==========================
POST :
------------------
Array
(
    [unique_ID] => 06388326
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => f501a6bdaf61495a869607de96d65025
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 81
    [user_name] => maester
    [groups] => Array
        (
            [0] => 106
        )

    [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] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 106
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0.001s)
    [1] => select * from cpg1410_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg1410_bridge (0.001s)
    [3] => SELECT u.userid, u.password, u.usergroupid+100 AS usergroupid FROM `xeonw_Xeonws`.user AS u, `xeonw_Xeonws`.session AS s WHERE s.userid=u.userid AND s.sessionhash='1305651f1db6281e01029bbe4a3a9e16' (0.001s)
    [4] => SELECT u.userid AS id, u.username AS username, u.password AS password, u.usergroupid+100 AS group_id FROM `xeonw_Xeonws`.user AS u INNER JOIN `xeonw_Xeonws`.usergroup AS g ON u.usergroupid=g.usergroupid WHERE u.userid='81' (0.001s)
    [5] => SELECT g.usergroupid+100 AS group_id, u.* FROM `xeonw_Xeonws`.user AS u, `xeonw_Xeonws`.usergroup as g WHERE g.usergroupid = u.usergroupid AND u.userid = '81' (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 cpg1410_usergroups WHERE group_id in (106) (0.001s)
    [7] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 106 (0s)
    [8] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 81 (0s)
    [9] => DELETE FROM cpg1410_banned WHERE expiry < '2006-12-16 19:59:24' (0s)
    [10] => SELECT * FROM cpg1410_banned WHERE (ip_addr='69.254.102.143' OR ip_addr='69.254.102.143' OR user_id=81) AND brute_force=0 (0s)
    [11] => SELECT aid, title FROM cpg1410_albums WHERE category < 10000 ORDER BY title (0.001s)
    [12] => SELECT aid, title FROM cpg1410_albums WHERE category='10081' ORDER BY title (0.001s)
    [13] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0.019s)
    [14] => SELECT unique_ID FROM cpg1410_temp_data (0s)
    [15] => INSERT INTO cpg1410_temp_data VALUES ('06388326', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoxNToiOTk3MDY3NTA2X2wuanBnIjtzOjE0OiJ0ZW1wb3JhcnlfbmFtZSI7czoyMzoibUhUVFBfdGVtcF8xMDAzN2ZiNy5qcGciO319', '1166299164') (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.1.21-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: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 2
Client API version 4.1.21
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
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.2
Linked Version 1.2.3
==========================
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 | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.154 seconds - 16 queries in 0.027 seconds - Album set : ; Meta set: ;
)

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

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 2
Client API version 4.1.21
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
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.2
Linked Version 1.2.3
==========================
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 | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.249 seconds - 23 queries in 0.036 seconds - Album set : ; Meta set: ;
)

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

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 2
Client API version 4.1.21
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
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.2
Linked Version 1.2.3
==========================
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 | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.189 seconds - 17 queries in 0.03 seconds - Album set : ; Meta set: ;


[edited]
By Sami
Please use code block (# button) or Quote block when posting debug info
[/edited]

Sami

Everything seems normal , you need to chmod all folders (album, userpics) again ,with different ftp client
‍I don't answer to PM with support question
Please post your issue to related board