How to Fix PCLZIP_ERR_BAD_FORMAT in WordPress

How to Fix PCLZIP_ERR_BAD_FORMAT in WordPress

Have you ever encountered an error when uploading or updating a WordPress plugin or theme PCLZIP_ERR_BAD_FORMAT (-10): Unable to find End of Central Dir Record signature which resulted in a failed update or upload?

Cara Mengatasi PCLZIP_ERR_BAD_FORMAT WordPress - 0

If you have, or are currently experiencing this issue, do not worry, because we will discuss how to fix it here.

Actually, it is less about how to fix it and more about the cause of this error, because once you know the cause, you will surely know what steps to take.

How to Fix PCLZIP_ERR_BAD_FORMAT in WordPress

To date, there are two main causes for the PCLZIP_ERR_BAD_FORMAT error, including

1. Corrupt ZIP File or Incorrect File Extension

The first step you can take is to check whether the zip file you are uploading has the correct extension, which should be ZIP, not TAR.

Additionally, you should also check whether the zip file you are uploading is password protected. If it is, it is recommended to extract it first and then re-compress it so that the zip file is no longer password protected.

If you have checked the file and the file format is correct, you can try re-uploading the file directly using the file manager or FTP by following the tutorial on How to Upload WordPress Plugins.

Alternatively, it is recommended to try uploading your plugin to a local WordPress site. If it uploads successfully on the local site, then you need to check the second method.

2. Disk Space Issues

If there are no issues with the zip file, then you need to check whether the disk space on your hosting is still sufficient to accommodate the file you are uploading.

If you are using unlimited hosting, you might also need to check the inode usage on your hosting, because unlimited hosting usually uses an inode limitation system rather than a disk space size limitation.

If you are using cPanel, you can easily check your disk space usage information through the Statistics panel on the right side of the screen.

Cara Mengatasi PCLZIP_ERR_BAD_FORMAT WordPress - 2

If the cause is that your disk space or inodes are full, you need to Find Large Files in cPanel and then delete them, or upgrade your web hosting to get more disk space.

Conclusion on PCLZIP_ERR_BAD_FORMAT in WordPress

The PCLZIP_ERR_BAD_FORMAT (-10): Unable to find End of Central Dir Record signature error is usually caused by an unsupported file format, which prevents WordPress from extracting the file, or it could be because the available disk space on your hosting has reached its maximum limit.

However, of those two causes, the most frequently encountered one is that the hosting disk space is full. Therefore, it is recommended to check your files periodically, especially if there are error log files that could reach hundreds of MBs if they are never checked or if WordPress errors are never fixed.

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...