PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Critical Error - An active PHP session was detected

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Under 'Site Health' WordPress is showing critical error:

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.

After deactivating all plugins on the site, the WOOCS - WooCommerce Currency Switcher was the plugin activating this error message.

Online forums suggest changing this code:

if ( !session_id() ) {
session_start();
}

to this code:

if ( !session_id() ) {
session_start( [
'read_and_close' => true,
] );
}

Your code is written slightly different and when I attempted this fix, the plugin stopped switching currency. So I am submitting this ticket so you can update the plugin.

Thanks in advance.

Best,

Christine Levac
The Web Gecko

Hello Web Gecko

In tab Options if the plugin select another storage please: https://share.pluginus.net/image/i20230807133947.png and issue will go away https://share.pluginus.net/image/i20230807134144.png

 

 

That worked!

Thanks for the info.

Christine Levac
The Web Gecko

Welcome :)