• Resolved slomeli79

    (@slomeli79)


    When I audit sites by temporarily enabling debug.log logging via the wp-config constants, I am finding dozens of the following notice on my sites with WPC installed:

    [12-Jun-2026 20:20:40 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ [redacted] /public_html/wp-content/plugins/wp-compress-image-optimizer/traits/url_key.php on line 71

    Line 71 in the file is: $url = rtrim($url, '?');

    AI tells me this can be fixed by changing it to $url = rtrim( (string) $url, '?' ); which I have tested and found to make the notices stop.

    Can you look into that and make the change with the next update, please? It’s minor, but would save people like me LOTS of time by not making us chase little things on our clients’ sites that could be fixed at the source with a few keystrokes.

Viewing 1 replies (of 1 total)
  • Plugin Support technicus

    (@technicus)

    Hi @slomeli79 ,

    thanks for the feedback, we are working currently on major release which has various improvements including that one. It will be patched soon 🙂

    thank you for your support and patience!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.