- This topic has 2 replies, 2 voices, and was last updated 1 week, 1 day ago by .
- You must be logged in to reply to this topic.
My site is having a Critical Error caused by a syntax error within Blackoot Pro.
Here is the error:
WordPress version 6.0.3
Active theme: Blackoot Pro (version 1.2.18)
Current plugin: (version )
PHP version 5.6.40
An error of type E_PARSE was caused in line 871 of the file /public_html/wp-content/themes/blackoot-pro/functions.php. Error message: syntax error, unexpected ‘?’
This specific error on line 871 is caused by a null coalescing operator, which is PHP feature introduced in PHP 7 (https://www.php.net/manual/en/migration70.new-features.php).
PHP 5.6 is no longer supported and stopped receiving security patches in the end of 2018 (see https://www.php.net/eol.php). It will not only cause more and more compatibility issues with recent developments (such as up to date themes and plugins), it also offers a lot less performance compared to newer versions and using it is a security risk for your site!
The theme requires at the very least 7.0 to function properly, though I would recommend at least PHP 7.4 which is the oldest PHP version still supported as of today. The most recent – and most recommended – PHP version is 8.1 : https://www.php.net/supported-versions.php
I therefore strongly suggest that you upgrade your version of PHP, or ask your hosting provider to do so.
Thank you. Site updated to PHP 7.4 and everything seems to be working now.
IceableThemes has been crafting, supporting and updating Premium WordPress Themes since 2013.
We're here to help you get the best our of your site, not to make a quick sale. Our themes were built to last and we're here to stay in the long run.
Any question? Contact us and we'll be glad to help. Need assistance using one of our themes? Hit our support forums and we'll get your issue sorted in no time.