• Hey Milan,

    Working with this plugin i see this warning below related to call ltrim function with a null param.

    Deprecated ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in ~/wp-includes/formatting.php on line 4392.

    This happens when session time out and login modal popup.

    plugin v 4.5
    php v 8.1
    WP v 6.3

    Don’t know if you are aware or not, just wanted to tell you just in case.

    Thanks and cheers,

    Maxi

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    Thanks for reporting. But, I can’t reproduce this, because I am not sure how it happens on your end. Do you have a way for me to reproduce it, what is triggering it, is it on every page or not?

    Thread Starter Maximiliano Rico

    (@m4x1)

    Hey Milan,

    I can’t reproduce either on my side, i was wrong, apologize. I’ll put as resolved but feel free to delete since it doesn’t make sense at all. Apologize again.

    Maxi

    Plugin Author Milan Petrovic

    (@gdragon)

    As it turns out, it is possible that this is the cause, but I am not sure why. The function throwing error is esc_url, and my plugin uses it in few places. The only reason for it to fail is if the WordPress returns invalid URL for the attachment. I will test that, and add the extra check to make sure the URL is correct.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘warning in v 4.5 with PHP 8.1 and WP 6.3’ is closed to new replies.