• olessol

    (@olessol)


    A critical error has appeared in the Site Tools section: 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.

    The cause turned out to be this plugin, namely the code in the file plugin/premmerce/src/admin/admin.php.
    If you change this code

    if ( !session_id() ) {
    session_start();
    }

    to this,

            if ( !session_id() ) {
    session_start(['read_and_close' => true]);
    }

    the error disappears.

    Have a good day everyone.

    • This topic was modified 3 months ago by olessol.

You must be logged in to reply to this topic.