Support » Fixing WordPress » Unable to create directory uploads/. Is its parent directory writable by

  • Hello everyone!
    When i try to upload a new plugin to my site i receive the following error:
    Unable to create directory uploads/2016/07. Is its parent directory writable by the server?

    I have set this site from a backup of my main site (which is working just fine). I set this site from the backup of the main site to use it for testing purposes so that i will not break anything that is working on the original site.

    How can i fix this? any help will be appreciate it.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Rep

    Unable to create directory uploads/2016/07. Is its parent directory writable by the server?

    The question contains the answer.

    What is the ownership and permissions on wp-content/uploads and wp-content/uploads/2016?

    How are you hosting this?

    I am having the same problem. My WordPress is up-to-date, did not change any permissions and suddenly I can’t upload. Network Solutions is hosting my site. Any help would be most appreciated. Thank you.

    Thread Starter alejoblue

    (@alejoblue)

    What i did is the follow: i use filezilla client server to access all the server files and searched for that folder: :wp-content/uploads”
    then i change the permissions file to 777 while i upload the plugins or the media you want. then i restore the permissions as they were to avoid files be accessed by someone else. hope this helps guys.

    Thank you. I did upload via Filezilla, changed permissions to 777 but the file is not showing up in the media library for me to use in a blog. Any thoughts?

    Thread Starter alejoblue

    (@alejoblue)

    Have you try to use the link of the file to check if it was uploaded to your server? something like this: //yourserver/wp-content/uploads/folder/your-file.png, and put it on browser to check if it being displayed. if so, use that url and paste where you need it.

    Hope it helps

    Yes, I just checked and the file does display as you directed. It must be an issue with Network Solutions server.

    Thank you for your help!!

    Thread Starter alejoblue

    (@alejoblue)

    No problem! Now i need to check still is not working for me XD

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Rep

    daileyn: In the future please create new threads for your issues rather than jumping on an existing one. tghanks.

    alejoblue:

    then i change the permissions file to 777 while i upload the plugins or the media you want. then i restore the permissions as they were to avoid files be accessed by someone else. hope this helps guys.

    That’s just wrong. Set the directories to 755 and the files to 644 and leave them alone. If you can’t upload with those settings, the ownerships on the files are wrong. You need to contact your host.

    Possible Solutions:
    1) Change File Ownership
    2) Change File Permissions
    3) WordPress table “db-prefix_options”

    Normally I check the file permissions for issues with access rights. However in this case the third option above was the correct solution when I was working on fixing this issue for someone else.

    You may need to fix the file ownership and file permissions.

    File Permissions of 777 will give full read and write access to the world. This is a security risk and should not be followed.

    Correct setting for directories is 755 and files 644. However most likely even after you make this change you will still get the error “Unable to create directory uploads. Is its parent directory writable…”

    One issue that I have found in older databases being upgraded to the latest version of WordPress may experience the error noted above.

    Part of the problem comes from “Uploads Path” specified in the SQL database that value is no longer used by WordPress and if the Uploads Path exist in your database then you will get the error as defined above.

    If you edit your database using PHPMyAdmin, select all tables, and then perform a search for “uploads path” — The string “uploads path” – Should be found in the wp_options table or “table-prefix_options” (whatever your table prefix is).

    Once you find the uploads path you may see something similar to:

    “/wp-content/uploads/”

    If you empty the table content by deleting all the text in that table and save the settings.

    uploads path should equal “”, or an empty string.

    This should fix the problem with:

    “Unable to create directory uploads/. Is its parent directory writable…”

    I have fixed this issue with a number of people experiencing this exact same issue.

    Thank you very much. After spending some time on the phone with their Tech folks, Network Solutions said it was a server side issue so I’m waiting to hear back from them. I will go into PHPMyAdmin and check it out. Appreciate your response.

    For a 1st time WP install with the uploads error, just upload an image and the uploads folder will appear.

    And don’t forget to change the file permissions to 777 from your FTP.

    That’s how it worked for me.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Rep

    777 means you are just giving up on security.

    The ownership on your directories is probably incorrect. Let Network Solutins fix that, then go back to 755/644 or 750/640

    Thank you! I am trying to get this worked out with Network Solutions. I definitely do not want to give up on security : )!

    shortdark

    (@shortdark)

    I’d just moved a WordPress blog onto a new VPS that I’d set up. Initially I thought I’d set the website up incorrectly, especially the FTP, but then I noticed that the plugins were getting added ok through the admin. To cut a long story short, the only way I was able to fix the problem was changing temporarily to 777. I changed back to 755 immediately and it continued to work.

    The post I found that helped me out when I thought I was going crazy is here.

    No idea why this would be the case. Possibly something for someone to investigate further!

    @jdbdrwho, thank you so much for your solution. I’m posting here to let people know this worked for me.

    My situation:

    I had just migrated a multisite network WordPress installation from one host to another (and feeling pretty proud of myself to be honest…) and everything had gone fine until my client discovered that she couldn’t upload images and was getting this error. I looked into the fix described by jdbdrwho above and immediately saw the problem. My upload_path in the wp_options table was set to a path that was specific to the host (GoDaddy). I cleared it out, saved it and was able to upload again.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Unable to create directory uploads/. Is its parent directory writable by’ is closed to new replies.