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

WordPress 6.4.3 Incompatible Archive error when trying to upload a zip

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.

Published by Xylus Support

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    We strive to be the best and make awesome work

    Get a quote for your next project.