I currently downloaded a WordPress plugin for my blog and I uploaded it to my WordPress blog in the plugin section and after the upload was completed, I discovered an error message saying “The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature?” I was confused and really needed this plugin. I thought it was from network so I decided to upload the plugin again and to my amazement, i was still getting the same error message. After successive trials, I was able to upload the plugin. Most WordPress newbies may also encounter the same problem since most people prefer to download premium plugins online and those premium plugins are mostly compressed in a .rar format. Below are the possible reason why get that error message after uploading a plugin.
- Plugin is in the .rar format or other format apart from .zip
- The Plugin is password protected
- Low server Space in your web hosting
These are the possible reasons why you get the error message “The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature?” when uploading a plugin in your WordPress site. Below are the possible solutions to solve the error and upload the plugin successfully.
Fix WordPress Error “The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature?”
1. Change the file to a .zip format
The major reason why you get that error is that WordPress only supports .zip format and most websites you download plugins from, compress the plugins in a .rar format. So there is need to change it to a .zip format so it can be easily be extracted by WordPress after upload. First, you need to identify the format of the file. Go to the plugin file you are getting the error message from and right click on it. Then Go to “Properties”. In Properties, you will see Type of File which shows the file format in bracket as shown below
If you notice the file is a .rar format or other format apart from .zip, then there is need to change it to a .zip format. There are lots of unzip softwares but I recommend WinRar because it’s easy to use. Download Winrar online and install it. Now go to the plugin file and ectract it using WinRar. Once you have extracted it, then you need to compress it to a .zip format. to do that, Right Click on the compress file or folder and Click on “Add to Archive”. Then select the .zip format and compress it. You can now upload it back to WordPress but If you still get the error message after you have uploaded it, then move to step 2
2. Remove the File Password
After you have followed step one and the plugin still fails to upload, then the second obvious reason is that the file is password protected. Password protection makes it hard for the WordPress to extract the plugin after upload. So you need to remove the password. To remove the password, extract the file but before the plugin file can be extracted, a box will pop up asking you to input the password, input the password and extract it to your desired location. once extracted, compress it to a .zip format and this time ensure you don’t put a password in the plugin file you want to compress. Once compressed, then go back to your WordPress plugin and extract the file back. It will successfully be uploaded but If you encounter the same error message, then head up to step 3 to solve the problem
3. Upgrade Webhosting Plan
It is recommended to start up a WordPress site in good web hosting companies like Hostgator, Bluehost to prevent time outs and poor cpanel. One thing is purchasing from a good hosting company, another is purchasing a good and suitable plan for your WordPress site. I recommended you purchase a premium or second to the premium version so that your website can be fully online. You might still be getting the error message “The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature?” after uploading the plugin after following the first two steps because of low disk space in your WordPress hosting plan. You are advised to delte some unnecessary plugins and media file and try uploading the plugin file. If the error still persist, then you are advsed to upgrade your webhosting plan for increase in disk space.
These are the best ways in solving the WordPress Error: The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature?
Which method worked for you? Tell us using the comment box.