• the problem is when subsites in subdomains users uploads an image, the upload directory blogs.dir/blogid/files cant be created automatically. i meam the directory “files”.
    the bligs.dir is created
    blogid is created
    but files is not
    permissions are 777
    this is the error i get
    http://i53.tinypic.com/ejy0zd.png

Viewing 15 replies - 1 through 15 (of 16 total)
  • Then fix the ownership on the folders.

    basically, it’s not a WP issue – it;s a server-side one. you need to figure out the right combo of group/owner and permissions so it will happen automatically.

    Thread Starter faycomar

    (@faycomar)

    excuse me but i m wp beginner can you tell me what step to follow to fix it.

    Your next steps will depend on the access you have to your server. If you have command line access, it’ll be different from a control panel. But before that, it sounds like you may need to get your head round Linux file ownership and protection. Many Linux web sites will help you with that.

    I had this issue too some weeks ago. I changed some settings to control panel and then it was working correctly.

    Thread Starter faycomar

    (@faycomar)

    @schmuckfan please can you tell me how did you fix it because i m lost now.all my works depends on this.

    You could ask your host to help out?

    Thread Starter faycomar

    (@faycomar)

    i asked my hosting provider he told me its a SAFE_MODE issue and he deactivate the SAFE_MODE in PHP but the probleme is stil there.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    It’s not Safe Mode. I mean, in PART it’s possibly why the folders didn’t get created right, but it’s not gonna fix what’s broken πŸ˜‰

    If there’s nothing in blogs.dir/blogid for that site, I would delete the blogid folder (or rename it blogid-old) and see if it can recreate on the fly.

    Thread Starter faycomar

    (@faycomar)

    when i rename or delete the blogid folder another blogid is recreated when upload.

    the probleme is in the folder “files” located blogs.dir/blogid/files this folder is not created automatically when uploading image.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Right, the blogid/files folder SHOULD be created via the same process. That is, when you run an upload, it should make Both.

    Check the folder permissions on blogs.dir AND blogid.

    Are they the same?

    Thread Starter faycomar

    (@faycomar)

    yes they are the same on 777.
    i tried a way that makes me uploading whit no probleme but i dont know if its correct or no beceuse i edited the code in wp-includes/ms-default-constants.php in line28 i deleted {$wpdb->blogid}/files/ and it worked fine but i think this is not correct it will affect other things.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    What about the OWNERS and GROUPS of the folders?

    wp-includes/ms-default-constants.php in line28 i deleted {$wpdb->blogid}/files/ and it worked fine but i think this is not correct it will affect other things.

    Yeah, that’s a bad idea πŸ™‚

    Thread Starter faycomar

    (@faycomar)

    the OWNERS and GROUPS for :
    blogs.dir is 889 885
    blogid is 99 99 after i ask my hos provider to turn off SAFE_MODE.
    files is not created.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    I think that’s the issue right there. Owners and groups should be the same for blogs.dir as blogid.

    Thread Starter faycomar

    (@faycomar)

    should i contact the host provider to fix it or i can do it from my cpanel or ftp client????

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘subsite user cant upload image’ is closed to new replies.