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

1
31
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.

AdvertisementSEMrush

Comments are closed.