Hello. Just ran the update for Enfold 4.2.6. Am getting this error all of a sudden when viewing pages from front-end.
Fatal error: Can't use function return value in write context in /wp-content/themes/enfold/header.php on line 6
Went back to the header.php from 4.2.5 and resolved the issue.
Maybe an error in the file, or something from my side?
Thanks for your help.
Hey jberg1,
This error has been associated with older PHP versions, what is your PHP version?
The solution is to update your PHP to v7 or to update your header.php with this one.
Best regards,
Mike
Thanks Mike, I figured that might be the issue. Using a legacy GoDaddy cPanel account that tops out at PHP 5.6.
I’ll use the file you linked until I remedy that PHP version.
Thanks again.
Resolved.
Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
and the video tutorials here
And if there are features that you wish Enfold had, you can request them and vote the requested ones here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)
Best regards,
Mike