ACTIVE PHP SESSION, REST API ERROR Site Health
-
Hello,
I have come across a problem and have found the solution also, just wanted to share fix:
Error: An active PHP session was detected” critical warning in wordpress. rest api.
Fix:
Open and find: /wp-content/plugins/free-vehicle-data-uk/classes/FreeVehicleData.php
Search for:
if( !session_id() ){
session_start();
}REPLACE WITH:
if ( !session_id() ) {
session_start( [
‘read_and_close’ => true,
] );
}
The topic ‘ACTIVE PHP SESSION, REST API ERROR Site Health’ is closed to new replies.