• Resolved dimal

    (@dimalifragis)


    Hi.

    Several of those with PHP 8.1:

    [06-Jul-2023 18:58:41 UTC] PHP Deprecated: Return type of Twig\Markup::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Markup.php on line 38

    [06-Jul-2023 18:58:13 UTC] PHP Deprecated: mb_strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/wp-content/plugins/wp-simple-firewall/src/lib/vendor/fernleafsystems/zxcvbn-php/src/Matchers/SpatialMatch.php on line 184

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jelena

    (@jmisic)

    Hi,

    Thanks for sharing this with us.

    The messages that start with this:
    Deprecated: Return type of

    These aren’t errors. They’re deprecation notices. You probably shouldn’t be logging these on a production site. They’re not a problem and they don’t cause other errors. You can ignore these completely.

    Shield has some PHP libraries that give deprecation notices because we have to support PHP ?7.2.5+. However, these deprecations will be removed in our next release.

    Regards,

    Jelena

    Thread Starter dimal

    (@dimalifragis)

    Hi, i never wrote that those are errors. I know what they are.

    I always enable debug to a log for 48 hours when i do some major updates or upgrading PHP versions.

    Thanks

    Plugin Author Paul

    (@paultgoodchild)

    @dimalifragis there was no statement either way about you wrote or what you know. We stated they weren’t errors. Since this is a public forums, and our discussion is viewed by folk with varying levels of technical ability and experience, we don’t make any assumption about what you or anyone else “knows”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 8.1 – PHP Deprecated’ is closed to new replies.