• Resolved ideasydesarrollos

    (@ideasydesarrollos)


    Plugin requirements states that minimum PHP version is 7.4 but the last plugin version (4.2.0) uses two calls to the function str_contains() (in the settings.php file) that is PHP 8.0 only, breaking my site (and assume many others…)

    A simple patch changing str_contains() to strpos() in the mentioned file fixes the issue. Please, consider doing so in your code, or update the requirements to be PHP 8.0.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ideasydesarrollos

    (@ideasydesarrollos)

    There is also another issue, although this one may not be possible to be solved:

    The last version of the plugin (4.2.0) calls the replace_with_placeholders() CF7 function, that is not available in all CF7’s versions, so it would be nice to check/set a CF7-plugin minimum version requirement (I don’t know if the version of a dependent plugin can be checked…).

    The CF7 plugin only updates to the last compatible version with your current WordPress installation, so you may be stuck with an older one that may not be compatible with this plugin.

    I fixed both issues installing the previous version (4.1.0).

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Thank you for reporting these errors! They have both been addressed in version 4.2.1 released today ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘str_contains() is PHP 8.0 only – broken compatibility’ is closed to new replies.