Title: Notice in debug logs
Last modified: June 12, 2026

---

# Notice in debug logs

 *  Resolved [slomeli79](https://wordpress.org/support/users/slomeli79/)
 * (@slomeli79)
 * [1 day, 9 hours ago](https://wordpress.org/support/topic/notice-in-debug-logs/)
 * 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](https://wordpress.org/support/users/technicus/)
 * (@technicus)
 * [9 hours, 48 minutes ago](https://wordpress.org/support/topic/notice-in-debug-logs/#post-18937483)
 * Hi [@slomeli79](https://wordpress.org/support/users/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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnotice-in-debug-logs%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-compress-image-optimizer/assets/icon-256x256.png?rev=
   1803925)
 * [WP Compress - Instant Performance & Speed Optimization](https://wordpress.org/plugins/wp-compress-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-compress-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-compress-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-compress-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-compress-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-compress-image-optimizer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [technicus](https://wordpress.org/support/users/technicus/)
 * Last activity: [9 hours, 48 minutes ago](https://wordpress.org/support/topic/notice-in-debug-logs/#post-18937483)
 * Status: resolved