{"action":"closed","issue":{"url":"https://api.github.com/repos/opencaching/okapi/issues/342","labels_url":"https://api.github.com/repos/opencaching/okapi/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/opencaching/okapi/issues/342/comments","events_url":"https://api.github.com/repos/opencaching/okapi/issues/342/events","html_url":"https://github.com/opencaching/okapi/issues/342","id":100987419,"number":342,"title":"Exception handling problem during update","user":{"login":"following5","id":1614754,"avatar_url":"https://avatars.githubusercontent.com/u/1614754?v=3","gravatar_id":"","url":"https://api.github.com/users/following5","html_url":"https://github.com/following5","followers_url":"https://api.github.com/users/following5/followers","following_url":"https://api.github.com/users/following5/following{/other_user}","gists_url":"https://api.github.com/users/following5/gists{/gist_id}","starred_url":"https://api.github.com/users/following5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/following5/subscriptions","organizations_url":"https://api.github.com/users/following5/orgs","repos_url":"https://api.github.com/users/following5/repos","events_url":"https://api.github.com/users/following5/events{/privacy}","received_events_url":"https://api.github.com/users/following5/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opencaching/okapi/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/opencaching/okapi/labels/Priority-High","name":"Priority-High","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"wrygiel","id":2168535,"avatar_url":"https://avatars.githubusercontent.com/u/2168535?v=3","gravatar_id":"","url":"https://api.github.com/users/wrygiel","html_url":"https://github.com/wrygiel","followers_url":"https://api.github.com/users/wrygiel/followers","following_url":"https://api.github.com/users/wrygiel/following{/other_user}","gists_url":"https://api.github.com/users/wrygiel/gists{/gist_id}","starred_url":"https://api.github.com/users/wrygiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrygiel/subscriptions","organizations_url":"https://api.github.com/users/wrygiel/orgs","repos_url":"https://api.github.com/users/wrygiel/repos","events_url":"https://api.github.com/users/wrygiel/events{/privacy}","received_events_url":"https://api.github.com/users/wrygiel/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-14T10:50:38Z","updated_at":"2015-08-22T09:20:17Z","closed_at":"2015-08-22T09:20:17Z","body":"If an exception occurs during the OKAPI update process, PHP will produce the warning 'Cannot modify header information - headers already sent ...', which will result in the following error during exception handling (on the new OC.de test server running PHP 5.4):\r\n\r\n===== ERROR MESSAGE =====\r\nUncaught exception 'ErrorException' with message 'Cannot modify header information - headers already sent by (output started at /var/www/centos7/code/htdocs/okapi/views/update.php:57)' in /var/www/centos7/code/htdocs/okapi/core.php:99\r\nStack trace:\r\n#0 [internal function]: okapi\\OkapiErrorHandler::handle(2, 'Cannot modify h...', '/var/www/centos...', 99, Array)\r\n#1 /var/www/centos7/code/htdocs/okapi/core.php(99): header('HTTP/1.0 400 Ba...')\r\n#2 [internal function]: okapi\\OkapiExceptionHandler::handle(Object(okapi\\InvalidParam))\r\n#3 {main}\r\n  thrown\r\n\r\nFile: /var/www/centos7/code/htdocs/okapi/core.php\r\nLine: 99\r\n\r\n--- OKAPI method called ---\r\n/okapi/update\r\n\r\n--- OKAPI version ---\r\n1105 (69bb1a7be72b7a52621532626e5c6813fb26e354)"}}