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)

Most upvoted comments

@YahnisElsts you sir are made of win!

Here are a few suggestions:

  • Install Core Control and use the HTTP Access Logger Module to log the request that WordPress makes to download the update. Verify that the request is successful (i.e. 200 OK) and that it has the correct size and response headers. Chances are, you will discover that there’s something wrong with the response.
  • WordPress displays the update download URL during the update process. Verify that it matches the URL you specified in the JSON file, and try opening the URL manually.
  • Edit the 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.