{"action":"created","issue":{"url":"https://api.github.com/repos/GunnJerkens/plumage/issues/61","repository_url":"https://api.github.com/repos/GunnJerkens/plumage","labels_url":"https://api.github.com/repos/GunnJerkens/plumage/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/GunnJerkens/plumage/issues/61/comments","events_url":"https://api.github.com/repos/GunnJerkens/plumage/issues/61/events","html_url":"https://github.com/GunnJerkens/plumage/issues/61","id":109548367,"number":61,"title":"ErrorException undefined type in template","user":{"login":"shampine","id":1027737,"avatar_url":"https://avatars.githubusercontent.com/u/1027737?v=3","gravatar_id":"","url":"https://api.github.com/users/shampine","html_url":"https://github.com/shampine","followers_url":"https://api.github.com/users/shampine/followers","following_url":"https://api.github.com/users/shampine/following{/other_user}","gists_url":"https://api.github.com/users/shampine/gists{/gist_id}","starred_url":"https://api.github.com/users/shampine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shampine/subscriptions","organizations_url":"https://api.github.com/users/shampine/orgs","repos_url":"https://api.github.com/users/shampine/repos","events_url":"https://api.github.com/users/shampine/events{/privacy}","received_events_url":"https://api.github.com/users/shampine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GunnJerkens/plumage/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T18:40:15Z","updated_at":"2016-03-09T20:10:40Z","closed_at":null,"body":"```\r\nNext exception 'ErrorException' with message 'Undefined property: stdClass::$sqft (View: /var/www/plumage.gjtouchscreen.com/app/views/layouts/type.blade.php)' in /var/www/plumage.gjtouchscreen.com/app/storage/views/d80d15c95a7a45789771e19adab5bff1:40\r\n```\r\n\r\nThis is a two part kind of issue, data has been dropped from the types table but is left behind in the types json structure. We need to make sure that when data is dropped the structure matches exactly. We also need to check isset() when displaying data so that if the json data says a column exists when it doesn't the page still loads without that data.\r\n"},"comment":{"url":"https://api.github.com/repos/GunnJerkens/plumage/issues/comments/194486017","html_url":"https://github.com/GunnJerkens/plumage/issues/61#issuecomment-194486017","issue_url":"https://api.github.com/repos/GunnJerkens/plumage/issues/61","id":194486017,"user":{"login":"guitarbeard","id":2850694,"avatar_url":"https://avatars.githubusercontent.com/u/2850694?v=3","gravatar_id":"","url":"https://api.github.com/users/guitarbeard","html_url":"https://github.com/guitarbeard","followers_url":"https://api.github.com/users/guitarbeard/followers","following_url":"https://api.github.com/users/guitarbeard/following{/other_user}","gists_url":"https://api.github.com/users/guitarbeard/gists{/gist_id}","starred_url":"https://api.github.com/users/guitarbeard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guitarbeard/subscriptions","organizations_url":"https://api.github.com/users/guitarbeard/orgs","repos_url":"https://api.github.com/users/guitarbeard/repos","events_url":"https://api.github.com/users/guitarbeard/events{/privacy}","received_events_url":"https://api.github.com/users/guitarbeard/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T20:10:40Z","updated_at":"2016-03-09T20:10:40Z","body":"Not exactly sure how to recreate this. I deleted some data from the types table and also removed some fields but no errors."}}