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:
- Open the wp-config.php file
- Find
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(FILE) . ‘/’); - Add these lines below
/** Specify wordpress temp dir */
define(‘WP_TEMP_DIR’, ABSPATH . ‘wp-content/temp’); - Go to the wp-content folder, and create a new folder named “temp”
- Update agai