• When I have this plugin enabled, the WordPress Health Check reports:

    The REST API encountered an error Performance
    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 10001 milliseconds with 0 bytes received

    Your site could not complete a loopback request Performance
    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 encountered: (0) cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received

    Turning off the plugin and the problems go away. Is it a false positive, or is this plugin doing something with loopbacks?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Damian

    (@timersys)

    Hi @mikmikmik,
    no, the plugin is not using loopbacks. I just tried locally and on a clean site and it works fine on my case.

    We don’t use curl either.

    Thread Starter mikmikmik

    (@mikmikmik)

    Hi Damian,

    I’ve tested on 3 different sites (both Apache and Litespeed) and they all show the REST API error in Site Health (/wp-admin/site-health.php) when the plugin is turned on. No other changes are being made. No other plugins activated.

    “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 10001 milliseconds with 0 bytes received (http_request_failed)”

    Hi all!
    same here.
    I deactivate all plugin from 2 websites and the problem is the Geotargeting LITE plugin

    Issue: “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.”

    Plugin Author Damian

    (@timersys)

    Sorry for the delay!
    I found start_session was in the plugin from legacy code , because it’s not used anymore. So I went ahead and removed it in the new version just launched.

    Please let me know if that fixes your issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘plugin causes REST API loopback error’ is closed to new replies.