This is related to WordPress Site Health contains critical errors unless CiviCRM is disabled but I'm raising it because
- WordPress 5.5 adds the "active PHP session was detected" issue
- There was no response to RiverRunner's request for the basis for saying the test are inaccurate
I'm currently running WordPress 5.5 and CiviCRM 5.28.2.
The Site Health function in WordPress 5.5 reports 3 three "critical issues" related to the WP REST API.
- An active PHP session was detected - A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.
- The REST API encountered an error - The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages. The REST API request failed due to an error. Error: cURL error 28: Operation timed out after 10005 milliseconds with 0 bytes received (http_request_failed)
- Your site could not complete a loopback request - Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability. The loopback request to your site failed, this means features relying on them are not currently working as expected. Error: cURL error 28: Operation timed out after 10004 milliseconds with 0 bytes received (http_request_failed)
This discussion suggests that the problem is with plugins and themes that need to be updated. By elimination, I found that CiviCRM 5.28.2 was triggering the error.
Can these "critical issues" safely be ignored and, if so, why or under what conditions?