• Resolved Robbo870

    (@robbo870)


    Hello,

    Line 25 of storage.php – you have session_start(); which causes a critical issue in WordPress and is known bad practice.

    Rather than

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

    You might want to use

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

    Seems to work OK.
    Best regards
    Robbo870

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘session_start(); causing WP error’ is closed to new replies.