After the migration from the old to the new environment, it can in exceptional cases happen that you get this error message when uploading new photos and the like within WordPress: "Unable to create directory uploads/.... Is its parent directory writable by the server?"
This message occurs due to an incorrectly configured upload_path in WordPress. You can fix this in three ways:
-
In WordPress itself: go to Settings > Media. Remove the old path under 'uploading files'.
-
Via the database: search the wp_options table for the record with the option_value "upload_path" and enter the correct path here.
-
Via wp-config.php: add an extra line to the wp-config.php file (or replace the line if it already exists). That line looks like this:
define( 'UPLOADS', 'wp-content/uploads' );
Enter the path here starting from the root directory of your website.