• Resolved marcusquinn

    (@surferking)


    I realise these can be “ignored”, but they do litter logs, and there is a speed cost from the log-writing on each page load.

    Deprecated	strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated	
    wp-includes/functions.php:7241
    1	Plugin: mainwp-child
    Deprecated	str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated	
    wp-includes/functions.php:2187
    1	Plugin: mainwp-child

    Otherwise happy, but hoping this ticket will get the code update higher up the list, and with GPT, almost no reason not to fix quick nowadays.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Bojan Katusic

    (@bojankatusic)

    Hi @surferking

    We couldn’t reproduce this Deprecated error on our test Dashboards.

    Can you please open a private help desk ticket so we can look into it further?
    https://mainwp.com/my-account/get-support/

    Thread Starter marcusquinn

    (@surferking)

    Looks like it might be fixed now. Will report back if anything new. Thanks for checking!

    Plugin Support Bojan Katusic

    (@bojankatusic)

    Hi?@surferking

    It’s been some time since we heard back from you. I’ll assume that the issue has been fixed and mark the thread as resolved.

    If you have any further questions, please start a new thread.

    Hi,
    Weirdly enough, I got the same error as Marcus.
    Is there any way I can help you guys, by providing more info about my settings?
    (With PHP 8.0 there is no error, only 8.1 and 8.2, WP debug ON)

    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vhosts/***.co.uk/httpdocs/wp-includes/functions.php on line 7241

    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/***.co.uk/httpdocs/wp-includes/functions.php on line 2187

    Thank you.

    • This reply was modified 10 months, 1 week ago by tfrank77.
    Plugin Support Bojan Katusic

    (@bojankatusic)

    Hey @tfrank77

    I couldn’t reproduce these PHP warning messages with PHP 8.1 and 8.2.

    Would you mind opening a private Help Desk ticket so we can collect some additional information & investigate further?
    https://mainwp.com/my-account/get-support/

    tfrank77

    (@tfrank77)

    I just did. Thank you.

    Plugin Support Bojan Katusic

    (@bojankatusic)

    Just to provide an update on this –

    @tfrank77 has confirmed that the fix we provided in the Help Desk ticket is good.

    It will be included in the next version of the MainWP Child plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Depreciated warnings filling logs’ is closed to new replies.