{"action":"created","issue":{"url":"https://api.github.com/repos/johnbillion/query-monitor/issues/117","labels_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/117/comments","events_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/117/events","html_url":"https://github.com/johnbillion/query-monitor/issues/117","id":65226553,"number":117,"title":"PHP notices","user":{"login":"pdewouters","id":30460,"avatar_url":"https://avatars.githubusercontent.com/u/30460?v=3","gravatar_id":"","url":"https://api.github.com/users/pdewouters","html_url":"https://github.com/pdewouters","followers_url":"https://api.github.com/users/pdewouters/followers","following_url":"https://api.github.com/users/pdewouters/following{/other_user}","gists_url":"https://api.github.com/users/pdewouters/gists{/gist_id}","starred_url":"https://api.github.com/users/pdewouters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdewouters/subscriptions","organizations_url":"https://api.github.com/users/pdewouters/orgs","repos_url":"https://api.github.com/users/pdewouters/repos","events_url":"https://api.github.com/users/pdewouters/events{/privacy}","received_events_url":"https://api.github.com/users/pdewouters/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/johnbillion/query-monitor/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/johnbillion/query-monitor/labels/collectors:existing","name":"collectors:existing","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/johnbillion/query-monitor/milestones/7","html_url":"https://github.com/johnbillion/query-monitor/milestones/2.7.2","labels_url":"https://api.github.com/repos/johnbillion/query-monitor/milestones/7/labels","id":1033158,"number":7,"title":"2.7.2","description":"","creator":{"login":"johnbillion","id":208434,"avatar_url":"https://avatars.githubusercontent.com/u/208434?v=3","gravatar_id":"","url":"https://api.github.com/users/johnbillion","html_url":"https://github.com/johnbillion","followers_url":"https://api.github.com/users/johnbillion/followers","following_url":"https://api.github.com/users/johnbillion/following{/other_user}","gists_url":"https://api.github.com/users/johnbillion/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbillion/subscriptions","organizations_url":"https://api.github.com/users/johnbillion/orgs","repos_url":"https://api.github.com/users/johnbillion/repos","events_url":"https://api.github.com/users/johnbillion/events{/privacy}","received_events_url":"https://api.github.com/users/johnbillion/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-03-23T00:15:05Z","updated_at":"2015-03-30T14:44:33Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-03-30T14:35:36Z","updated_at":"2015-03-30T14:44:34Z","closed_at":null,"body":"To reproduce, install the Enable Media Replace plugin and replace an attachment. IT will break the admin.\r\n```\r\n[30-Mar-2015 14:07:40 UTC] PHP Notice:  Undefined index: header in /srv/www/unison.dev/content/plugins/query-monitor/collectors/assets.php on line 46\r\n[30-Mar-2015 14:07:40 UTC] PHP Stack trace:\r\n[30-Mar-2015 14:07:40 UTC] PHP   1. {main}() /srv/www/unison.dev/wordpress/wp-admin/upload.php:0\r\n[30-Mar-2015 14:07:40 UTC] PHP   2. require_once() /srv/www/unison.dev/wordpress/wp-admin/upload.php:10\r\n[30-Mar-2015 14:07:40 UTC] PHP   3. include() /srv/www/unison.dev/wordpress/wp-admin/admin.php:243\r\n[30-Mar-2015 14:07:40 UTC] PHP   4. do_action() /srv/www/unison.dev/wordpress/wp-admin/admin-footer.php:74\r\n[30-Mar-2015 14:07:40 UTC] PHP   5. call_user_func_array:{/srv/www/unison.dev/wordpress/wp-includes/plugin.php:496}() /srv/www/unison.dev/wordpress/wp-includes/plugin.php:496\r\n[30-Mar-2015 14:07:40 UTC] PHP   6. QM_Collector_Assets->action_print_footer_scripts() /srv/www/unison.dev/wordpress/wp-includes/plugin.php:496\r\n[30-Mar-2015 14:07:40 UTC] PHP Warning:  array_diff(): Argument #2 is not an array in /srv/www/unison.dev/content/plugins/query-monitor/collectors/assets.php on line 46\r\n[30-Mar-2015 14:07:40 UTC] PHP Stack trace:\r\n[30-Mar-2015 14:07:40 UTC] PHP   1. {main}() /srv/www/unison.dev/wordpress/wp-admin/upload.php:0\r\n[30-Mar-2015 14:07:40 UTC] PHP   2. require_once() /srv/www/unison.dev/wordpress/wp-admin/upload.php:10\r\n[30-Mar-2015 14:07:40 UTC] PHP   3. include() /srv/www/unison.dev/wordpress/wp-admin/admin.php:243\r\n[30-Mar-2015 14:07:40 UTC] PHP   4. do_action() /srv/www/unison.dev/wordpress/wp-admin/admin-footer.php:74\r\n[30-Mar-2015 14:07:40 UTC] PHP   5. call_user_func_array:{/srv/www/unison.dev/wordpress/wp-includes/plugin.php:496}() /srv/www/unison.dev/wordpress/wp-includes/plugin.php:496\r\n[30-Mar-2015 14:07:40 UTC] PHP   6. QM_Collector_Assets->action_print_footer_scripts() /srv/www/unison.dev/wordpress/wp-includes/plugin.php:496\r\n[30-Mar-2015 14:07:40 UTC] PHP   7. array_diff() /srv/www/unison.dev/content/plugins/query-monitor/collectors/assets.php:46\r\n```"},"comment":{"url":"https://api.github.com/repos/johnbillion/query-monitor/issues/comments/87706841","html_url":"https://github.com/johnbillion/query-monitor/issues/117#issuecomment-87706841","issue_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/117","id":87706841,"user":{"login":"johnbillion","id":208434,"avatar_url":"https://avatars.githubusercontent.com/u/208434?v=3","gravatar_id":"","url":"https://api.github.com/users/johnbillion","html_url":"https://github.com/johnbillion","followers_url":"https://api.github.com/users/johnbillion/followers","following_url":"https://api.github.com/users/johnbillion/following{/other_user}","gists_url":"https://api.github.com/users/johnbillion/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbillion/subscriptions","organizations_url":"https://api.github.com/users/johnbillion/orgs","repos_url":"https://api.github.com/users/johnbillion/repos","events_url":"https://api.github.com/users/johnbillion/events{/privacy}","received_events_url":"https://api.github.com/users/johnbillion/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T14:44:34Z","updated_at":"2015-03-30T14:44:34Z","body":"Thanks, I've also seen this error pop up in my logs."}}