Zip files created by macOS crash on WP: here comes the fix!

If you do a good job with your WordPress site and keep it constantly updated, you will certainly have noticed that there is something seriously wrong with the latest version, 6.4.3, released on 30 January this year: when you upload Zip archives to update your plugins or theme, you get the "Incompatible Archive" error screen…

Author

Franco Farnedi

Published

14 February 2024

Reading time

5 minutes

Category

WordPress

If you do a good job with your WordPress site and keep it constantly updated, you will certainly have noticed that there is something seriously wrong with the latest version, 6.4.3, released on 30 January this year:

when you upload Zip archives to update your plugins or theme, you get the “Incompatible Archive” error screen that has infuriated the web!

Basically, all Zip archives created on Apple’s macOS (the plugin or theme folder) can no longer be uploaded to WordPress because of this error, which was promptly reported to the developers via a ticket.

Some people have already found a solution by applying a simple filter in functions.php. Jose Mortellaro explains it on his blog in this article.

Add this function to your functions.php to fix it, or temporarily upload your files via SFTP:

add_filter( 'unzip_file_use_ziparchive', '__return_false' );

When will the problem be fixed?

Luckily, the WordPress developers have promptly fixed the bug by including the patch in WordPress 6.5, but we will have to wait until 26 March to install it on our site, given the numerous improvements it will bring to the system.

Do you need support to update this function?
Contact us by opening a ticket with our support service

Share the article

Available for work

Stay in touch

Have a new project to start, or just want to know more about what we do? Our team helps you find the solution that best fits your needs.

Contact us