• Resolved vcor3

    (@vcor3)


    I get “headers already sent” errors when JS Help Desk attempts to set a cookie. PHP setcookie is not allowed if the header has already been set.

    This occurs at \js-support-ticket\includes\classes\wphdsession.php line 60.

    My quick patch is to make it conditional:

    if (!headers_sent()) {
    setcookie( ‘_wpjshd_session_’, $this->sessionid . ‘/’ . $this->sessionexpire . ‘/’ . $this->nextsessionexpire , $this->sessionexpire, COOKIEPATH, COOKIE_DOMAIN);
    }

    Would be nice to have a fix so my change is not erased when the next update is made.

Viewing 1 replies (of 1 total)
  • Plugin Author JoomSky

    (@rabilal)

    Hi,

    Thanks for the fix.
    It will also be available in the next version.

Viewing 1 replies (of 1 total)
  • The topic ‘Headers already sent error’ is closed to new replies.