PHP Warning: session_start(): Cannot start session when headers already sent
-
Hello,
The plugin is throwing a warning in routes.php
PHP Warning: session_start(): Cannot start session when headers already sent in wp-content/plugins/simple-jwt-login/routes.php on line 15
Is this a problem you are aware of?
I fixed it by changing the code to
if( empty(session_id()) && !headers_sent()){ session_start(); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘PHP Warning: session_start(): Cannot start session when headers already sent’ is closed to new replies.