Envato Toolkit class.maincontroler.php does not close session_start()

Hi,
Wordpress Site Health warns that, “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 solved the issue when I added “session_write_close();” in the end of a class.maincontroler.php!
I do not know if it is correct, but the warning disappears!
It will be good if the authors solve the issue!
Best regard,
Nikolay

Hi @niki_tabaliov,

Envato Toolkit has been deprecated for a long while now, replaced with the Envato Market plugin. Here’s a page explaining how you can upgrade:

Please switch to using the Envato Market plugin and you’ll be good to go!

2 Likes

Sorry, I had both plugins. Only have to remove old one!
Thank you,
Nikolay

1 Like