session_start() error
-
The “Site Health” has detected 1 critical error.
A PHP session is created by calling the session_start() function. This interferes with the REST API and callback requests. The session should be closed with session_write_close() before making any HTTP requests.
Error is in file dqa.php:
/public_html/wp-content/plugins/cleverwise-daily-quotes/dqa.php
If I’m not mistaken (please check), the solution could be this…
Find strings:function boot_session() {
session_start();
}
And replace with:function boot_session() {
session_start([
'cookie_lifetime' => 86400,
'read_and_close' => true,
]);
}
More on: https://wordpress.stackexchange.com/questions/377483/site-health-an-active-php-session-was-detected
- You must be logged in to reply to this topic.