Hi,
Does anyone know if X theme works with the latest version of PHP? Anything above version 7.1.33 breaks my site.
Thanks
Hello Amy,
Thanks for writing in! The X theme works up to PHP 7.4. You can check out the compatibility on this document:
By the way, please make sure that you are up to date. Our latest versions are:
- X theme
7.2.3
- Cornerstone
4.2.3
- WordPress
5.3.2
or higher
This latest release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/).
After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.
Please let us know how it goes.
Hi, Thanks for your reply. I have only just started using X theme last month so I have double checked and all my versions are fully up to date. I’ve also cleared my cache but once again no change.
Th error I’m getting is when I click on a page to edit(doesn’t matter which page) I get two warnings -
- Count() Parameter must be an array or an object that implements Countable in …wp-includes/post-template.php in line 319.
- Cannot modify header information - headers already sent by ( output started by…wp-includes/post template.php:319 in …wp-admin/admn-header.php in line 9.
The only thing that has changed since creating the pages is that siteground automatically updated the PHP to 7.4 from 7.2. The only way to get rid of the warnings is to change back to version 7.2.
Thanks
Hi Amy,
Unfortunately, the warning does not provide any details about the real cause, but I assume this is version related and we’ll have to investigate it. For the meantime, please make sure to stay on 7.2 for now.
Or you can also disable the warnings if you prefer 7.4, it should be okay since they aren’t errors https://www.greengeeks.com/tutorials/article/disable-wordpress-php-error-messages/. This does not fix it, but only hides which is just fine for warnings.
Thanks!
Hi,
Thanks for getting back to me. I’ll stick to 7.2 for now as I’ve no need for 7.4 at the moment but will come back to your advice about disabling warnings if I change my mind
Cheers!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.