• I am getting this warning when wp_debug is on:

    Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 303

    Can you please fix this in an upcoming release?

    Many thanks!

    The page I need help with: [log in to see the link]

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

    (@asterbird)

    Update: the debug is off, and I’m still getting this error. I wonder if it’s related to PHP 7.3 update.

    • This reply was modified 5 years, 8 months ago by asterbird.
    Thread Starter asterbird

    (@asterbird)

    Yes, it is related to 7.3:

    If needle is not a string, it is converted to an integer and applied as the ordinal value of a character. This behavior is deprecated as of PHP 7.3.0, and relying on it is highly discouraged. Depending on the intended behavior, the needle should either be explicitly cast to string, or an explicit call to chr() should be performed.

    see reference: https://www.php.net/manual/en/function.strpos.php

    Following.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deprecated function strpos() should be replaced’ is closed to new replies.