Error on Divi Booster update: "PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure"

Written by Dan Mossop

If you're very unlucky, you may get the following error when you try to update Divi Booster:

The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure

This error indicates that WordPress has not been able to successfully download and extract the latest version of Divi Booster from the server.

Updating Manually

The error is not actually a problem with the Divi Booster zip file being installed by the update process. Rather it is seems to be down to configuration issues on the server on which the WordPress site is hosted.

As this only affects the automatic update process, a quick way to get going with the latest version of Divi Booster is to update manually.

Ensuring cURL is configured on server

While I'm still trying to understand this issue fully myself, it appears that the primary cause is the cURL library not working on the server, either because it has not been enabled, or is incorrectly configured.

When cURL is not available to WordPress, it falls back on other methods of retrieving the update file which appear to fail to correctly transfer the zip file (in some cases, at least), resulting in the error mentioned above.

While it is beyond the scope of this post, and my ability, to advise how to install cURL for all the combinations of servers and PHP versions, there are two basic things that need to be done. First, cURL needs to be installed on the web server itself (e.g. Apache). Then the PHP cURL extension appropriate to the web server and PHP version needs to be installed. This post contains some examples of the commands for installing various versions of cURL, but note that they may not be the correct commands for your server / PHP version.

If you are hosting your site with a web host, they should be able to assist you with the installion of cURL / PHP cURL.

You can check if cURL is available to PHP on your server (and therefore WordPress) by creating a phpinfo page. If you have cURL installed, you should see a "cURL" section in the php_info output with a row saying "cURL Support: Enabled".

Ensure WordPress has Enough Memory

Assuming that doesn't work, another potential cause is WordPress reaching its memory limit and as a result being unable to completely decompress the file. This post explains how to do it:

https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/

Check out Divi Booster

Divi Booster upgrades Divi with hundreds of new features to help you build awesome sites with ease. Enjoy a more robust and feature-rich Divi experience with customizations and optimizations bundled into one powerful plugin.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.

Latest Posts

Set Custom CSS IDs for Individual Divi Accordion Items

Assigning unique CSS IDs to specific Divi Accordion items allows for precise control over styling, targeting, and linking within your page content. This ability is particularly useful when you want to apply custom designs or create anchor links to particular accordion...

Enable Swipe Navigation in the Divi Gallery Lightbox

Enabling swipe navigation in the Divi Gallery module's lightbox allows users to seamlessly browse through gallery images by swiping left or right, creating a more interactive and mobile-friendly experience. This functionality can significantly improve user engagement...

Disable Slide-In Animation for Divi Gallery Grid Images

Control how images appear in your Divi Gallery module by toggling the slide-in animation effect for grid layouts. Disabling the slide-in animation allows gallery images to load instantly and appear statically, providing a faster and distraction-free browsing...

Control Image Count Display in Divi Gallery Lightbox

Displaying or hiding the image count in the Divi Gallery module’s lightbox can help customize the user experience, depending on whether you want to give visitors an indication of gallery progress or prefer a cleaner, distraction-free view. The ability to toggle this...

Hide Gallery Image Titles in the Divi Lightbox Overlay

Displaying image titles in the lightbox overlay of the Divi Gallery module can sometimes be distracting or unnecessary, depending on your website’s design and user experience goals. Hiding these titles creates a cleaner and more focused viewing experience for visitors...

Random Posts