Nuisance debug log messages
-
Getting thousands of debug log warnings per day like:
[22-Mar-2023 03:28:13 UTC] PHP Warning: Attempt to read property "ID" on null in ... plugins/restrict-content/core/includes/content-filters.php on line 24
This is on URIs that fail my authentication and get redirected to login page. I fixed with this at line 24:
if ( empty( $post ) ) { return $content; }
The content I’m getting back is a short HTML link provided by my Privacy ISP iuBenda.. probably from a shortcode implemented by WP Code.
Please add a check like this to the code base to silence these warnings.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Nuisance debug log messages’ is closed to new replies.