So my hosting is also with SiteGround. I had the same error as well as unable to create directory uploads/2021/03. is its parent directory writable by the server?
I thought I would try and solve the easier of the two problems first. Did this:
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).
The location of wp-config.php file
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.
And voila, it fixed both problems at the same time. Hope this helps someone.
-
This reply was modified 3 years, 11 months ago by Mocsi.