Blackoot Pro Syntax Error Causing Site Wide Critical Error

Homepage Forums Pro Support Forum Blackoot Pro Blackoot Pro Support Blackoot Pro Syntax Error Causing Site Wide Critical Error

Blackoot Pro Syntax Error Causing Site Wide Critical Error
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25644
    Reply to: Blackoot Pro Support
    Ishikowa
    Participant

    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

    Error Details
    =============
    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 ‘?’

    #25646
    Reply to: Blackoot Pro Syntax Error Causing Site Wide Critical Error
    iceable
    Keymaster
    Support
    Happy with my help?
    Buy me a beer!

    Hello,

    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.

    #25647
    Reply to: Blackoot Pro Syntax Error Causing Site Wide Critical Error
    Ishikowa
    Participant

    Thank you. Site updated to PHP 7.4 and everything seems to be working now.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

256 bit SSL. 100% secure transactions and data encryption
PayPal Verified
Secured by PayPal
Secure Credit Card payments powered by Stripe