plugin-update-checker: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
Hi, i’m not sure is an issue related with the plugin but before opening it I tried couple of things.
I’ve this plugin called “plugin-name.zip” in a public accessible folder, inside of it there is a folder called plugin-name with inside all the plugin files like mentioned here: spreadsheet
I tried to zip the folder with 7zip on windows and built in zip tool on linux and I get the same error during plugin updates.
PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
I googled a lot and people suggest lack of memory but it isn’t (in my case), permissions but it isn’t (in my case) or zip file corruption, but is the 12 time I try lol
All the rest of the people suggest to download the plugin and install manually but is not the case.
What can be the problem? How can I debug it? Many thanks in advance.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (7 by maintainers)
@YahnisElsts you sir are made of win!
Here are a few suggestions:
download_url
function that’s located in/wp-admin/includes/file.php
. Make it output$tmpfname
and immediately exit after downloading the file. Look at the downloaded ZIP file and verify that it’s valid and contains the expected folders and files.