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

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

Customize Divi Gallery Module Pagination with Custom Text and Icons

Enhancing the navigation experience in your Divi Gallery module can make your galleries more intuitive and visually appealing for visitors. By replacing the default previous and next pagination links with your own text and icons, you can better align the gallery...

Set a Custom Counter Duration in the Divi Number Counter Module

Adjusting the duration of the number animation in the Divi Number Counter module allows you to control the speed at which numbers count up, providing a smoother or more dramatic effect to suit your design preferences. This feature helps you better capture user...

Replace Pagination Numbers with Icons in Divi Gallery Module

Transforming the pagination in the Divi Gallery module by replacing default page numbers with an icon creates a modern, visually appealing navigation experience for gallery viewers. This customization can enhance site aesthetics and improve accessibility by providing...

Change Divi Gallery Module Slider Arrow Size

Adjusting the size of slider arrows in the Divi Gallery module can help improve site navigation, enhance visual consistency, or better match your site’s design preferences. Whether you want to make navigation elements more prominent or integrate them seamlessly with...

Random Posts