Wordpress

Is its parent directory writable by the server? – How to fix this error

Unable to create directory uploads/2021/01. Is its parent directory writable by the server?

This is the message i get when i try to upload images.
i have recently changed my domain to https from http . This meant that my host had to put my site onto a new server.

Is its parent directory writable by the server

Unable to create directory uploads

The error can happen due to incorrect permissions, ownerships, or location of the uploads folder. Regardless of the cause, we’re here to show you how to fix this error quickly.

There are two methods of resolving the issue on shared hosting — by changing the directory path and permissions of the uploads folder.

Try fixing it by changing the Uploads Folder Directory

Sometimes, the “Is its parent directory writable by the server?” issue occurs because WordPress can’t recognize the location of the uploads folder.

You might face the problem after you have just moved your site to another hosting provider. To fix it, you need to modify your WordPress config file:

  1. Access your hosting file manager or FTP, and search for the wp-config.php file. It is commonly located in the root folder of your website (/public_html).
  2. Open the file and add the following code:

define( ‘UPLOADS’, ‘wp-content/uploads’ );

before this line:

require_once(ABSPATH . ‘wp-settings.php’);

Save the file. Now, try to upload your media files again.

What else

As a second option you could try change permalink structure.

Back to top button
Close