Conversation
supportHello. 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.
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).
// “Fixed” in 1.2.26 btw by using a function still available in PHP 8 as well as PHP 7
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).
// “Fixed” in 1.2.26 btw by using a function still available in PHP 8 as well as PHP 7