Update failed: The package could not be installed. PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

Most of the times, it happens when we migrate the code from one to another hosting,
but don’t worry, its easy to fix this issue.

PCLZIP_ERR_MISSING_FILE

open the wp-config.php and find this line,

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

Then Add following line of code after that line.

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

Also check that temp folder should be exist in wp-content directory,

if not, then create temp directory and change the permission to 0755 via cpanel of using ftp tool.

Leave a Reply

Your email address will not be published. Required fields are marked *