Update Failed - PCLZIP ERR_MISSING_FILE

Update Failed - PCLZIP ERR_MISSING_FILE

If when trying to update WordPress you receive the following error:
Update Failed: The package could not be installed. PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file '/tmp/
It could mean either:
  1. No storage space left on hosting account
  2. You need to define your tmp path
If your hosting account isn't at capacity then download /wp-config.php from the hosting Control Panel locate the below line of code
  1. if ( !defined('ABSPATH') )
  2. define('ABSPATH', dirname(__FILE__) . '/');
Then add
  1. define('WP_TEMP_DIR', ABSPATH . 'wp-content/tmp');
Save and upload the file back to the server to resolve the issue