WordPress. How to get rid of ‘Temporary Folder Missing’ error while uploading media

This tutorial will show you how to get rid of ‘Temporary Folder Missing’ error while uploading media files to WordPress:

WordPress Temporary Folder Missing Error is thrown by php, when its unable to locate a temporary folder. This might be a server-side problem as they may have forgotten to set up temp dir for you, but can be treated by changing PHP settings using php.ini file:


The first option is:

    1. Log into Hosting Cpanel of  your server or use your FTP.
    2. Locate wp-config.php file in the root of your wordpress site.
    3. Download the file and open it in any text editor.
    4. Add following code after /* That’s all, stop editing! Happy blogging. */:1
      1
      define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
    5. Save the file and replace it on your server.
    6. Create a new folder temp in wp-content folder.




The second option is:

  1. Log into Hosting Cpanel of your server or use your FTP.
  2. Open public_html folder.
  3. Now create a file with a name php.ini.
  4. Place the following code inside the file:
    1
    upload_tmp_dir= /home/username/public_html/temp/
  5. Save the file.
  6. Create a temp folder at the same location, i.e. inside public_html.

If the issue is not resolved, we strongly recommend you to contact your hosting provider as this is a server configuration problem.






Gulam Hussain

Hi, I am a Digital Marketing consultant and Wikipedia Editor, SEO and PPC expert based in New-Delhi, India. I work with new startups, entrepreneurs, freelancers. I am a Professional Digital Marketer and I write, speak, and consult mostly about How to more traffic, SEO and PPC News updates, products reviews, Inbound Marketing, Social Media marketing etc.



Follow us

Get the newsletter