• please fix following PHP8.1 warnings
    str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in functions.php

    https://core.trac.ww.wp.xz.cn/ticket/57581#comment:1

    The function used wp_normalize_path() is clearly indicated as only accepting strings, so IMO, yes, this should be fixed by the plugins which are doing it wrong.

    strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in functions.php

    https://core.trac.ww.wp.xz.cn/ticket/57580#comment:1The function used is clearly indicated as only accepting strings, so IMO, yes, this should be fixed by the plugins which are doing it wrong

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jarko Piironen

    (@ipajen)

    To reproduce: set ‘WP_DEBUG_DISPLAY’ to true and just enable the ninja forms plug-in in WordPress and the depreciation warnings will show when using PHP 8.1

    Have the same problem.
    Looking forward to a maintenance release to fix this bug.

    Greetings
    derRALF

    Plugin Support Quay Morgan

    (@quaymorgan)

    Hi! So sorry for the long response time here. Hoping you’ve already found and reached out to us in support here, but if not please do so that we can properly log and remedy this!

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

The topic ‘PHP 8.1 str_replace() and strpos()’ is closed to new replies.