-
AuthorPosts
-
March 15, 2018 at 2:53 pm #927353
Hi
Please, I was updating Enfold at the last version available 4.2.6.
Something went wrong. Now the website hang with error HTTP 500 maybe!
The website is http://www.pmtsi.com
Please, can you help me to see what happened.
ThanksMarch 15, 2018 at 3:27 pm #927386Hey,
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.
Cheers!
YigitMarch 15, 2018 at 3:40 pm #927403I’ve substituted the file header.php but it doesn’t work well.
It lose formatting so it is impracticable.
I need ask upgrade of PHP, but are you sure it works?
Thanks
VitoMarch 15, 2018 at 3:41 pm #927406Hi!
Could you please share FTP and WP admin logins here privately so we can look into it? :)
Cheers!
YigitMarch 15, 2018 at 3:46 pm #927409Here they are
March 15, 2018 at 4:00 pm #927419Hi All,
Same for me though I used PHP 7.0. Now I’ve upgraded to PHP 7.1 and tried – the same error HTTP 500.In the error.log I can see this string:
newartcommunity.ru [Thu Mar 15 16:57:52 2018] [error] [pid 21244] mod_cgi.c(214): [client 109.166.244.254:59448] AH01215: PHP Fatal error: Can’t use function return value in write context in /home/p/pinguin/newartcommunity.ru/public_html/wp-content/themes/enfold/header.php on line 6
newartcommunity.ru [Thu Mar 15 16:58:28 2018] [error] [pid 28765] mod_cgi.c(214): [client 52.86.110.193:33752] AH01215: PHP Fatal error: Can’t use function return value in write context in /home/p/pinguin/newartcommunity.ru/public_html/wp-content/themes/enfold/header.php on line 6March 15, 2018 at 4:07 pm #927422What happen if I upload the old Header.php ??? I’ve one copy saved.
ThanksMarch 15, 2018 at 4:13 pm #927437From my perspective this is not correct approach to replace header.php by another one… I believe this replacement should be done after each theme update as it will be replaced by the file incorporated into the theme…
Additionally it seems like it is not connected to php version, at least in my case, as I used the latest one…
- This reply was modified 6 years, 9 months ago by Alex.
March 15, 2018 at 4:19 pm #927446So, please,
How to solve the problem and reactivate the service.
Remember I’ve the online training stopped and i a short time I start to lose clients.
Can we install an old version of Enfold? or what?March 15, 2018 at 4:21 pm #927448Hey!
I removed “header-4-2-6-error.php” file and flushed browser cache and now it loads fine on my end. Attached a screenshot in private content field.
Please review your website :)Cheers!
YigitMarch 15, 2018 at 4:23 pm #927452Hi!
@pinguinbird header.php we provided will be included in upcoming update. Also, our devs and many users who are using PHP versions older than 5.6 confirmed that issue is definitely related to PHP version.Cheers!
YigitMarch 15, 2018 at 4:24 pm #927456Thanks
I see the website up now.
What was the problem?
I’ve asked the provider to upgrade PHP to version 7.x. Is it still necessary?
and the web site will stay up?
I’ve a second website: http://www.tenstep.it to be updated. Ho can I avoid this inconvenient? Or I will not update at all.
thanks
VitoMarch 15, 2018 at 4:29 pm #927460Hi Vito,
Please overwrite enfold/header.php file with the one we provided and do not keep the old version of header.php file.
Now that you have replaced header.php file, you can continue using the theme on your current PHP version however we would recommend you to upgrade it. Please see this post as well – https://kinsta.com/blog/php-7-hhvm-benchmarks/Cheers!
YigitMarch 15, 2018 at 4:44 pm #927476Hi Yigit,
Indeed, I’ve changed PHP version on control panel of my hosting provider to 7.1, but HealthChecker plugin says that PHP version is 5.3.29. Maybe something needs to be changed in .htaccess?… Or maybe I need to contact my hosting provider support team… Please, could you advice?Thank you in advance.
March 15, 2018 at 5:03 pm #927484Hi!
@pinguinbird It would be the best if you contacted your hosting provider and get the confirmation from them :)Regards,
YigitMarch 15, 2018 at 5:04 pm #927488Ok, will do :) Thanks Yigit.
March 15, 2018 at 5:11 pm #927491Hi,
You are welcome Alex! :)
We will keep the thread open and will wait to hear from the creator of this thread. If you have any other questions or issues, please feel free to start a new thread under Enfold sub forum.
Best regards,
YigitMarch 15, 2018 at 5:23 pm #927497Dear Yigit,
I was happy for your intervention. I’ve seen the website up, but now it is newly down with HTTP ERROR 500.
What is happening?March 15, 2018 at 5:31 pm #927501Hi,
Seems like issue was related to “OSSprotect.php” file inside wp-content/plugins/ folder. I deleted it and site started working again.
I zipped that file and placed inside httpsdocs folder. If it is a must use plugin for you, please contact plugin authors. They may need to update their plugin :)Regards,
YigitMarch 15, 2018 at 7:48 pm #927618Hi yigit,
that plugin is very important, as it is a plugin used to protect folders, and manage login and signup.
It is the core of this website.
I need reactivate soon. But, let me know what is not comppliant, as before it worked fine?
I an invlve the supplier, but what can I say them?
Thanks
VitoMarch 15, 2018 at 8:05 pm #927629Hi Vito,
I believe their plugin is not PHP 7.x compatible yet.
OSSprotect.php file i removed from httpdocs/wp-content/plugins is zipped in httpdocs folder. Plugin authors can unzip it and move it back inside plugins folder to see the issueBest regards,
YigitMarch 16, 2018 at 9:46 am #927997Good morning Yigit,
My provider confirmed that PHP level was upgraded to 7.1.15 level.
I’ve asked the plugin supplyer of OSSprotect to align it with this level.
Please, as when I upgrade ENFOLD I need upgrade my FOOTER.PHP ( and HEADER.PHP also, but it it less important), may I substitute the FOOTER.HPH with the old one, or I need start from the one of 4.2.6?
I’m afraid to change it, but I need add my data in the footer as I add in the private area.
Thanks
Regards
Vito- This reply was modified 6 years, 9 months ago by pmtsi.
March 19, 2018 at 12:42 pm #929029I’ve updated the FOOTER.PHP – it works fine – thanks.
I’m waiting the OSS provider for the updating to the Plugin. Now the website is partially functioning.
Users cannot access all page protected.
Please, as I’ve a second website (www.tenstep.it), may I upgrade the ENFOLD without problems?
thanks and regards
VitoMarch 19, 2018 at 11:54 pm #929428Hi Vito,
Glad it is working fine!
Yes, you can update it as well. Please make sure you are using PHP 7.x on it as well. To be on the safe side, you can create a testing environment – https://kriesi.at/documentation/enfold/move-from-a-local-installation-to-a-live-server/ and update the theme there firstly.If you run into any issues, please share FTP and WP admin logins for your second website and we will gladly look into it :)
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.