3

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:

Site Health errors caused by CiviCRM

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)

2 Answers 2

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!

1
5

Do not worry, the Health Check loopbacks and REST API checks are inaccurate. Nothing is actually wrong. You can install Disable Health Check.

3
  • 1
    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! Commented Jun 6, 2020 at 4:57
  • @RiverRunner see lab.civicrm.org/dev/wordpress/-/issues/32 Commented Jul 9, 2021 at 12:08
  • @WilliamMortada Ah, I see. Thanks for the link! That sheds some good light on the issue. Commented Jul 10, 2021 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.