- This topic has 14 replies, 3 voices, and was last updated 6 years, 4 months ago by
danhotchkiss.
-
AuthorPosts
-
November 18, 2019 at 11:36 am #1066778
danhotchkiss
I am running GP 2.3.2 under PHP 5.6.40. I contacted my ISP, Bluehost, about this error message and they said they tried to update me to PHP 7.x, but my theme is not compatible with current versions of PHP. What should I do?
November 18, 2019 at 11:46 am #1066786Leo
StaffCustomer SupportHi there,
Not sure where your host got that info from but GP is always compatible with the latest version of PHP and so definitely upgrade.
Let me know if this helps 🙂
November 18, 2019 at 11:51 am #1066790danhotchkiss
Strange. I’ll try again with Bluehost, but they were quite certain it was “my theme” causing the problem. Perhaps it’s another theme that is functioning elsewhere under my Bluehost account.
November 18, 2019 at 11:53 am #1066792Leo
StaffCustomer SupportSounds good 🙂
November 19, 2019 at 9:42 am #1067633danhotchkiss
I’ve spent hours on chat with Bluehost, and am stumped. I have four sites, all on the same Bluehost account and all running identical current versions of WordPress and GeneratePress. Two sites update to PHP 7.2 just fine, but two cannot update past PHP 5.6 without creating 500 errors when viewed.
If it’s helpful, here are the sites that update fine: danhotchkiss.com, congregationalconsulting.org. Here are the ones that do not: calvinhotchkiss.com, solsticesingers.org.
Any ideas what I can do next to avoid getting stuck with old versions of PHP forever?
Thanks,
DanNovember 19, 2019 at 10:43 am #1067677David
StaffCustomer SupportHi there,
if the site is 500’ing then the host should be able to provide an error_log which should give some indication as to what is causing it. I would begin with looking at any ‘old’ plugins.
November 19, 2019 at 10:58 am #1067684danhotchkiss
Great advice, thank you!
November 19, 2019 at 11:24 am #1067704David
StaffCustomer SupportYou’re welcome
December 12, 2019 at 8:35 am #1102325danhotchkiss
Just a follow-up for the possible benefit of others. Bluehost insists that they cannot update me beyond PHP 5.6 because of an incompatible code in a theme or plugin. I’ve inactivated all plugins, tested using the PHP Compatibility Checker plugin (which lists the GeneratePress plugin compatibility with PHP 7 as “unknown” because it is too large to scan), and spent hours on chat with Bluehost.
No result! I’ve reverted to PHP 5.6 and decided to live with it.
Dan
December 12, 2019 at 8:58 am #1102342David
StaffCustomer SupportGP and GPP is 7.x compatible as you can tell from your other sites.
If you go to Dashboard > Tools > Site Health do any issues show up there? Such as outdated plugins?Bluehost should been able to pinpoint the cause of the 500 error……
December 12, 2019 at 9:34 am #1102363danhotchkiss
Thanks for this suggestion!
In Tools->Site Health I see a warning that my PHP version is 5.6.40 and requires an update. In addition, I see:
A suggestion to remove inactive plugins.
A suggestion to remove inactive themes.
A warning that “The optional module, libsodium, is not installed, or has been disabled.”Are any of these likely to be part of the problem? I know how to follow the first two, but have no idea how to follow the third.
Dan
December 12, 2019 at 9:52 am #1102389David
StaffCustomer SupportI would begin with removing the inactive plugins and themes as they may be hiding the culprit.
The libsodium module is a server side installation – so your host would be responsible for handling that ….December 13, 2019 at 8:26 am #1103393danhotchkiss
Happy ending, after many hours spent. I finally got a chat tech at Bluehost who could fix the problem by adjusting the .htaccess code in each site. For what it may be worth to others, here is the full text of one .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress# php — BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php — END cPanel-generated handler, do not editDecember 13, 2019 at 12:05 pm #1103627David
StaffCustomer SupportGlad you found a tech guy who knew what he was doing 🙂
December 13, 2019 at 12:40 pm #1103652danhotchkiss
Gal. And yes.
-
AuthorPosts
- You must be logged in to reply to this topic.