coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Symphony on August 08, 2004, 11:02:39 AM

Title: Cannot Upload - Fails to create Directory
Post by: Symphony on August 08, 2004, 11:02:39 AM
Whenever I try to upload, I get this error. It uploads the pic successfully, but when I try to place it in an album, this happens every time.
All my CMODs are set to 777. Help?

-------
Failed to create directory Gallery/albums/userpics/ 10001 !

File: /Gallery/upload.php - Line: 2193

---------



USER:
------------------
Array
(
   [ID] => 77d3196fb3ebc171bc38464e6bbb8008
   [am] => 1
)

==========================
USER DATA:
------------------
Array
(
   [user_id] => 1
   [user_group] => 1
   [user_active] => YES
   [user_name] => Symphony
   [user_password] => ********
   [user_lastvisit] => 2004-08-02 23:38:27
   [user_regdate] => 2004-08-02 11:54:23
   [user_group_list] =>
   [user_email] =>
   [user_website] =>
   [user_location] =>
   [user_interests] =>
   [user_occupation] =>
   [user_actkey] =>
   [disk_max] => 10000
   [disk_min] => 10000
   [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] => 10000
   [can_see_all_albums] => 1
   [group_id] => 1
   [groups] => Array
       (
           [1] => 1
       )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: Cannot Upload - Fails to create Directory
Post by: Joachim Müller on August 08, 2004, 11:14:28 AM
sounds like you didn't CHMOD the albums directory and everything within it, so the user the webserver runs under hasn't got write access to it and can not create the needed dirs and files. CHMOD to 755 or 777 (depending on your server config) as suggested in the documentation that comes with coppermine.

GauGau
Title: Re: Cannot Upload - Fails to create Directory
Post by: Symphony on August 08, 2004, 11:35:56 AM
The CHMOD is set to 777. I tried 755 too, and neither works.
Title: Re: Cannot Upload - Fails to create Directory
Post by: Joachim Müller on August 08, 2004, 12:26:08 PM
how did you find out how the CHMOD "is set"? Don't trust the CHMOD status your ftp software shows you! Re-CHMOD instead.

GauGau
Title: Re: Cannot Upload - Fails to create Directory
Post by: Casper on August 08, 2004, 12:32:48 PM
Have you tried 'SILLY_SAFE_MODE'.  see the docs for 'safe mode issues'.