{"action":"created","issue":{"url":"https://api.github.com/repos/johngodley/redirection/issues/34","labels_url":"https://api.github.com/repos/johngodley/redirection/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/johngodley/redirection/issues/34/comments","events_url":"https://api.github.com/repos/johngodley/redirection/issues/34/events","html_url":"https://github.com/johngodley/redirection/issues/34","id":53365444,"number":34,"title":"Error when running PHP via the command line: Call to a member function url() on a non-object","user":{"login":"henare","id":48945,"avatar_url":"https://avatars.githubusercontent.com/u/48945?v=3","gravatar_id":"","url":"https://api.github.com/users/henare","html_url":"https://github.com/henare","followers_url":"https://api.github.com/users/henare/followers","following_url":"https://api.github.com/users/henare/following{/other_user}","gists_url":"https://api.github.com/users/henare/gists{/gist_id}","starred_url":"https://api.github.com/users/henare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henare/subscriptions","organizations_url":"https://api.github.com/users/henare/orgs","repos_url":"https://api.github.com/users/henare/repos","events_url":"https://api.github.com/users/henare/events{/privacy}","received_events_url":"https://api.github.com/users/henare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-05T05:26:13Z","updated_at":"2015-01-07T01:14:34Z","closed_at":null,"body":"`PHP Fatal error:  Call to a member function url() on a non-object in /var/www/wp-content/plugins/redirection/modules/wordpress.php on line 49`\r\n\r\nI'm guessing this is something to do with other plugins on my install. CiviCRM leaps to mind :("},"comment":{"url":"https://api.github.com/repos/johngodley/redirection/issues/comments/68964101","html_url":"https://github.com/johngodley/redirection/issues/34#issuecomment-68964101","issue_url":"https://api.github.com/repos/johngodley/redirection/issues/34","id":68964101,"user":{"login":"henare","id":48945,"avatar_url":"https://avatars.githubusercontent.com/u/48945?v=3","gravatar_id":"","url":"https://api.github.com/users/henare","html_url":"https://github.com/henare","followers_url":"https://api.github.com/users/henare/followers","following_url":"https://api.github.com/users/henare/following{/other_user}","gists_url":"https://api.github.com/users/henare/gists{/gist_id}","starred_url":"https://api.github.com/users/henare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henare/subscriptions","organizations_url":"https://api.github.com/users/henare/orgs","repos_url":"https://api.github.com/users/henare/repos","events_url":"https://api.github.com/users/henare/events{/privacy}","received_events_url":"https://api.github.com/users/henare/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T01:14:34Z","updated_at":"2015-01-07T01:14:34Z","body":"Thanks for the plugin and reply John!\r\n\r\n>What version are you running?\r\n\r\nThe latest from the WordPress directory: [Version 2.3.11](https://wordpress.org/plugins/redirection/)\r\n\r\n>That error refers to a line of code that doesn't exist!\r\n\r\nHere's the line at that version: https://github.com/johngodley/redirection/blob/e8201d3fab0a04d012264d2e27412b96e36fd9a0/modules/wordpress.php#L49\r\n\r\nManually upgrading to 2.3.12 makes this exception get thrown instead when running via the command line:\r\n\r\n`PHP Fatal error:  Call to a member function hasMatched() on a non-object in /var/www/wp-content/plugins/redirection/modules/wordpress.php on line 27`\r\n\r\nWhich is this line: https://github.com/johngodley/redirection/blob/2.3.12/modules/wordpress.php#L27"}}