Hello. I just updated CP to v. 2. I noted my host has PHP 7.4. Should I update to 8.x? I have options to choose 8.0, 8.1 or 8.2. Which is best? Is there a downside to going to PHP 8.x?
is totally up to you, since CP 2.0’s minimum PHP version is 7.4. It all depends on which theme/plugins you are using, some will recommend 8.0 or 8.1 etc.
I got an error message for the CP theme and told to update php.
if you are using the ClassicPress default theme, then yes, u need to update to 8.0
Am not using it at the moment, but did want to see it. Figured maybe other themes might also require it.
OK, here goes …
Thanks for your kind replies.
Updated, tried all three 8.x options and got this:
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting ClassicPress.
Could it be a problem with the theme I’m using?
Notification says it’s Subscribe2 plugin.
possibility, you can rename the subscribe2 and the site should load properly, then delete the plugin
Hi @zudn, I am using Subscribe2 plugin on a CP site running PHP 8.2. So that shouldn’t be the problem.
Though I’ve pinged @MattyRob as an FYI if there is another issue.
Please try this before updating PHP versions:
- Rollback to 7.4
- Clear cache and disable caching plugin
- Disable any and all security plugins
- Clear browser cache, close browser, then try updating to higher PHP version.
Cheers
Hi,
While ClassicPress may still support PHP 7.4, I highly recommend at your earliest opportunity (make sure plugins and themes are upgrade and/or compatible) making the move to PHP 8.x.
Many of the top LTS Linux releases support at least 8.2 out of the box (with backports from newer versions to address security and stabilities issues).
*** PHP 7.4 has been End of Life (EOL) since Nov 2022. Therefore unless you have someone doing backports, it is not considered safe for production. ***
You’ve had problems with Subscribe2 before:
It would help here to know which version you are using, what version number and ideally an error message.
Version 11.9.
The error message I got when I updated to PHP 8.2 was what I inserted above:
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting ClassicPress.
And the email I got about the error included this:
ClassicPress caught an error with one of your plugins, Subscribe2 for ClassicPress.
First, visit your website (https://cristaos.org/) and check for any visible issues. Next, visit the page where the error was caught (Acessar ‹ Cristãos — ClassicPress) and check for any visible issues.
As mentioned above, make sure you address compatibility issues with “plugins” and “theme” before committing to PHP 8.x.
There are breaking changes between 7.x and 8.x so the plugins and theme need to be compatible with 8.x.
Frequently maintained plugins and themes typically will get updated, though some of them may still be stuck in 7.x limbo.
From what you’ve mentioned, it looks like a plugin or theme you are using may not yet be fully compatible with 8.x.
Subscribe2-for-ClassicPress 11.9.1 was released in October and should have contained a fix for an activation error however it seems I missed pushing some change to GitHub - bear with me and I’ll push a new version correctly this time.
Workaround for now is to deactivate Subscribe2-for-ClassicPress` and wait for the updated version, update then active the newer version.
11.9.2 should be released and resolve this issue. I think 11.9.1 would have worked too but the commit history was no helpful.
How do I install the upgrade? Delete the prior version and install the new one? I’ve downloaded 11.9.2 from github.
If you can’t automatically update from the Plugin page in admin then grab the zip file from GitHub and upload it. The corse code will compare some version details for you and then you can check and update.
I activated the plugin and it turned on the update link.
I updated PHP to 8.2 and everything seems to work.
The subscribe plugin seems to be working again. Nobody could sign up through it before. Now to think about putting the emails addresses back in that got erased last year.
Thanks.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.