Answers.Body: <p>Based on <a href="https://civicrm.stackexchange.com/users/2629/andy-burns">Mr. Burns</a>' comforting response above, and <a href="https://wearnhardt.com/2019/05/how-to-disable-tests-in-the-wordpress-site-health-check-tool/" rel="noreferrer">Mr. Earnhardt's instruction</a> on how to selectively remove tests, I added the following code to the functions.php file in my WordPress theme:</p>
  
  <pre><code>function prefix_remove_rest_availability( $tests ) {
      unset( $tests['direct']['rest_availability'] );
      return $tests;
  }
  add_filter( 'site_status_tests', 'prefix_remove_rest_availability' );
  
  function prefix_remove_loopback_requests( $tests ) {
      unset( $tests['async']['loopback_requests'] );
      return $tests;
  }
  add_filter( 'site_status_tests', 'prefix_remove_loopback_requests' );
  </code></pre>
  
  <p>Thank you, Gentlemen! Fixed!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-28T12:32:25.797Z
Answers.Text: Dia, thanks, I used your solution as basis for a plugin https://lab.civicrm.org/partners/civicoop/wordpress/suppresses-civicrm-checks . The difference is that it also surpresses the 'php_sessions' test.
Answers.UserDisplayName: Kainuk - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-02T02:21:32.663Z
Answers.LastActivityDate: 2020-04-02T02:21:32.663Z
Answers.UserDisplayName: Día
Answers.Body: <p>Do not worry, the Health Check loopbacks and REST API checks are inaccurate. Nothing is actually wrong. You can install <a href="https://develop.tadpole.cc/plugins/disable-health-check" rel="noreferrer">Disable Health Check</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-06T04:57:52.223Z
Answers.Text: Could I ask what your basis is for saying they are inaccurate? So far, I've found nothing online that indicates this, or why CiviCRM causes the cURL error 28 in Site Health. I'd really prefer not to disable Site Health checks. Thanks!
Answers.UserDisplayName: RiverRunner
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-09T12:08:35.467Z
Answers.Text: @RiverRunner see https://lab.civicrm.org/dev/wordpress/-/issues/32
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-10T15:30:21.870Z
Answers.Text: @WilliamMortada Ah, I see. Thanks for the link! That sheds some good light on the issue.
Answers.UserDisplayName: RiverRunner
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-02T00:56:44.253Z
Answers.LastActivityDate: 2020-04-02T00:56:44.253Z
Answers.UserDisplayName: Andy Burns
Body: <p>I uninstalled all WordPress Plugins (except CiviCRM). Then, I uninstalled all CiviCRM Extensions and Components.</p>
  
  <p>Only when I disable the CiviCRM plugin does this error disappear:</p>
  
  <p><a href="https://i.sstatic.net/p0Iuq.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/p0Iuq.png" alt="Site Health errors caused by CiviCRM"></a></p>
  
  <p>WordPress 5.4</p>
  
  <p>CiviCRM 5.22.1 / 5.23.4</p>
  
  <hr>
  
  <pre>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 10000 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 10000 milliseconds with 0 bytes received (http_request_failed)</pre>
  
Tags: <wordpress><error>
Title: WordPress Site Health contains critical errors unless CiviCRM is disabled
ThreadText: # WordPress Site Health contains critical errors unless CiviCRM is disabled
  
  (Asked by: username_0 on 2020-04-01)
  
  I uninstalled all WordPress Plugins (except CiviCRM). Then, I uninstalled all CiviCRM Extensions and Components.
  Only when I disable the CiviCRM plugin does this error disappear:
  
  WordPress 5.4
  CiviCRM 5.22.1 / 5.23.4
  
  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 10000 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 10000 milliseconds with 0 bytes received (http_request_failed)
  
  **Tags:** wordpress, error
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2020-04-02. Score: 6
  
  Based on Mr. Burns' comforting response above, and Mr. Earnhardt's instruction on how to selectively remove tests, I added the following code to the functions.php file in my WordPress theme:
  function prefix_remove_rest_availability( $tests ) {
      unset( $tests['direct']['rest_availability'] );
      return $tests;
  }
  add_filter( 'site_status_tests', 'prefix_remove_rest_availability' );
  
  function prefix_remove_loopback_requests( $tests ) {
      unset( $tests['async']['loopback_requests'] );
      return $tests;
  }
  add_filter( 'site_status_tests', 'prefix_remove_loopback_requests' );
  
  Thank you, Gentlemen! Fixed!
  
  > **Comments:**
  > **username_1**: Dia, thanks, I used your solution as basis for a plugin https://lab.civicrm.org/partners/civicoop/wordpress/suppresses-civicrm-checks . The difference is that it also surpresses the 'php_sessions' test.  
  
  ---
  
  ### Answer by username_2 on 2020-04-02. Score: 5
  
  Do not worry, the Health Check loopbacks and REST API checks are inaccurate. Nothing is actually wrong. You can install [Disable Health Check](https://develop.tadpole.cc/plugins/disable-health-check).
  
  > **Comments:**
  > **username_3**: Could I ask what your basis is for saying they are inaccurate? So far, I've found nothing online that indicates this, or why CiviCRM causes the cURL error 28 in Site Health. I'd really prefer not to disable Site Health checks. Thanks!  
  > **username_4**: @username_3 see https://lab.civicrm.org/dev/wordpress/-/issues/32  
  > **username_3**: @WilliamMortada Ah, I see. Thanks for the link! That sheds some good light on the issue.  
  
  ---
  
  