Home › Forums › All Other Themes › session_start() error
- This topic has 4 replies, 2 voices, and was last updated 8 months, 2 weeks ago by Sonl Sinha.
-
AuthorPosts
-
February 27, 2024 at 7:23 pm #214753
I am facing a similar problem to this ticket: https://www.sktthemes.org/forums/topic/session_start-function-causing-site-health-errors/
my website -> https://www.getech.com.tr/
I am using skt-nature theme and in my website health i get this warning:
*****************************
An active PHP session was detected
Performance
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.The REST API encountered an error
Performance
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
The REST API request failed due to an error.
*****************************I found the code in my theme, it is inside skt-nature/skt-donation-givewp-free/skt-donation-givewp-free.php
At the end of the file there is this function:function skt_donation_givewp_register_session(){
@ob_start();
if( !session_id() )
session_start();
}When I delete the code inside this function, the error is gone. Why this error occurs, does it affect my website if I delete it?
February 28, 2024 at 3:40 pm #214764Hi,
Kindly send us your URL of the site and WordPress admin details (Username & Password) via email:[email protected] Please mention this forum URL while replying so that we understand what needs to be done.
We’ll check and revert back to you.
Regards,
DaveFebruary 28, 2024 at 5:26 pm #214772Hi Dave,
the url is: getech.com.tr
if the reason for asking for admin user details is to install the File Manager plugin to the dashboard as we have seen from Chris from another ticket before, sorry but it is not possible.
Can you clarify exactly what you need to investigate the problem so that I can support you?
February 29, 2024 at 3:19 pm #214802+
February 29, 2024 at 3:24 pm #214803Hi,
If you don’t want this functionality, then you can delete it.
Deleting it will not affect your website.
Regards,
Dave -
AuthorPosts
- You must be logged in to reply to this topic.