[wp-trac] [WordPress Trac] #47320: Site Health: Call to API with $_COOKIE and PHPSESSID
WordPress Trac
noreply at wordpress.org
Sun May 26 12:07:58 UTC 2019
#47320: Site Health: Call to API with $_COOKIE and PHPSESSID
----------------------------+------------------------------
Reporter: matthieumota | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 5.2
Severity: trivial | Resolution:
Keywords: site-health | Focuses:
----------------------------+------------------------------
Comment (by netweblogic):
This issue causes multiple tests to fail in the site health interface if
your theme or plugin starts a session. The following errors are triggered
by curl timeouts:
* The REST API encountered an error
* Your site could not complete a loopback request
* Background updates may not be working properly
* Could not confirm that the wp_version_check() filter is available.
By the following code:
{{{#!php
<?php
add_action('init', function(){
session_start();
});
}}}
Thanks for reporting this @matthieumota
I would say removing session data from the curl call is the most
appropriate solution, given these tests that fail don't require sessions
to pass/fail, whereas session data may still be needed in the original
page load.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47320#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list