• Register
0 votes

Problem :

I have recently migrated my Wordpress data to the new server. After the migration I am unable to upload any media file.

On the dashboard the error is shown as follows :

 "Upload folder is not writable. Export and file upload features will not be functional."

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had recently faced this problem after moving my site to the new server.

Your filesystem paths on the new server are different from the old server and as a result your upload paths are appearing to be un-writable as it doesn't exists on the new server.

Your problem is that sometimes the WordPress will populate an option called upload_path in your wp_options table.

So the fix for this issue is quite simple, you just need to delete either the key from your wp_options table, or the value of that key.

There is a neat way inside WordPress itself to do this as follows:

1.      Log into your WordPress Admin account

2.      Go to following URL on your site: /wp-admin/options.php. This will show you the full list of WordPress Options in your wp_options database table.

3.      Now search  the following option name: upload_path

4.      If it has got the value, just delete the value in that field.

5.      Please don't change anything else and proceed to click Save Changes at the bottom.

Now WordPress will then start using the default path (/wp-content/uploads/) for your uploads folder.

9 7 4
38,600 points

Related questions

0 votes
1 answer 2 views
Problem: wordpress the uploaded file could not be moved to
asked 1 day ago Dan phillip 2.4k points
0 votes
1 answer 6 views
the upload destination folder does not appear to be writable.
asked Feb 16 ArifulIslam 7.5k points
1 vote
1 answer 38 views
Problem: I have gained fundamental knowledge on PHP programming after going through online tutorials. Now I am trying to debug the issue related with WP_cron() so I have tried to write the very short app to list the cron() tasks which are pending as shown below. <? php ... -wp-cron-test.php on line 12 Is there anything basic which I am missing about the building of a very simple plugin in PHP?
asked May 30, 2020 Martin K 6.6k points
0 votes
1 answer 53 views
Problem: Hi, kodlog i need assistance regarding this popup error message.&rdquo; Your php installation appears to be missing the mysql extension which is required by wordpress.&rdquo;
asked Nov 9, 2020 prog_learner 2.5k points
1 vote
1 answer 33 views
Problem : Currently I am facing the below issue with one of my website where I am displaying the products randomly. Woocommerce this product is currently out of stock and unavailable. If I go to my WordPress admin and then click on update button for my product and without ... my problem. So I need to find some way to fix my above listed problem permanently so that it will not come back itself.
asked Apr 27, 2020 stewart 4k points
0 votes
1 answer 31 views
I need to upload several images to a folder and then save the details of the file like &ldquo;title&rdquo;, &ldquo;description&rdquo;, and the &ldquo;link&rdquo; of the image to the folder of my site. My problem is that it only saves 1 file at time even though I managed ... ' . $_SERVER['HTTP_REFERER']); exit; ?> My other issue is that I need to make sure that the uploaded files are only images.
asked Oct 24, 2020 azriel 590 points
0 votes
1 answer 28 views
Problem: What to do if WordPress does not allow file import and displays the error: the size of the uploaded file exceeds the upload_max_filesize directive in php.ini. Thanks in advance
asked Dec 5, 2020 sasha 13.2k points
0 votes
1 answer 6 views
Problem: I am trying to set up .NET 4.6 and also take advantage of the latest C # by changing the C # language version to 6. However, during compilation, I got this error: Error Invalid option "6" for / langversion; should be ISO-1, ISO-2, 3, ... manually if it was not installed by default by Visual Studio 2015. The project is a standard ASP.NET MVC template project created by Visual Studio 2015.
asked Jan 24 sasha 13.2k points
0 votes
0 answers 2 views
Problem: wp-admin not working blank page
asked 1 day ago Dan phillip 2.4k points
0 votes
1 answer 2 views
Problem: wordpress redirect if not logged in
asked 1 day ago Ethan ross 1.9k points