elementor / static-html-output

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

Deploys Nothing to Netlify #140

Open theexplosivegroup opened 3 years ago

theexplosivegroup commented 3 years ago

I've successfully used static html output on my MAC MAMP environment for the last year or so. However today when I migrated over to windows - it's no longer working.

I'm running the latest version of everything - windows 10, php 7.4.1, wordpress, all plugins etc.

It says it successfully deploys, but then if i go to the website i see:

Page Not Found Looks like you've followed a broken link or entered a URL that doesn't exist on this site.

If i export from my mac it works fine again.

In my php logs I see: file_put_contents(C:\Users[my filesystem]/wp-content/uploads/static-html-output/wp-json/wp/v2/posts/35/index.): failed to open stream: Permission denied in C:\Users[my filesystem]\wp-content\plugins\static-html-output-plugin\src\FileWriter.php on line 112

I've tried looking this up but i can't seem to find anything.

leonstafford commented 3 years ago

Hi @theexplosivegroup,

Could you please try this build, it has additional support for Windows filepaths:

https://github.com/WP2Static/static-html-output-plugin/files/4943854/gulshanwinziptest.zip

That's likely the issue here, from the error you've sent (malformed file path).

theexplosivegroup commented 3 years ago

Looks like that sorted it!

Will this be merged into the main build or should i only use that locally?

Will this work on my mac too?

leonstafford commented 3 years ago

Awesome! Yes, that will get merged in for next release.