Fix missing WordPress temp folder

Recently we came across an error where they wasn't much information in regards to fixing the dreaded PLCZIP_ERR_MISSING_FILE (-4) error. They isn't much information for this error so we decided to write this guide to help you if you come across this error or you are currently having problems.

This error is caused when WordPress cant locate your temp directory causing errors when you update and download plugins on your site.

Ok lets go through the guide, this fix is for WordPress installations on Windows and Linux operating systems.

Firstly you'll need to download and install the Filezilla FTP Client or use your file manager within your hosts control panel.

Once logged in locate your WordPress installations wp-content folder and within the folder create a new folder, name this folder TEMP

Now lets go back a directory and locate your wp-config.php file, open this file with a text editor such as notepad and locate the following line:

if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');


On the next line add the following code:

define('WP_TEMP_DIR', ABSPATH . 'wp-content/TEMP');

Don't forget to save your file and upload it again to the server if you've downloaded it.

Now log back into your WordPress dashboard and try update your plugins, these should now work.