# WP Sitehealth, cURL error 28

**URL:** https://discourse.roots.io/t/wp-sitehealth-curl-error-28/17957
**Category:** trellis
**Created:** 2020-04-02T16:15:27Z
**Posts:** 5

## Post 1 by @adleviton — 2020-04-02T16:15:27Z

I’ve been doing a lot of searching, but can’t seem to figure out how to solve this. Is it trellis related?

Under the relatively new “Site Health” area in Wordpress, I keep getting two errors, which I assume are related:

```
The REST API request failed due to an error.
Error: [] cURL error 28: Operation timed out after 30002 milliseconds with 0 bytes received

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 30001 milliseconds with 0 bytes received
```

Can anyone point me in the right direction? I’m also using CloudFlare.

---

## Post 2 by @adleviton — 2020-04-02T22:19:26Z

Turns out my issues with Site Health were caused by using PHP sessions. All I needed to so was use the ‘read\_and\_close’ option like so:

` session_start(['read_and_close' => true]);`

much thanks to this thread:

> **[The loopback request to your site failed… - page 2 | WordPress.org](https://wordpress.org/support/topic/the-loopback-request-to-your-site-failed-4/page/2/)**
>
> [This thread is closed.] After months of not being able to update php files via WP’s theme editor, I decided to have another look and did a…

---

## Post 3 by @ben — 2020-04-06T02:17:04Z

Interesting - I just did a fresh Trellis install today and didn’t notice this in the site health area :thinking:

Thank you for sharing the solution

---

## Post 4 by @adleviton — 2020-04-06T12:50:19Z

You won’t have an issue with a fresh install. It’s only when your theme or plugin is using **open** PHP sessions … sessions that don’t explicitly call session\_write\_close(). Not that I worry about WP site health, but I thought if it’s broken here, it might be broken somewhere else. Something to watch out for.

---

## Post 5 by @adleviton — 2020-04-06T21:10:57Z

Another thing I just discovered: It’s possible to both add and remove tests for WP Site Health:

> **[Site Health Check in 5.2](https://make.wordpress.org/core/2019/04/25/site-health-check-in-5-2/)**
>
> WordPress 5.2 will include two new pages in the admin interface to help end users to self-service their site through common configuration issues and other elements that go along with having a healt…

---

## Post 6 by @system — 2020-05-14T16:15:29Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
