I have been having server 500 errors on 3 separate WordPress websites over the last while. (The problem BTW does seems to be related to the wordpress_logged_in***** cookie because deleting that always solves the problem temporarily) but this is not really my question …
In the course of investigating this issue I turned on debugging and logging on two of he websites and I got this message in each site
[07-Jul-2017 12:21:51 UTC]
WP_Community_Events::maybe_log_events_response: Valid response
- Failed to open stream: HTTP request failed! in \wamp\www\wordpress\wp-includes\class-http.php on line 929
- Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)
- Where should I tell WordPress where error_log messages should be written?
- Hide php Notices in Dashboard
- How to fix Uninitialized string offset: error on a checkbox in WP Settings API
- add_sub_menu page() to be replaced by add_theme_page()
Does anybody know what it might be referring to. The IP address is local, and it’s from MY IP provider, but it’s not my IP, or the IP of my client, plus it’s the same IP on both sites ( which have no connection except me )
I couldn’t find much information but this page https://developer.wordpress.org/reference/classes/wp_community_events/maybe_log_events_response/ seems to suggest that it might not be an error. Could anyone confirm this?
The log message says “Valid response received” and the response code in the JSON object is 200, which is typically a response for a success request. I think it is not an error. Note that the docs for
WP_Community_Events::maybe_log_events_response() says “All responses are logged when debugging, even if they’re not WP_Errors”. I understand that if
WP_DEBUG is on, then all responses are logged, even when success.
The IP, according with the code comments, usually is the same that made the request. In some cases it can be different (for example when the IP is private). The IP used in the request is the client IP converted to a network ID in order no anonymize the ID. See
Update: after viewing the source code, all responses are logged when
WP_DEBUG_LOG is on, not just