How do I fix WordPress PCLZIP_ERR_MISSING_FILE (-4) : plugins error?

Solution:

  1. Go to Your wp-content folder. You can access the wp-content folder by using a file manager on your hosting or using FTP. The location will be domain/wp-content (where domain is the website domain name)
  2. When you are in wp-content create new folder under wp-content and call it temp.
  3. Download your wp-config file from your server to your computer. This is just in case you make a mistake and have a backup which you can quickly restore. Open the wp-config file and search for the following line of code.

if ( !defined(‘ABSPATH’) ) define(‘ABSPATH’, dirname(FILE) . ‘/’);

  1. Add following line of code after that line.

**/Set WordPress temporary directory / define(‘WP_TEMP_DIR’, ABSPATH . ‘wp-content/temp’);

  1. Save the wp-config.php file. If you edited it on your PC upload it to the website