• Resolved ebai4

    (@ebai4)


    After updating to PHP 8.1.9 I’m getting this deprecation:

    PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in xxxxxxxxxx\plugins\advanced-access-manager\application\Service\Core.php on line 207

    WP 6.2

    Php 8.1.9

Viewing 1 replies (of 1 total)
  • Plugin Author AAM Plugin

    (@vasyltech)

    Hello @ebai4,

    Thank you for the feedback. We will adjust application on our end to avoid this type of issue, though, it appears that one of your plugins or theme misfiring and corrupts capabilities.

    To expand – the WP core filter map_meta_cap triggers by passing the array of capabilities that eventually to decision if user can do certain thing. The array always contains list of capabilities, however, in your case one of them is null. This indicates that something is not working as expected.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type strin’ is closed to new replies.