The error "PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file" appears in WordPress when a plugin or theme upload, update, or installation fails because WordPress can't write to or read from the temporary directory. The usual cause is the server's /tmp directory being full, your account hitting its disk quota, or a permissions issue.
Check Your Disk Space First
- ✓ cPanel > Disk Usage - make sure you're not at 100%
- ✓ Delete old backups, large log files, or unused themes/plugins to free space
- ✓ Try the upload/update again
01. What Causes This Error
- Disk quota full - your hosting account has no free disk space. WordPress can't extract the uploaded zip file. This is the #1 cause
- /tmp directory full - the server's temporary directory ran out of space. This is a server-side issue
- File too large - the plugin/theme zip file exceeds PHP's upload limit
- Corrupt zip file - the downloaded file is incomplete or damaged
- Permissions issue - the
wp-content/uploadsorwp-content/upgradedirectory isn't writable
02. How to Fix It
Step 1: Check Disk Space
Log into cPanel > Disk Usage. If you're at or near 100%, free up space by deleting old backups, clearing trash in email, removing unused themes and plugins, or clearing WordPress cache files.
Step 2: Re-download the File
If disk space is fine, the zip file may be corrupt. Download a fresh copy of the plugin or theme from the source (wordpress.org, the developer's site, etc.) and try uploading again.
Step 3: Check PHP Upload Limits
If the file is large (50MB+), check your PHP upload limits in cPanel > Select PHP Version > Options. Increase upload_max_filesize and post_max_size to at least the size of the zip file.
Step 4: Fix Permissions
In cPanel > Terminal or via SSH:
chmod 755 ~/public_html/wp-content/uploads
chmod 755 ~/public_html/wp-content/upgrade
Step 5: Use FTP Instead
If WordPress's built-in uploader keeps failing, upload the plugin/theme manually via FTP. Unzip the file on your computer, then upload the folder to wp-content/plugins/ or wp-content/themes/. See our FTP guide.
If the error mentions /tmp specifically and you have plenty of disk space, the server's temp directory may be full. Open a support ticket and we can check and clear it.
Still Getting This Error?
If none of the above resolves it, open a ticket with the exact error message and what you were trying to install/update.
Open a Support TicketQuick Recap
- Check disk space - cPanel > Disk Usage, the #1 cause
- Re-download the zip - the file may be corrupt
- Increase PHP upload limits - for large plugins/themes
- Fix directory permissions - wp-content/uploads and wp-content/upgrade need 755
- Upload via FTP - as a workaround for the built-in uploader
Last updated March 2026 · Browse all WordPress articles
