Tagged: fatal error, header.php
-
AuthorPosts
-
March 21, 2018 at 5:02 am #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
March 21, 2018 at 8:25 am #930412Hey lhoy,
You should be running at least php5.6.3 for the code to work properly. Please upgrade your php.
Best regards,
VictoriaMarch 22, 2018 at 11:54 am #931172Having 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
March 22, 2018 at 12:15 pm #931196Hi 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,
VictoriaMarch 22, 2018 at 12:29 pm #931207Thanks for your speedy response…
March 22, 2018 at 2:27 pm #931308I’ve managed to update the php version to 7.2 in cpanel and the website is back up…
thanks a lot for the assistance.March 22, 2018 at 2:53 pm #931341Hi!
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,
YigitApril 19, 2018 at 4:40 pm #944164I 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
April 19, 2018 at 5:01 pm #944183Hi,
@johnrburke2 yes, you can forget about this with confidence. PHP backwards compatibility will be added in upcoming update :)Regards,
YigitApril 23, 2018 at 12:19 am #945172Can 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!
April 23, 2018 at 1:54 pm #945397 -
AuthorPosts
- You must be logged in to reply to this topic.