Conversation
supportGood day, I encountered a problem while using popular plugins. WordPress reports: A PHP session was created by calling the session_start() function. For hitting REST API and loopback requests. The session should be closed using session_close() with an HTTP prewrite request. In app/Bootstrap.php I hit the beginning of the session: if ( !session_id() ) session_start(); If I turn off the plugin the problem no longer appears. It also causes other complications for me, I’m not a programmer so I don’t know how to fix it, so I want to ask if it’s possible to fix it? Thank you and have a nice day.
A little more searching and I found a fix session. if ( !session_id() ) {session_start();} on if ( !session_id() ) {session_start( [‘read_and_close’ => true,] );}
A little more searching and I found a fix session. if ( !session_id() ) {session_start();} on if ( !session_id() ) {session_start( [‘read_and_close’ => true,] );}