If you’ve recently updated to WordPress 6.4.3 and are trying to upload plugin zip files compressed on MacOS, you might run into the ‘Incompatible Archive Error’. This error is a known issue, but luckily, there’s an easy way to fix it.

The main issue comes from the way MacOS compresses zip files and how WordPress 6.4.3 processes these files during the upload. The recent security updates in WordPress are designed to make uploads safer. However, they also introduced a problem for zip files made on MacOS, causing the ‘Incompatible Archive’ error. This problem is similar to previous issues with WordPress and WP-CLI, mainly due to differences in the PHP libzip version.

To solve Incompatible Archive” Error in WordPress 6.4.3 problem, you can insert the following line of code into your theme’s functions.php file:

php
add_filter( 'unzip_file_use_ziparchive', '__return_false' );

This code helps by changing the way WordPress handles zip files, avoiding the error. Keep an eye on the WordPress tracker for any updates on this issue. You can check the progress here: WordPress Issue Tracker.

Remember, it’s always a good idea to backup your website before making changes to the code. This way, you can ensure that your site remains safe while you work on fixing the error.