PCLZIP_ERR_BAD_FORMAT (-10) is a wordpress error, which occurs when installing wordpress plugin and themes.
Here is the solution for the above error, actual problem behind this error is plugin/theme format
- Plugin/Theme should be in .zip format
- When the format is .rar, the above error will be thrown
STEP 1] – Check format of your plugin, if the foramt is .rar.
STEP 2] – Extract the plugin into folder
STEP 3] – Right Click on the extracted folder and choose “Add to Archive” and choose archive format as .ZIP
Checkout the format of the plugin and PCLZIP_ERR_BAD_FORMAT (-10) won’t come again for that plugin/theme.