I saw many posts on the forum that Enfold supports PHP 8. But I’m getting compatibility errors still, and since I’m not a customer I can’t hop on the forum to mention it. So here i am.
Enfold 5.1.2 PHP 8 Compatibility
/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php:220
“Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.”
/html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-sub-item-query-base.php:99
“Visibility for magic method __destruct must be public. Found: protected”
Hey Gabriel,
Thanks for reporting this.
Sounds a bit strange as I work with 8.0 and get no notices.
But I added fixes for the next release for both problems. Can you wait for that or do you need the fixes now?
Best regards,
Günter
I can certainly wait. And these errors aren’t from PHP directly but from a PHP 8 compatibility checker on Nexcess (website host). Before switching PHP versions, it will check compatibility and those were the errors it mentioned. I don’t know how much impact it has in practice, but figured I’d pass them along to get them resolved either way.
Hi,
Thanks for the update, please let us know if you should need any further help on the topic.
Best regards,
Rikard
What version should I expect this patch in and when? Thanks!