• 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

Viewing 1 replies (of 1 total)
  • Thread Starter mpuska

    (@mpuska)

    The problem is that with this change, editing daily-quotes doesn’t work, until the original file dqa.php is uploaded.

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