Chirpsuite Community

Find answers, ask questions, and connect with our
community around the world.

Home Community Websites & Blogs Resolved: A PHP session was created by a session_start() function call.

Tagged: 

  • Resolved: A PHP session was created by a session_start() function call.

  • Chirpsuite

    Administrator
    September 4, 2021 at 7:30 pm

    If your WP health check shows the following error,

    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.

    Then resolve by adding the code below to your theme functions (navigate to WP Dashboard > Appearance > Theme editor then select theme functions).

    The code

    if (!isset($_SESSION)) {

    session_start(['read_and_close' => true]);

    }

    Save changes.

Viewing 1 of 1 replies

Original Post
0 of 0 posts June 2018
Now
error: