{"action":"created","issue":{"url":"https://api.github.com/repos/jaragunde/phpreport-test-import-tickets-2/issues/123","repository_url":"https://api.github.com/repos/jaragunde/phpreport-test-import-tickets-2","labels_url":"https://api.github.com/repos/jaragunde/phpreport-test-import-tickets-2/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/jaragunde/phpreport-test-import-tickets-2/issues/123/comments","events_url":"https://api.github.com/repos/jaragunde/phpreport-test-import-tickets-2/issues/123/events","html_url":"https://github.com/jaragunde/phpreport-test-import-tickets-2/issues/123","id":139267237,"number":123,"title":"Error when logging in for the first time","user":{"login":"jaragunde","id":2900877,"avatar_url":"https://avatars.githubusercontent.com/u/2900877?v=3","gravatar_id":"","url":"https://api.github.com/users/jaragunde","html_url":"https://github.com/jaragunde","followers_url":"https://api.github.com/users/jaragunde/followers","following_url":"https://api.github.com/users/jaragunde/following{/other_user}","gists_url":"https://api.github.com/users/jaragunde/gists{/gist_id}","starred_url":"https://api.github.com/users/jaragunde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaragunde/subscriptions","organizations_url":"https://api.github.com/users/jaragunde/orgs","repos_url":"https://api.github.com/users/jaragunde/repos","events_url":"https://api.github.com/users/jaragunde/events{/privacy}","received_events_url":"https://api.github.com/users/jaragunde/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jaragunde/phpreport-test-import-tickets-2/labels/AJAX_interface","name":"AJAX_interface","color":"FFFFFF"},{"url":"https://api.github.com/repos/jaragunde/phpreport-test-import-tickets-2/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-08T12:34:32Z","updated_at":"2016-03-08T12:34:32Z","closed_at":null,"body":"[Trac import]\nReported by: ltilve\n\nThe following warning happens right after having set up the application and logging in for the first time, and doesn't allow the user to enter the application:\r\n\r\nWarning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /.../phpreport/web/include/header.php:26) in /.../phpreport/util/LoginManager.php on line 59\r\n\r\nWarning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /.../phpreport/web/include/header.php:26) in /.../phpreport/util/LoginManager.php on line 59\r\n\r\nWarning: Cannot modify header information - headers already sent by (output started at /.../phpreport/web/include/header.php:26) in /.../phpreport/web/login.php on line 42\r\n"},"comment":{"url":"https://api.github.com/repos/jaragunde/phpreport-test-import-tickets-2/issues/comments/193766783","html_url":"https://github.com/jaragunde/phpreport-test-import-tickets-2/issues/123#issuecomment-193766783","issue_url":"https://api.github.com/repos/jaragunde/phpreport-test-import-tickets-2/issues/123","id":193766783,"user":{"login":"jaragunde","id":2900877,"avatar_url":"https://avatars.githubusercontent.com/u/2900877?v=3","gravatar_id":"","url":"https://api.github.com/users/jaragunde","html_url":"https://github.com/jaragunde","followers_url":"https://api.github.com/users/jaragunde/followers","following_url":"https://api.github.com/users/jaragunde/following{/other_user}","gists_url":"https://api.github.com/users/jaragunde/gists{/gist_id}","starred_url":"https://api.github.com/users/jaragunde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaragunde/subscriptions","organizations_url":"https://api.github.com/users/jaragunde/orgs","repos_url":"https://api.github.com/users/jaragunde/repos","events_url":"https://api.github.com/users/jaragunde/events{/privacy}","received_events_url":"https://api.github.com/users/jaragunde/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T12:34:32Z","updated_at":"2016-03-08T12:34:32Z","body":"[Trac import] Comment by: jaragunde\n\nI couldn't reproduce the error, but Loren has confirmed that it's fixed if you change delay the inclusion of the file `header.php`, which sends the HTTP headers, so they can be sent by `LoginManager.php`.\r\n\r\nSince this is a small change and it doesn't have any side effects, I'm pushing it to the master."}}