• Resolved wesleyli

    (@wesleyli)


    Hello.

    After the website auto updated to version 1.2.25, it has the following error:

    PHP Fatal error: Uncaught Error: Call to undefined function str_contains()
    in /wp-content/plugins/iq-block-country/iq-block-country.php on line 110

    We are going to downgrade to the previous version to make the website works first, but would like to let you know.

    Thank you.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pascal

    (@iqpascal)

    Alrighty then, my bad for using a function that is only available in PHP 8.x

    Although anyone still running stuff on PHP 7 (or prior) should really look into this as any version of PHP below 8.1 isn’t getting security updates anymore. For instance in the case of PHP 7.4 it hasn’t been supported anymore on security fixes since 2023 (so over 2.5 years now).

    Plugin Author Pascal

    (@iqpascal)

    // “Fixed” in 1.2.26 btw by using a function still available in PHP 8 as well as PHP 7

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Fatal error after update.’ is closed to new replies.