• The two errors WordPress Site Health shows are below. Deactivating the plugin clears the errors.

    An active PHP session was detected

    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 REST API encountered an error

    The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.

    When testing the REST API, an error was encountered:

    REST API Endpoint: https://www.example.com/wp-json/wp/v2/types/post?context=edit
    REST API Response: (http_request_failed) cURL error 28: Operation timed out after 10002 milliseconds with 0 bytes received

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

    (@tecca)

    This should fix it. In /plugins/subscriber-login-for-youtube/src/Site/Session.php

        public static function start()
        {
            if (session_status() !== PHP_SESSION_ACTIVE) {
                session_start([
                    'read_and_close' => true,
                ]);
            }
        }
Viewing 1 replies (of 1 total)
  • The topic ‘Plugin creates two critical issues in Site Health’ is closed to new replies.