session_start() error

Home Forums All Other Themes session_start() error

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #214753
    Ener PowerEner Power
    Participant
    • Topics: 4
    • Replies: 15
    • Total: 19
    Member since: February 7, 2024

    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?

    #214764
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31035
    • Total: 31035
    Member since: August 16, 2013

    Hi,

    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,
    Dave

    #214772
    Ener PowerEner Power
    Participant
    • Topics: 4
    • Replies: 15
    • Total: 19
    Member since: February 7, 2024

    Hi 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?

    #214802
    Ener PowerEner Power
    Participant
    • Topics: 4
    • Replies: 15
    • Total: 19
    Member since: February 7, 2024

    +

    #214803
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31035
    • Total: 31035
    Member since: August 16, 2013

    Hi,

    If you don’t want this functionality, then you can delete it.

    Deleting it will not affect your website.

    Regards,
    Dave

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.