Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #930253

    Had an issue where my website wouldn’t display at all. Tried debugging and eventually deleted everything, reinstalled wordpress and then enfold. I imported the “Coming Soon” sample to start my page over as a new business. I have done nothing else and when I try to go to the webpage to see how the basic coming soon sample looked, I get the following error:

    Fatal error: Can’t use function return value in write context in /home3/leehoy/public_html/wp-content/themes/enfold/header.php on line 6

    Thanks,

    Lee

    #930412

    Hey lhoy,

    You should be running at least php5.6.3 for the code to work properly. Please upgrade your php.

    Best regards,
    Victoria

    #931172

    Having the same issue with my website, recently just run an update of the theme and immediately got this error… Not very conversant with the back-end of things.

    Kindly assist…

    Fatal error: Can’t use function return value in write context in /home/bodyby20/public_html/wp-content/themes/enfold/header.php on line 6

    Thanks,

    George

    • This reply was modified 6 years, 7 months ago by gwakaria. Reason: name
    #931196

    Hi George,

    Which version of php are you running?
    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #931207

    Thanks for your speedy response…

    #931308

    I’ve managed to update the php version to 7.2 in cpanel and the website is back up…
    thanks a lot for the assistance.

    #931341

    Hi!

    Sorry for the inconvenience! Issue occurs on servers running PHP versions older than 5.6. You can either upgrade your PHP version to minimum 5.6 and preferably to 7.x or replace /wp-content/themes/enfold/header.php file with this one – https://www.dropbox.com/s/r389b5x4ippscyn/header.php?dl=0 to bring up backwards compatibility with older PHP versions.

    Best regards,
    Yigit

    #944164

    I too am having this issue after doing a theme update. I have upgraded my php to 5.6 and still having the issue. Please provide a solution immediately. Thank you in advance.

    UPDATE: I replaced my header.php file with the one provided in the link above and it fixed the issue. My website is now live again.

    Please advise, is this a permanent fix or just a bandaid? I have updated to pvp5.6 and replaced my header.php file. Can I forget about this with confidence?

    website is in the private content below.

    • This reply was modified 6 years, 6 months ago by johnrburke2. Reason: update on situation
    #944183

    Hi,


    @johnrburke2
    yes, you can forget about this with confidence. PHP backwards compatibility will be added in upcoming update :)

    Regards,
    Yigit

    #945172

    Can someone guide me through the process of replacing the header.php file? My tech person isn’t around and my site is still down after changing to version 7.2.

    Thanks!

    #945397

    Hi,


    @Koncium
    It seems to be cache related as your website loads fine on my end at the moment :)
    If you have any questions or issues, please start a new thread under Enfold sub forum

    Best regards,
    Yigit

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.