{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/5792","repository_url":"https://api.github.com/repos/Automattic/jetpack","labels_url":"https://api.github.com/repos/Automattic/jetpack/issues/5792/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/5792/comments","events_url":"https://api.github.com/repos/Automattic/jetpack/issues/5792/events","html_url":"https://github.com/Automattic/jetpack/issues/5792","id":193288872,"number":5792,"title":"Stats: PHP Warning in Stats dashboard widget","user":{"login":"jeherve","id":426388,"avatar_url":"https://avatars.githubusercontent.com/u/426388?v=3","gravatar_id":"","url":"https://api.github.com/users/jeherve","html_url":"https://github.com/jeherve","followers_url":"https://api.github.com/users/jeherve/followers","following_url":"https://api.github.com/users/jeherve/following{/other_user}","gists_url":"https://api.github.com/users/jeherve/gists{/gist_id}","starred_url":"https://api.github.com/users/jeherve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeherve/subscriptions","organizations_url":"https://api.github.com/users/jeherve/orgs","repos_url":"https://api.github.com/users/jeherve/repos","events_url":"https://api.github.com/users/jeherve/events{/privacy}","received_events_url":"https://api.github.com/users/jeherve/received_events","type":"User","site_admin":false},"labels":[{"id":70992862,"url":"https://api.github.com/repos/Automattic/jetpack/labels/Stats","name":"Stats","color":"006b75","default":false},{"id":470168693,"url":"https://api.github.com/repos/Automattic/jetpack/labels/[Pri]%20High","name":"[Pri] High","color":"ec9a71","default":false},{"id":70896532,"url":"https://api.github.com/repos/Automattic/jetpack/labels/[Type]%20Bug","name":"[Type] Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Automattic/jetpack/milestones/65","html_url":"https://github.com/Automattic/jetpack/milestones/4.4.2","labels_url":"https://api.github.com/repos/Automattic/jetpack/milestones/65/labels","id":2108741,"number":65,"title":"4.4.2","description":"Code Freeze: 2016-11-22","creator":{"login":"zinigor","id":374293,"avatar_url":"https://avatars.githubusercontent.com/u/374293?v=3","gravatar_id":"","url":"https://api.github.com/users/zinigor","html_url":"https://github.com/zinigor","followers_url":"https://api.github.com/users/zinigor/followers","following_url":"https://api.github.com/users/zinigor/following{/other_user}","gists_url":"https://api.github.com/users/zinigor/gists{/gist_id}","starred_url":"https://api.github.com/users/zinigor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zinigor/subscriptions","organizations_url":"https://api.github.com/users/zinigor/orgs","repos_url":"https://api.github.com/users/zinigor/repos","events_url":"https://api.github.com/users/zinigor/events{/privacy}","received_events_url":"https://api.github.com/users/zinigor/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":35,"state":"open","created_at":"2016-11-02T07:41:32Z","updated_at":"2016-12-03T14:13:48Z","due_on":"2016-11-29T00:00:00Z","closed_at":null},"comments":4,"created_at":"2016-12-03T14:13:48Z","updated_at":"2016-12-03T14:27:23Z","closed_at":null,"body":"#### Steps to reproduce the issue\r\n\r\n1. Start from a site running WordPress 4.7 and Jetpack 4.4.2 Beta.\r\n2. Enable Stats.\r\n3. Disable `WP_DEBUG`\r\n4. Go to the main dashboard.\r\n5. When the stats widget loads and Jetpack posts to `wp-admin/admin.php?page=stats&noheader&chart=flot-stats-data`, the stats data is returned, but 2 errors are also returned at the end of the response:\r\n\r\n```html\r\n<br />\r\n<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /wp-includes/functions.php:3673) in <b>/wp-includes/rest-api.php</b> on line <b>480</b><br />\r\n<br />\r\n<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /wp-includes/functions.php:3673) in <b>/wp-includes/rest-api.php</b> on line <b>480</b><br />\r\n```"},"comment":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/comments/264642440","html_url":"https://github.com/Automattic/jetpack/issues/5792#issuecomment-264642440","issue_url":"https://api.github.com/repos/Automattic/jetpack/issues/5792","id":264642440,"user":{"login":"dereksmart","id":7129409,"avatar_url":"https://avatars.githubusercontent.com/u/7129409?v=3","gravatar_id":"","url":"https://api.github.com/users/dereksmart","html_url":"https://github.com/dereksmart","followers_url":"https://api.github.com/users/dereksmart/followers","following_url":"https://api.github.com/users/dereksmart/following{/other_user}","gists_url":"https://api.github.com/users/dereksmart/gists{/gist_id}","starred_url":"https://api.github.com/users/dereksmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dereksmart/subscriptions","organizations_url":"https://api.github.com/users/dereksmart/orgs","repos_url":"https://api.github.com/users/dereksmart/repos","events_url":"https://api.github.com/users/dereksmart/events{/privacy}","received_events_url":"https://api.github.com/users/dereksmart/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T14:27:23Z","updated_at":"2016-12-03T14:27:23Z","body":"interesting that the line it's pointing to references a deprecated function https://github.com/WordPress/WordPress/blob/863505cf81ad01d56a67aa9710fd597367a22771/wp-includes/rest-api.php#L480"}}
{"actor":{"display_login":"dereksmart"}}