Uploading the plugin error: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

When using WordPress, you may encounter an error message, PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature. This error typically occurs due to one of three reasons.

  • Unfortunately, there is not enough memory on the WordPress web server to unzip and upload the contents of the zip file.
  • An error being thrown by a plugin or script on your WordPress website.
  • Аn issue with the zip file you’re uploading.

There is a chance that the plugin zip file got damaged when you first downloaded it. To fix this, try downloading it again. If you use WordPress, following these steps should help resolve the issue. Don't hesitate to reach out if you need any further assistance!

If you encounter the same error message, it could indicate that there isn't enough storage space on your web server for WordPress to successfully unzip and upload the file contents. To determine if this is the issue, try uploading other files like images, videos, or plugins. If you experience the same error, it is likely due to limited storage space. You can resolve this by removing unnecessary files from your web server, such as old database backups or unused themes. Alternatively, you can reach out to your web host and request an increase in your storage capacity.

This issue can also occur when a plugin or script encounters an error. The error gets included in the zip file when the plugin updater tries to create the package, causing the structure of the file to break. Typically, this happens when the WP_DEBUG setting in the wp-config.php file is set to TRUE. While it's a good practice to check for errors, it is recommended to set it to FALSE on a live website. Alternatively, you can keep it enabled and log the errors to a file on your server, specifically the wp-contents/debug.log file. To do this, simply add the following lines to the wp-config.php file:

define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_display', false );

If you are still facing the same problem even after attempting both of these solutions, kindly reach out to our Support team for further assistance. We are here to help!


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 556