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.
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.
@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?
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.
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.
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.
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?
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.
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 π
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.
I think that’s the issue right there. Owners and groups should be the same for blogs.dir as blogid.
should i contact the host provider to fix it or i can do it from my cpanel or ftp client????