Aleš Sýkora / February 14, 2024 / 0 comments

Incompatible archive ─ WordPress 6.4.3 SOLVED!

Post summary: Since latest WordPress release, you may encounter getting “incompatible archive” error when uploading plugins or themes.

How to fix this error and upload *.zip files normally again? The simplest way to circumvent this error is to instruct WordPress to use the PclZip library instead of ZipArchive for unzipping files. This can be achieved by inserting the following line of code into the functions.php file of your active theme:

add_filter( 'unzip_file_use_ziparchive', '__return_false' );

This snippet of tells WordPress to revert to using PclZip, which resolves the compatibility issue.

Bug is tracked here and hotfix is being prepared here.

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

0 comments

Share Your Thoughts