{"id":22566,"date":"2024-02-14T09:30:38","date_gmt":"2024-02-14T08:30:38","guid":{"rendered":"https:\/\/f.technology\/blog\/macos-zip-files-crash-wordpress-fix\/"},"modified":"2024-02-14T09:30:38","modified_gmt":"2024-02-14T08:30:38","slug":"macos-zip-files-crash-wordpress-fix","status":"publish","type":"post","link":"https:\/\/f.technology\/en\/blog\/macos-zip-files-crash-wordpress-fix\/","title":{"rendered":"Zip files created by macOS crash on WP: here comes the fix!"},"content":{"rendered":"<p>If you do a good job with your WordPress site and keep it <a title=\"WP-Help\" href=\"https:\/\/f.technology\/en\/wordpress\/\">constantly updated<\/a>, you will certainly have noticed that there is something seriously wrong with the latest version, <a title=\"WordPress 6.4.3\" href=\"https:\/\/wordpress.org\/news\/2024\/01\/wordpress-6-4-3-maintenance-and-security-release\/\" target=\"_blank\" rel=\"noopener\">6.4.3, released on 30 January<\/a> this year:<\/p>\n<p style=\"text-align: center;\"><strong>when you upload Zip archives to update your plugins or theme, you get the &#8220;Incompatible Archive&#8221; error screen that has infuriated the web!<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/f.technology\/wp-content\/uploads\/2024\/02\/incompatible-archive.png\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" srcset=\"https:\/\/f.technology\/wp-content\/uploads\/2024\/02\/incompatible-archive.png 1600w, https:\/\/f.technology\/wp-content\/uploads\/2024\/02\/incompatible-archive-300x56.png 300w, https:\/\/f.technology\/wp-content\/uploads\/2024\/02\/incompatible-archive-1024x192.png 1024w, https:\/\/f.technology\/wp-content\/uploads\/2024\/02\/incompatible-archive-768x144.png 768w, https:\/\/f.technology\/wp-content\/uploads\/2024\/02\/incompatible-archive-1536x288.png 1536w, https:\/\/f.technology\/wp-content\/uploads\/2024\/02\/incompatible-archive-1320x248.png 1320w\" alt=\"\" width=\"1600\" height=\"300\" \/><\/p>\n<p>Basically, all Zip archives created on Apple&#8217;s macOS (the plugin or theme folder) can no longer be uploaded to WordPress because of this error, which was <a title=\"WordPress file zip bug ticket\" href=\"https:\/\/core.trac.wordpress.org\/ticket\/60398#\" target=\"_blank\" rel=\"noopener\">promptly reported to the developers via a ticket<\/a>.<\/p>\n<p>Some people have already found a solution by applying a simple filter in functions.php. Jose Mortellaro explains it on his blog in <a title=\"Jose Mortellaro blog\" href=\"https:\/\/josemortellaro.com\/not-possible-to-upload-plugin-or-theme-with-wordpress-6-4-3\/\" target=\"_blank\" rel=\"noopener\">this article<\/a>.<\/p>\n<p>Add this function to your functions.php to fix it, or temporarily upload your files via SFTP:<\/p>\n<pre data-line=\"\"><code>add_filter( 'unzip_file_use_ziparchive', '__return_false' );<\/code><\/pre>\n<h3>When will the problem be fixed?<\/h3>\n<p>Luckily, the WordPress developers have promptly fixed the bug by including the patch in <a title=\"WordPress 6.5\" href=\"https:\/\/developer.wordpress.org\/news\/2024\/02\/whats-new-for-developers-february-2024\/\" target=\"_blank\" rel=\"noopener\">WordPress 6.5<\/a>, but we will have to wait until 26 March to install it on our site, given the numerous improvements it will bring to the system.<\/p>\n<h4><a href=\"mailto:support@f.technology\">Do you need support to update this function?<br \/>\nContact us by opening a ticket with our support service<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>If you do a good job with your WordPress site and keep it constantly updated, you will certainly have noticed that there is something seriously wrong with the latest version, 6.4.3, released on 30 January this year: when you upload Zip archives to update your plugins or theme, you get the &#8220;Incompatible Archive&#8221; error screen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4111,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[69],"tags":[],"class_list":["post-22566","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"acf":[],"_links":{"self":[{"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/posts\/22566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/comments?post=22566"}],"version-history":[{"count":0,"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/posts\/22566\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/media\/4111"}],"wp:attachment":[{"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/media?parent=22566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/categories?post=22566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/f.technology\/en\/wp-json\/wp\/v2\/tags?post=22566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}