Error: The package could not be installed.

February 26, 2020

The package could not be installed. PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file ‘C:\WINDOWS\TEMP/akismet.tmp

When updating, WordPress downloads ZIP files, writes it to a temporary directory then updates.

Sometimes when the WP installation is moved – depending on the server -, it does not detect the temporary directory.

To fix this:

  1. Open the wp-config.php file
  2. Find
    if ( !defined(‘ABSPATH’) )
        define(‘ABSPATH’, dirname(FILE) . ‘/’);
  3. Add these lines below
    /** Specify wordpress temp dir */
    define(‘WP_TEMP_DIR’, ABSPATH . ‘wp-content/temp’);
  4. Go to the wp-content folder, and create a new folder named “temp”
  5. Update agai
Get In Touch

Email: [email protected]


CAPTCHA image

This helps us prevent spam, thank you.



Categories