Deprecated: str_contains(): Passing null to parameter #1 ($haystack)

Hi
I was checking my affiliate page and noticed that it shows the following by default.
I have replaced my website info with XXXXXXXX in the below code

Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/XXXXXXX/public_html/wp-includes/shortcodes.php on line 246
https://XXXXXXXXXXXX/?special=3

Here is a screenshot of the exact area: https://www.dropbox.com/s/d1n884jcjza91aw/Screenshot%202023-10-29%2011.27.30.png

It does show the correct affiliate link when I add a URL, but the default when I load the page it shows the above.


Comments

3 responses to “Deprecated: str_contains(): Passing null to parameter #1 ($haystack)”

  1. Thanks for the follow-up, note taken for a fix on the next update of the plugin.

    Kind regards,
    George

  2. Hi George

    PHP version: 8.1.23

  3. Hi Michael,

    Thanks for mentioning the issue, I’ve taken a note on this for further reviewing.
    Can you also please mention the PHP version currently running on your site?

    Kind regards,
    George

Share