{"action":"opened","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/9382","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9382/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9382/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9382/events","html_url":"https://github.com/woothemes/woocommerce/issues/9382","id":112204116,"number":9382,"title":"Multi-product output failure (ghost product in loop)","user":{"login":"theandystratton","id":67835,"avatar_url":"https://avatars.githubusercontent.com/u/67835?v=3","gravatar_id":"","url":"https://api.github.com/users/theandystratton","html_url":"https://github.com/theandystratton","followers_url":"https://api.github.com/users/theandystratton/followers","following_url":"https://api.github.com/users/theandystratton/following{/other_user}","gists_url":"https://api.github.com/users/theandystratton/gists{/gist_id}","starred_url":"https://api.github.com/users/theandystratton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theandystratton/subscriptions","organizations_url":"https://api.github.com/users/theandystratton/orgs","repos_url":"https://api.github.com/users/theandystratton/repos","events_url":"https://api.github.com/users/theandystratton/events{/privacy}","received_events_url":"https://api.github.com/users/theandystratton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-19T18:26:30Z","updated_at":"2015-10-19T18:26:30Z","closed_at":null,"body":"**FILE:**\r\nwoocommerce/templates/single-product/add-to-cart/grouped.php\r\n\r\n**WHAT:**\r\nthe foreach starting at line 24\r\n\r\n**PROBLEM:**\r\nIt seems to loop through and sometimes hits a product for which `wc_get_product( $product_id )` returns `false` (I believe this is line 27). \r\n\r\nWhen this happens; we get a fatal error due to the `WC_Product::is_in_stock()` call, which is not present. I fixed this by editing the plugin and adding the following code at line 27 and bumping the hide out of stock if statement down a few lines:\r\n\r\n```php\r\nif ( !$product ) continue;\r\n```"}}