{"action":"created","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/9368","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9368/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9368/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9368/events","html_url":"https://github.com/woothemes/woocommerce/issues/9368","id":111753870,"number":9368,"title":"Fatal error only when Logged IN when no taxes set on parent items","user":{"login":"mathetos","id":930724,"avatar_url":"https://avatars.githubusercontent.com/u/930724?v=3","gravatar_id":"","url":"https://api.github.com/users/mathetos","html_url":"https://github.com/mathetos","followers_url":"https://api.github.com/users/mathetos/followers","following_url":"https://api.github.com/users/mathetos/following{/other_user}","gists_url":"https://api.github.com/users/mathetos/gists{/gist_id}","starred_url":"https://api.github.com/users/mathetos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathetos/subscriptions","organizations_url":"https://api.github.com/users/mathetos/orgs","repos_url":"https://api.github.com/users/mathetos/repos","events_url":"https://api.github.com/users/mathetos/events{/privacy}","received_events_url":"https://api.github.com/users/mathetos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/woothemes/woocommerce/labels/Needs%20Dev%20Feedback","name":"Needs Dev Feedback","color":"a46497"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-16T03:53:13Z","updated_at":"2015-10-23T11:59:21Z","closed_at":null,"body":"You can see details here: https://wordpress.org/support/topic/variations-getting-fatal-error-about-tax-status?replies=3#post-7549952\r\n\r\nThis is the offending line: https://github.com/woothemes/woocommerce/blob/master/includes/class-wc-product-variation.php#L386\r\n\r\n** How to Duplicate:\r\n* Be logged in as Admin\r\n* Have Taxes disable, and \"No, I will enter prices exclusive of tax\"\r\n* Have no child categories\r\n* View the site/store while logged out (in a new browser perhaps) and there's no error\r\n* View the site/store whille logged in and you'll receive this fatal error everywhere:\r\n`Fatal error: Call to a member function get_tax_status() on a non-object in /home/*website*/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php on line 386`\r\n\r\nCommenting out the whole line resolves it, so does removing \"parent\""},"comment":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/comments/150553115","html_url":"https://github.com/woothemes/woocommerce/issues/9368#issuecomment-150553115","issue_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9368","id":150553115,"user":{"login":"mikejolley","id":90977,"avatar_url":"https://avatars.githubusercontent.com/u/90977?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T11:59:21Z","updated_at":"2015-10-23T11:59:21Z","body":"Not able to replicate this one - sounds like the parent of a variation is invalid or does not exist. Checked your products themselves? System status report?"}}