elementor / static-html-output

Static HTML Output Plugin for WordPress
https://statichtmloutput.com
The Unlicense
124 stars 33 forks source link

Netlify: Deployed failed while extracting zip: empty zip file #159

Closed cnicodeme closed 3 years ago

cnicodeme commented 3 years ago

Hi,

I'm trying to directly deploy my site to Netlify, but at Netlify, I get the following deploy failure:

Deployed failed while extracting zip: empty zip file

I checked and generating the Zip for manual download works fine.

I'm using Wordpress v.5.5.3 with WP2Static vs 6.6.7.

cnicodeme commented 3 years ago

Worked on the issue. The zip file is never created but the error never caught!

The error in question is because we added a file with no extension (_redirect) for a previous deploy via Zip, and the archive can not add it, so it fails with

return new WP_Error('Could not add file: ' . $filename);

Except that when you call post_process_archive_dir, you don't track the errors there, so it never really fails, and never create that zip.

leonstafford commented 3 years ago

@cnicodeme looks like an older version of plugin was being used.

You'll want to switch to 6.6.23, which is available in source code from this repository or you can download from https://statichtmloutput.com (note the plugin name change from WP2Static, which is now a different approach to same plugin, with a newer Netlify deploy option you may want to test).