Static WordPress Community

Fatal error on activation

Tried to activate this plugin on a new site, but it caused a fatal error.

Image 2021-08-11 at 10.13.33 PM

may be an out of date version? Latest development version has no code on that line:

deleted and uninstalled with the latest version.
still the same fatal error.

using the v.6.6.21 version that i downloaded the latest plugin from here:
Static HTML Output: WordPress Static Site Generator Plugin | Thanks for donating!

deployed a new server, on apache, today.
got the same fatal error.

Image 2021-08-13 at 6.17.04 PM

the issue is not localized.
tried just now on local wp, and the error is still the same.
I’m using PHP 8 and wp 58 on apache, and the first one was on nginx.

Image 2021-08-14 at 6.08.25 PM

OK, let me quickly try on a PHP 8 instance and get back to you

OK, @mulyadi, sorry that took so long for me to look into properly - didn’t have a chance earlier in week.

I confirm I was able to reproduce the issue in my PHP 8 instance with Static HTML Output.

Will file an issue and get it fixed

Ugh, this is very sad - I reported it too long ago:

@mulyadi thanks for your patience. I’ve fixed the issue preventing activation in PHP 8 in github now. There’s a few other little errors/warnings I’m seeing, I’ll fix those up, then share you a zip here to test.

thanks man.
really appreciate this, as im actually moving to a new server, and really expecting this to work.

Here we go, please let me know how this goes.

I should be more responsive for plugin development issues again now :smiley:

https://github.com/leonstafford/static-html-output/files/6986564/shop-php8-mulyadi.zip

thanks @leonstafford.
i managed to activate it.
will let you know about the transfer result.

1 Like

transferred one/homepage, and the result is not great.
things that I noticed:

  • nav bar is missing/incorrect
  • hero image is not stretched/full width
  • footer is also not stretched/full width

the result from the latest plugin is:
https://611926d54eba5f7bfc8e8248–silverbackwolves.netlify.app/

it should be like this:
https://www.silverbackwolves.com/

all of these are 301’ing to main domain’s homepage… should all be trying to load from netlify?

Screen Shot 2021-08-16 at 12.58.18 am

did you set your WP site URL to the netlify one before publishing?