WordPress Upload Error “Missing a temporary folder” Resolved

Learn how to resolve the WordPress upload issue of "Missing a temporary folder" here.

You may have tried uploading images, themes, or plugins onto your WordPress site but got the error alert “Missing a temporary folder“; it’s simple. But first, understand that WordPress stores its uploads into folders, so when errors like this show up it simply means that folder is missing on not named properly.

The guide on this page shows you a complete step to get the WordPress upload error “Missing a temporary folder” resolved.

How to get “Missing a temporary folder” error resolved

  1. Login to your site hosting account and navigate to public_html file, open it.
  2. Among the list of files you have, look for wp-config.php file then open it.

While opening the wp-config.php file, depending on the type of hosting service you’re using, a popup appears to confirm and provide an option to disable encoding. Click on the Edit button, and a new tab opens up in the web browser.

  1. Then add the code shown below in the file and click on the Save Changes button from the top-right corner.
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
  1. Now, on the same page directory, go to wp-content folder

The code above shows that you’ve defined the temporary folder which is the “temp”, now it’s time to Create the Temp Folder inside wp-content.

  1. Still on the same page of your site directory, open the wp-content directory, bacuse that’s where you’ll be creating a new folder.
  2. Look up the page bar then navigate to the +Folder link in the cPanel navigation menu.
  3. A popup appears asking you to fill in the name of the folder. Of course, you already know that the name should be “temp“, then click on the Create New Folder button.
  4. Now refresh the page to see the new folder.
  5. Hencefore, try uploading anything on your WordPress website again and if the error doesn’t show up then you have successfully WordPress Upload Error “Missing a temporary folder” issue.

Congrats!

However, if after these processes and you’re still unable to upload files to your website then you need to update the PHP version of the domain to the recent and the files should definitely start uploading without any errors.

Hope this page was helpful?

Leave a Reply

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