• Register
0 votes
63 views

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

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

1 vote
1 answer 31 views
31 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 Martin K 6.6k points
0 votes
1 answer 8 views
8 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 prog_learner 1.5k points
1 vote
1 answer 20 views
20 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 stewart 4k points
0 votes
1 answer 15 views
15 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 azriel 590 points
0 votes
1 answer 23 views
23 views
Problem : When I try to connect to the MySQL server from PHP, I see a below error: &ldquo;Deprecated: The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /path/to/filename.php on line 123&rdquo; The code on a referenced ... that my arguments are correct, and also exact code has been working for many years without a problem. So how can I fix my code?
asked Feb 3 jwilliam 3.9k points