Failed to create directory gallery/albums/userpics/10001!! Failed to create directory gallery/albums/userpics/10001!!
 

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

Failed to create directory gallery/albums/userpics/10001!!

Started by fret, November 18, 2005, 01:47:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fret

OK, firstly I've searched through the forums for this topic - found lots of people with the same problem but no obvious solution. I've also search silly_safe mode or whatever & can't see a solution there either. So, all my permissions are set to 777, I can't find any reference to silly_safe mode in my include/config.inc.php so I've no idea whether it is or should be set. In my PHP info it is set to off. I've tried uploading as Admin and user also, still the same problem.

I suspect the problem is something to do with the directory path, people in the forums have alluded to it but which file do I find it in?


TIA


fret

Well, I read that and still don't know what to to. My gallery is on my local server so I cant give you an address & account. If you want the debugging info;

Failed to create directory gallery/albums/userpics/10001
File: /Users/jason/Sites/DEVELOPMENT/Joomla/Gallery/db_input.php - Line: 300

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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => gary
    [groups] => Array
        (
           
  • => 2
            )

        [disk_max] => 1024
        [disk_min] => 1024
        [can_rate_pictures] => 1
        [can_send_ecards] => 0
        [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] => 0
        [has_admin_access] => 0
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Registered
        [upload_form_config] => 0
        [group_quota] => 1024
        [can_see_all_albums] => 0
        [group_id] => 2
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cg_filetypes; (0.002s)
        [1] => select * from cg_plugins order by priority asc; (0.001s)
        [2] => delete from `original`.cg_sessions where time<1132315690 and remember=0; (0.001s)
        [3] => delete from `original`.cg_sessions where time<1131109690; (0.001s)
        [4] => select user_id from `original`.cg_sessions where session_id=md5("dbf1bb757bd1a4bb8dc2e370fe1311070503dd98dfb8044f6fed0f7b8ef92acb"); (0.001s)
        [5] => select user_id as id, user_password as password from `original`.cg_users where user_id=2 (0.001s)
        [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 `original`.cg_users AS u INNER JOIN `original`.cg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0.001s)
        [7] => SELECT user_group_list FROM `original`.cg_users AS u WHERE user_id='2' and user_group_list <> ''; (0.001s)
        [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 cg_usergroups WHERE group_id in (2) (0.001s)
        [9] => SELECT group_name FROM  cg_usergroups WHERE group_id= 2 (0.001s)
        [10] => update `original`.cg_sessions set time='1132319290' where session_id=md5('dbf1bb757bd1a4bb8dc2e370fe1311070503dd98dfb8044f6fed0f7b8ef92acb'); (0.001s)
        [11] => SELECT user_favpics FROM cg_favpics WHERE user_id = 2 (0.001s)
        [12] => DELETE FROM cg_banned WHERE expiry < '2005-11-18 13:08:10' (0.001s)
        [13] => SELECT * FROM cg_banned WHERE (ip_addr='127.0.0.1' OR ip_addr='127.0.0.1' OR user_id=2) AND brute_force=0 (0.001s)
        [14] => SELECT aid FROM cg_albums WHERE visibility != '0' AND visibility !='10002' AND visibility NOT IN (2) (0.001s)
        [15] => SELECT category FROM cg_albums WHERE aid='1' and (uploads = 'YES' OR category = '10002') (0.001s)
        [16] => SELECT COUNT(*) FROM cg_pictures WHERE approved = 'NO' (0.001s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 1
        [MAX_FILE_SIZE] => 1048576
        [title] =>
        [caption] =>
        [keywords] =>
        [event] => picture
    )

    ==========================

    Is this what you want?

Nibbler

Please note that there is no support for 1.4. All I can advise is that you check perms on the userpics folder, and that gallery/albums/userpics/10001 is the correct place (ie. the directory structure already exists up to 10001).

fret

Quote from: Nibbler on November 18, 2005, 02:48:10 PM
Please note that there is no support for 1.4. All I can advise is that you check perms on the userpics folder, and that gallery/albums/userpics/10001 is the correct place (ie. the directory structure already exists up to 10001).

Permissions are definately set correctly & I don't know how I'd check that the path is the correct place - that's what I asked to be explained in my original post. I'm using version 1.4 because I am integrating into Joomla using the Joombla integration script (which only works with that version). Integration has worked fine, but the program doesn't.

This is really frustrating because I can see that lots of users have had/are having the same problem & I can't see a post explaining a solution!

Nibbler

Well is the path sensible?
If you go to your coppermine directory and do an mkdir gallery/albums/userpics/10001 what happens ?
What are your settings in config for albums directory and userpics directory ?
Have you changed them from the defaults ?

fret

OK, I see we're not really talking the same kind of language here.

I don't understand the phrase 'do an mkdir gallery/albums/userpics/10001' because I am not a programmer. I

Again I can't tell you what my config settings are because I don't know where I'd find them. That is what I asked in my original post.

Please could you tell me where my settings in config are? All I know is I have changed anything from default values. When create a new album, it shows up in the admin but I have no idea where it resides in the directory.

Sorry to be a pain in the arse ...

Nibbler

There is a link when you are logged in as admin called 'Config'. Clicking on it will take you to the config screen. From there you can see all your settings.

http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#config

"All I know is I have changed anything from default values" - I'm not sure what that sentence means, have you changed things or not ? Having 'gallery' in that path is not default, so unless you actually made a new directory called gallery then its not going to work set like that.