• 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)
  • Plugin Author nicu_m

    (@nicu_m)

    Hello Christiaan,

    Thank you for the heads up and for offering the solution.

    I will add this fix in the new release. I hope this will happen by the end of the week.

    I will come back with updates.

    Best regards,
    Nicu.

    I can confirm, that this issue exists and is really annoying. I have found out that the issue appears when WP CLI runs periodically tasks. I don’t know even why this plugin is running in WP CLI mode. Complete stack trace can be found here:
    https://hastebin.com/loyufapano.sql

    Keep doing your great job man. Your making headless world of WP available.

    Plugin Author nicu_m

    (@nicu_m)

    Hello,

    This issue should be fixed in version 2.4.0.

    Can you please update the plugin and let me know how it goes?

    PS: thank you @cvl01 for suggesting a fix.

    Best regards, Nicu.

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.