How to Fix “Missing a Temporary Folder” Error in WordPress

How to Fix “Missing a Temporary Folder” Error in WordPress
April 22 17:33 2017 Print This Article

Are you seeing ‘Missing a temporary folder’ error on your WordPress site? This error makes it impossible to upload images, update themes and plugins, or update WordPress core. In this article, we will show you how to easily fix “Missing a temporary folder” error in WordPress.

What Causes The ‘Missing a Temporary Folder’ Error in WordPress?

This error is caused by incorrect PHP settings on your WordPress hosting environment. There is a specific PHP setting that defines a temporary folder to be used by apps like WordPress to temporarily store data before saving it to the desired location.

WordPress needs access to this temporary folder when you upload an image, install or update a theme or plugin, or update WordPress core.

If the location of this folder is not defined in your server’s PHP configuration, then WordPress will be unable to do any of these things and will show you ‘Missing a temporary folder’ error.

Having said that, let’s see how to easily fix the ‘Missing a temporary folder’ error in WordPress.

Fix Missing Temporary Folder Error in WordPress

For this tutorial, you will need to edit wp-config.php file in WordPress. If you haven’t done this before, then please see our guide on how to edit wp-config.php file in WordPress.

First, you will need to connect to your website using an FTP client or File Manager in cPanel dashboard of your hosting account.

Next, you will need to locate the wp-config.php file and edit it.

You need to paste this code to the file just before the line that says ‘That’s all, stop editing! Happy blogging’.

define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');

Save your changes and upload the wp-config.php file back to your website.

Next, you need to go to /wp-content/ folder and create a new folder inside it. You need to name this new folder temp.

That’s all, you can now visit your WordPress admin area and try uploading an image.

We hope this helped you fix the ‘Missing a temporary folder’ error in WordPress. If this method doesn’t work, then check the directory permissions for your wp-content folder.

  Article "tagged" as:
view more articles

About Article Author

Anushka Bisht
Anushka Bisht

I am Anushka Bisht, Site owner of has written 1,100 articles for turtle7, where I share news, latest gadget inforamtion, latest technology, health tip and tutorials with the whole world. Your can visit other websites

View More Articles