How to Fix “Missing a Temporary Folder” Error in WordPress

By WP Saviour •  Updated: 04/16/21 •  3 min read

Are you seeing ‘Lacking a brief folder’ error in your WordPress web site? This error makes it not possible to add photos, replace themes and plugins, or replace WordPress core. On this article, we are going to present you how one can simply repair “Lacking a brief folder” error in WordPress.

missingtmpfolder-7982078

What Causes The ‘Lacking a Short-term Folder’ Error in WordPress?

This error is attributable to incorrect PHP settings in your WordPress hosting atmosphere. There’s a particular PHP setting that defines a brief folder for use by apps like WordPress to quickly retailer knowledge earlier than saving it to the specified location.

WordPress wants entry to this non permanent folder while you add a picture, set up or replace a theme or plugin, or replace WordPress core.

If the placement of this folder shouldn’t be outlined in your server’s PHP configuration, then WordPress will probably be unable to do any of this stuff and can present you ‘Lacking a brief folder’ error.

missingtempfolder-6400474

Having stated that, let’s see how one can simply repair the ‘Lacking a brief folder’ error in WordPress.

Repair Lacking Short-term Folder Error in WordPress

For this tutorial, you have to to edit wp-config.php file in WordPress. In case you haven’t performed this earlier than, then please see our information on how to edit wp-config.php file in WordPress.

First, you have to to hook up with your web site utilizing an FTP shopper or File Supervisor in cPanel dashboard of your internet hosting account.

Subsequent, you have to to find the wp-config.php file and edit it.

wpconfigfile-8403554

You should paste this code to the file simply earlier than the road that claims ‘That’s all, cease modifying! Completely satisfied running a blog’.

1

outline('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');

Save your modifications and add the wp-config.php file again to your web site.

Subsequent, you could go to /wp-content/ folder and create a brand new folder inside it. You should title this new folder temp.

tempfolder-6335279

That’s all, now you can go to your WordPress admin space and check out importing a picture.

Troubleshooting

If this technique doesn’t work, then verify the directory permissions to your wp-content folder.

Notice: This error is attributable to poorly configured internet hosting atmosphere. The answer described above is only a workaround. You need to nonetheless ask your internet hosting supplier to repair this. In the event that they don’t, then it’s best to change to one in every of these top WordPress hosting firms.

We hope this text helped you repair the ‘Lacking a brief folder’ error in WordPress. You may additionally wish to bookmark our final listing of the commonest WordPress errors and how one can repair them.

gp-4012302 as-2189815

WP Saviour