• Hello,

    I installed your plugin due to the site health check giving me a critical warning about the active PHP session and rest API issues. After installing the plugin, the rest API and loopback warnings disappeared, but the following critical issue remains.

    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.

    I’ve read some of the previous help topics about creating a mu plugin, but I don’t understand how to do this, or if it will solve my problem. Can someone please help me.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hi @mosaki,

    Sorry to hear you’re having difficulties. If you’re not actually seeing any problems with the critical issue, you might be able to ignore it.

    Alternatively, if you have control over the codebase, you could make sure your session_start() is only called in limited contexts where it’s not actually needed. It seems like it might be called on every page right now.

    Hope this helps!

    Thread Starter mosaki

    (@mosaki)

    Thanks for the follow-up. I found out that it was the Automatic YouTube Video Posts Plugin causing the error. I deleted the plugin and life is good again.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Active PHP session error still not resolved’ is closed to new replies.