elementor / wp2static

WordPress static site generator for security, performance and cost benefits
https://wp2static.com
The Unlicense
1.43k stars 270 forks source link

Fatal error activating plugin. #150

Closed Rapitharian closed 6 years ago

Rapitharian commented 6 years ago

When I install any to the plugins after version 5, I get the following error. Fatal error: Can't use function return value in write context in /var/www/html/testsite/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput.php on line 352 This means I am stuck on version 2.4.

leonstafford commented 6 years ago

Hi @rapitharian, please see this on how to resolve: http://docs.wp2static.com/troubleshooting/error-when-trying-to-activate-the-plugin/

I’ll be making this error non-blocking to activation in a future release, but it’s still going to require a later PHP version for most functionality.

Cheers,

Leon

leonstafford commented 6 years ago

Using http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/v5-3/, I'll allow activation for php 5.3 but warn to the user

leonstafford commented 6 years ago

fixed in version 5.8 (allow activation, but present user with notice to upgrade PHP)