WordPress Tutorial

How to Fix Missing A Temporary Folder Error In WordPress

How to Fix Missing A Temporary Folder Error In WordPress

Missing a temporary folder error in WordPress can be irritating. You would find impossible to update your current theme and plugins, upload new files and images, and the error would not even allow you to update your WordPress core.

But fret not. In this WordPress tutorial, we will understand the probable causes behind the Missing a Temporary Folder error, and find out how to easily fix the error. Let’s get started.

Why You Are Get Missing a Temporary Folder Error in Your WordPress?

Most likely this error is caused due to the incorrect folder permission in your hosting environment. WordPress uses a temporary folder to store various files before saving them to the desired location. Whenever the folder permissions in your hosting environment are not appropriate, WordPress is not able to store your files in the temporary folder and throws the error. This is the reason why you find it difficult to upload images and files, update themes and even the WordPress core.

It’s possible that you have deleted temp folder unintentionally.

Now that you understand the basic reason behind this error, let’s understand how to fix this error quickly.

Fixing Missing Temporary Folder Error in WordPress

Fixing missing temporary folder error in WordPress is easy and requires just a few steps. All you need to do is edit your wp-config.php file. Follow the below-mentioned steps to fix the error:

  1. Establish a connection with your account using FTP client or File Manager in your hosting control panel.
  2. Next, find the wp-config.php file and open it to edit. It is located in WordPress root installation folder (usually public_html).
    Edit wp-config.php file
  3. Once you have opened the file, paste the following code before the line that says ‘That’s all, stop editing! Happy blogging’.
    define(‘WP_TEMP_DIR’,dirname(_FILE_). ‘/wp-content/temp/’);
  4. Save the file, and upload the updated wp-config.php on your website again.
  5. Next, locate the /wp-content folder and add a new folder inside it and name it as temp.
    Fix Missing Temporary Folder by Creating Temp Folder
  6. Login to your WordPress dashboard, and try uploading files.
  7. And you are done!


We hope that the above-mentioned WordPress tutorial helped you to fix the ‘Missing a temporary folder’ error in your WordPress. It is easy to follow and the error can be fixed with a few steps. If you have any query, do let us know in the comments.

About the author

Domantas G.

Domantas leads the content and SEO teams forward with fresh ideas and out of the box approaches. Armed with extensive SEO and marketing knowledge, he aims to spread the word of Hostinger to every corner of the world. During his free time, Domantas likes to hone his web development skills and travel to exotic places.

1 Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • I have tried this method But it does not work for me. Do you have any other idea? I cantacted with my hosting provider they said no problem from their end. How can i fix the provblem now?

Get Exclusive Content

Join thousands of webmasters who get our free newsletter with tips on how to drive more traffic and revenue to their websites!

Please wait...

Thank you for sign up!

More in WordPress Tutorial
How to Create a Contact form on WordPress
How to Create a Contact form on WordPress