Title: Active PHP session error still not resolved
Last modified: March 6, 2021

---

# Active PHP session error still not resolved

 *  [mosaki](https://wordpress.org/support/users/mosaki/)
 * (@mosaki)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/active-php-session-error-still-not-resolved/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Factive-php-session-error-still-not-resolved%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/active-php-session-error-still-not-resolved/#post-14151307)
 * Hi [@mosaki](https://wordpress.org/support/users/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](https://wordpress.org/support/users/mosaki/)
 * (@mosaki)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/active-php-session-error-still-not-resolved/#post-14250943)
 * 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.

 * ![](https://ps.w.org/wp-native-php-sessions/assets/icon-256x256.png?rev=3411177)
 * [Native PHP Sessions](https://wordpress.org/plugins/wp-native-php-sessions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-native-php-sessions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-native-php-sessions/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-native-php-sessions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-native-php-sessions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-native-php-sessions/reviews/)

## Tags

 * [critical error](https://wordpress.org/support/topic-tag/critical-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [mosaki](https://wordpress.org/support/users/mosaki/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/active-php-session-error-still-not-resolved/#post-14250943)
 * Status: not resolved