Incompatible Archive WordPress Solution
What’s Causing the Error?
The core of the problem lies in the way MacOS compresses zip files and how WordPress 6.4.3 interprets them upon upload. Recent security enhancements aimed at tightening up the upload process inadvertently introduced challenges for MacOS compressed zip files, leading to the dreaded ‘Incompatible Archive’ error message. Similar issues previously affected WordPress and WP-CLI and the behavior ties back to PHP’s _libzip_ version discrepancies.
Use the MacOS Command Line for Compression
Instead of using the MacOS right-click ‘Compress’ option, compress your plugin folder using the terminal. Here’s how:
zip -r my-plugin.zip my-plugin/
(from diviextended.com/incompatible-archive-error-in-wordpress/)
This is an entry in the Commonplace Book of Sparkwood and 21. A commonplace book is a personal compilation of knowledge, ideas, quotations, and observations collected by an individual. Feel free to link and reference any entries you find useful.