How To Fix Missing A Temporary Folder Error In WordPress

Updated:

by

How To Remove Missing A Temporary Folder Error In WordPress

Are you getting the error, “Missing a Temporary Folder” while uploading an image or installing a plugin in WordPress? You’re in the right place. We will guide you step-by-step to how to resolve this error and why this error comes.

This error stops you from uploading images or installing WordPress plugins. There could be two possible reasons for this error (1) Your “File Usage” disk quota in cPanel account is exceeded (2) Your “temp” folder in “WP-Content” is mistakenly deleted.

In cPanel the “File Usage” refers to disk inodes, or the number of files uploaded into your account. An inode is a data structure that describes a file or a folder. The number of inodes shows the number of files and folders you have.

If the “File Usage” percentage crosses 100% in your cPanel, your disk quota is exceeded. It means that there were more files created than the actual limit.

Let’s talk about “temp” folder. Before WordPress stores or send a file to the appropriate folder it temporarily stores files in a temporary folder called “temp”. When the “temp” folder is not found it is difficult for WordPress to continue its default process of uploading, as a result it shows this error.

This is how the error looks like when you upload an image from your WordPress Editor.

Missing a temporary folder error in WordPress

01. File Usage Disk Quota Exceeded

Most of the times the error “Missing A Temporary Folder” comes because of exceeding the “File Usage” disk quota, so always check it first before you go to the Second solution .

Follow the steps to how to check the File Usage in cPanel account and also learn what to do if your disk quota is exceeded.

  • Login to your cPanel. The Link, Username and Password of your cPanel account are provided to you by your web hosting provider.
Remove Missing A Temporary Folder Error In WordPress 2
  • Once you are logged into your cPanel find the “Statistics” section at right side. Under the “Statistics” you will see the “File Usage” option.
  • If you see the File Usage percentage more than 100%, you have exceeded your disk quota. It will also show you the Upgrade option as well.
Remove Missing A Temporary Folder Error In WordPress 3

There are two reasons that “File Usage” crosses its maximum limit (1) Your website is reached the maximum disk quota of file uploading (2) Trash or dummy data has taken the space of your “File Usage” disk quota.

If there is the Second Reason i.e Trash or dummy data has occupied your “File Usage”, ask your web hosting to clean the “cache files” from your cPanel account. You can do it by yourself if you know how to clean cache files. Once the cache files are cleaned your “File Usage” will come to normal percentage.

Read this step-by-step tutorial to learn about “File Usage” and clearing the “File Usage” cache in WordPress:

Let’s say your “File Usage” cache files are cleaned from your cPanel account and your “File Usage” percentage is still above 100%! You need to upgrade your hosting package which could offer more “File Usage” disk quota.

02. Create “Temp” Folder In WP-Content

If the “Solution 1” solves your problem you don’t need to create a temp folder and follow this solution.

Follow the steps to create temp folder in your cPanel account:

  • Login to your cPanel account.
  • Click “File Manager” located under the “Files” section.
Remove Missing A Temporary Folder Error In WordPress 4
  • Click “public_html”.
Remove Missing A Temporary Folder Error In WordPress 5
  • Click “wp-config.php”.
  • Click “Edit”.
Remove Missing A Temporary Folder Error In WordPress 6
  • Click “Edit”. Before you edit download a copy of “wp-config.php” to your computer, just as a precautionary measure.
Remove Missing A Temporary Folder Error In WordPress 7
  • Find the line that says, “/* That’s all, stop editing! Happy publishing. */”.
  • Now Paste this code just above that line, as we have shown in the snapshot.

define(‘WP_TEMP_DIR’,dirname(FILE). ‘/wp-content/temp/’);

Remove Missing A Temporary Folder Error In WordPress 8
  • Save the “wp-config.php” file.
  • Now go back to the “public_html” folder and open the “wp-content” folder.
Remove Missing A Temporary Folder Error In WordPress 9
  • Click the “+ Folder” to create a new folder.
Remove Missing A Temporary Folder Error In WordPress 10
  • Enter “temp” in the New Folder Name.
  • Click “Create New Folder”. It will create a “temp” folder.
  • Now go back to your WordPress Editor and check whether files are uploading or not.
Remove Missing A Temporary Folder Error In WordPress 11

We hope that above solutions works for you to remove the error, “Missing A Temporary Folder”. If you like this post then don’t forget to share with other people. Share your feedback in the comments section below.

Affordable WordPress themes

Also Read:

Related Topics: , ,
How to Start a WordPress Blog and Make Money
Amazon Seller Services, Account Management, Amazon PPC, Catalog Management, Amazon SEO, Product Research, Product Sourcing.
Buy Namecheap Domain and Webhoting
Download Website Themes
Mangools SEO Tools

2 responses

  1. Teresa Avatar
    Teresa

    Thanks, Meer’s World. The Solution 1 worked for me. My disk quota was exceeded. I cleared the File Usage cache from cPanel by following your recommended tutorial. Thanks Again!

    1. Meer Basit Avatar

      You’re most welcome Teresa.

Leave a Reply

Your email address will not be published. Required fields are marked *