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/

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

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.

Latest Posts

Customize Lightbox Title Styling in the Divi Gallery Module

Adjust the appearance of the lightbox title that appears when visitors open images from a Divi Gallery to align with your brand and improve readability. Refining the title’s color, size, and weight enhances visual hierarchy, accessibility, and overall polish. In this...

Center the Lightbox Image Count in the Divi Gallery Module

Centering the image count in a gallery lightbox creates a cleaner, more balanced presentation and makes it easier for visitors to see where they are in the image set. This simple visual tweak can enhance readability, especially with larger images and longer captions,...

Style the Divi Gallery Module Lightbox Image Count

Tailor the appearance of the image counter in the Divi Gallery module lightbox to match your brand and improve readability. By customizing the counter’s color and typography, you ensure it displays clearly and suits your design. In this guide we show you how to style...

Customize the Lightbox Image Background Color in the Divi Gallery

Control the color that appears behind your images when users open in the gallery lightbox, including support for semi-transparent hues. This helps improve contrast for transparent images, align the experience with your brand palette, and create a more polished viewing...

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 *.