Support » Plugin: Health Check & Troubleshooting » Are cookies necessary for REST and loopback checks?

  • Hi,

    I am trying to find out why the REST and loopback checks are failing on my new VPS (curl error 28). After some debugging, I came to the conclusion that this is caused by the PHPSESSID cookie for some reason. I hardcoded unset($cookies[‘PHPSESSID’]); before the two checks in wp-admin/includes/class-wp-site-health.php and now the tests are passed.

    Why do you use cookies in these checks and is my website impacted in any way? I do not see anything wrong except for these checks, and this is 100% server related since I moved my website today to new VPS and these were OK on the old host.

    CentOS 7.7
    PHP 7.3
    OpenLitespeed

    • This topic was modified 2 months, 1 week ago by vtdimitrov.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marius L. J.

    (@clorith)

    Hi,

    It sounds like you have a plugin of some kind that implements session usage, yes this may impact your site in a negative way (but not guaranteed).

    The REST API calls will likely work from a JavaScript perspective, but the loopbacks are used by WordPress to trigger scheduled events (cron jobs), these include, but are not limited to, periodically checking for WordPress updates, automated security updates, and publishing scheduled posts.

    It is recommended to resolve the issue, likely by reaching out to the author of the plugin that is implementing sessions, to ensure they are being used in a reasonable manner (WordPress 4.7 and later showed there to be a fair few plugins doing this wrong, which is why that test is in place).

    vtdimitrov

    (@vtdimitrov)

    Hi,

    Sorry for the late reply. As I said, the absolute same installation with the same plugins have been working well on another hosting. All I changed was the web server.

    Also, as far as I can see, the automatic updates are working fine and it seems only these checks are failing. Very strange.

    Any idea how to debug/resolve this issue?

    Plugin Author Marius L. J.

    (@clorith)

    Do the problems get reported still if you enable Troubleshooting Mode (this should disable plugins and switch to a default theme only for your logged in session)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.