{"action":"created","issue":{"url":"https://api.github.com/repos/humanmade/Mercator-Redirect/issues/1","repository_url":"https://api.github.com/repos/humanmade/Mercator-Redirect","labels_url":"https://api.github.com/repos/humanmade/Mercator-Redirect/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/humanmade/Mercator-Redirect/issues/1/comments","events_url":"https://api.github.com/repos/humanmade/Mercator-Redirect/issues/1/events","html_url":"https://github.com/humanmade/Mercator-Redirect/issues/1","id":233645127,"number":1,"title":"Frontend crash in get_rest_url","user":{"login":"roborourke","id":23417,"avatar_url":"https://avatars2.githubusercontent.com/u/23417?v=3","gravatar_id":"","url":"https://api.github.com/users/roborourke","html_url":"https://github.com/roborourke","followers_url":"https://api.github.com/users/roborourke/followers","following_url":"https://api.github.com/users/roborourke/following{/other_user}","gists_url":"https://api.github.com/users/roborourke/gists{/gist_id}","starred_url":"https://api.github.com/users/roborourke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roborourke/subscriptions","organizations_url":"https://api.github.com/users/roborourke/orgs","repos_url":"https://api.github.com/users/roborourke/repos","events_url":"https://api.github.com/users/roborourke/events{/privacy}","received_events_url":"https://api.github.com/users/roborourke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-06-05T16:42:20Z","updated_at":"2017-06-22T16:29:58Z","closed_at":null,"body":"Original issue: https://github.com/humanmade/Mercator/issues/86\r\n\r\n> After installing Mercator, the frontend of one of my sites (haven't checkt the others) crashes with the following stack trace:\r\n>\r\n> `Fatal error:  Uncaught Error: Call to a member function using_index_permalinks() on null in /path/wordpressmu/wp-includes/rest-api.php:314\r\n> Stack trace:\r\n> ```\r\n> #0 /path/wordpressmu/wp-includes/rest-api.php(363): get_rest_url(NULL, '/', 'json')\r\n> #1 /path/wordpressmu/wp-content/mu-plugins/mercator-redirect/redirect.php(64): rest_url()\r\n> #2 /path/wordpressmu/wp-includes/class-wp-hook.php(298): Mercator\\Redirect\\handle_redirect('')\r\n> #3 /path/wordpressmu/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)\r\n> #4 /path/wordpressmu/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\r\n> #5 /path/wordpressmu/wp-settings.php(326): do_action('plugins_loaded')\r\n> #6 /path/wordpressmu/wp-config.php(226): require_once('/www/vhosts/wor...')\r\n> #7 /path/wordpressmu/wp-load.php(37): require_once('/www/vhosts/wor...')\r\n> #8 /path/wordpressmu/wp-blog-header.php(13): require_once('/www/vhosts/wor...')\r\n> #9 /path/wordpressmu/index.php(17): require('/www/vhosts/wor...')\r\n> #10 {main}\r\n>  thr in /path/wordpressmu/wp-includes/rest-api.php on line 314`\r\n> ```\r\n>\r\n> It looks like `global $wp_rewrite;` is null at that point."},"comment":{"url":"https://api.github.com/repos/humanmade/Mercator-Redirect/issues/comments/310433006","html_url":"https://github.com/humanmade/Mercator-Redirect/issues/1#issuecomment-310433006","issue_url":"https://api.github.com/repos/humanmade/Mercator-Redirect/issues/1","id":310433006,"user":{"login":"roborourke","id":23417,"avatar_url":"https://avatars2.githubusercontent.com/u/23417?v=3","gravatar_id":"","url":"https://api.github.com/users/roborourke","html_url":"https://github.com/roborourke","followers_url":"https://api.github.com/users/roborourke/followers","following_url":"https://api.github.com/users/roborourke/following{/other_user}","gists_url":"https://api.github.com/users/roborourke/gists{/gist_id}","starred_url":"https://api.github.com/users/roborourke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roborourke/subscriptions","organizations_url":"https://api.github.com/users/roborourke/orgs","repos_url":"https://api.github.com/users/roborourke/repos","events_url":"https://api.github.com/users/roborourke/events{/privacy}","received_events_url":"https://api.github.com/users/roborourke/received_events","type":"User","site_admin":false},"created_at":"2017-06-22T16:29:58Z","updated_at":"2017-06-22T16:29:58Z","body":"And thanks for digging into it 👍 "}}
{"actor":{"display_login":"roborourke"}}