If you’ve recently updated your WordPress site to version 6.4.3, you might run into a snag when trying to upload plugins or themes. This hiccup occurs when you attempt to upload a plugin or theme that was compressed using a Mac, and your server has the ZipArchive module activated. When this happens, you’ll encounter an error message saying “Incompatible Archive.”
Thankfully, there’s a straightforward fix for this. You can add a line of code to your site’s functions.php file within your child theme or a functional plugin. Here’s the line you’ll need to add:
add_filter( 'unzip_file_use_ziparchive', '__return_false' );
This line tells WordPress to use the PclZip class instead of the ZipArchive module, which resolves the compatibility issue.