{"action":"opened","issue":{"url":"https://api.github.com/repos/mysociety/popit/issues/733","labels_url":"https://api.github.com/repos/mysociety/popit/issues/733/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/popit/issues/733/comments","events_url":"https://api.github.com/repos/mysociety/popit/issues/733/events","html_url":"https://github.com/mysociety/popit/issues/733","id":55779338,"number":733,"title":"Error with license when site is not found","user":{"login":"chrismytton","id":22996,"avatar_url":"https://avatars.githubusercontent.com/u/22996?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismytton","html_url":"https://github.com/chrismytton","followers_url":"https://api.github.com/users/chrismytton/followers","following_url":"https://api.github.com/users/chrismytton/following{/other_user}","gists_url":"https://api.github.com/users/chrismytton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismytton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismytton/subscriptions","organizations_url":"https://api.github.com/users/chrismytton/orgs","repos_url":"https://api.github.com/users/chrismytton/repos","events_url":"https://api.github.com/users/chrismytton/events{/privacy}","received_events_url":"https://api.github.com/users/chrismytton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T16:30:49Z","updated_at":"2015-01-28T16:30:49Z","closed_at":null,"body":"Need to check that the license variable exists before trying to print it on the instance not found page.\r\n\r\n```\r\nGET /image-proxy/http%3A%2F%2Fuk-parliament.127.0.0.1.xip.io%3A3000%2Forganizations%2Fimages%2F54ac08abffd833b21239f7d3%2F53ff443305cbb5ff0e004f44/128/0 200 1065.651 ms - -\r\nGET /css/select2.png 304 1.857 ms - -\r\nGET /favicon.ico 304 2.334 ms - -\r\nMongoose: instances.findOne({ slug: null, status: 'active' }) { fields: undefined }\r\nError: Error rendering 'errors/no_site_found.html': Error: Error rendering 'html_footer.html': ReferenceError: license is not defined\r\n    at Template.render (/vagrant/node_modules/underscore-template-additions/index.js:106:11)\r\n    at /vagrant/node_modules/underscore-template-additions/index.js:174:26\r\n    at Walker.<anonymous> (/vagrant/node_modules/underscore-template-additions/index.js:58:5)\r\n    at Walker.emit (events.js:92:17)\r\n    at Walker._wNext (/vagrant/node_modules/underscore-template-additions/node_modules/walk/walk.js:212:8)\r\n    at Walker._wNext (/vagrant/node_modules/underscore-template-additions/node_modules/walk/walk.js:210:19)\r\n    at Walker._wNext (/vagrant/node_modules/underscore-template-additions/node_modules/walk/walk.js:210:19)\r\n    at Walker._wOnEmitDone (/vagrant/node_modules/underscore-template-additions/node_modules/walk/walk.js:109:8)\r\n    at nextWhenReady (/vagrant/node_modules/underscore-template-additions/node_modules/walk/node-type-emitter.js:69:29)\r\n    at Object.emitPluralEvents [as emitNodeTypeGroups] (/vagrant/node_modules/underscore-template-additions/node_modules/walk/node-type-emitter.js:77:5)\r\nGET / 404 308.165 ms - 1294\r\nError: Error rendering 'errors/no_site_found.html': Error: Error rendering 'html_footer.html': ReferenceError: license is not defined\r\n    at Template.render (/vagrant/node_modules/underscore-template-additions/index.js:106:11)\r\n    at /vagrant/node_modules/underscore-template-additions/index.js:174:26\r\n    at Walker.<anonymous> (/vagrant/node_modules/underscore-template-additions/index.js:58:5)\r\n    at Walker.emit (events.js:92:17)\r\n    at Walker._wNext (/vagrant/node_modules/underscore-template-additions/node_modules/walk/walk.js:212:8)\r\n    at Walker._wNext (/vagrant/node_modules/underscore-template-additions/node_modules/walk/walk.js:210:19)\r\n    at Walker._wNext (/vagrant/node_modules/underscore-template-additions/node_modules/walk/walk.js:210:19)\r\n    at Walker._wOnEmitDone (/vagrant/node_modules/underscore-template-additions/node_modules/walk/walk.js:109:8)\r\n    at nextWhenReady (/vagrant/node_modules/underscore-template-additions/node_modules/walk/node-type-emitter.js:69:29)\r\n    at Object.emitPluralEvents [as emitNodeTypeGroups] (/vagrant/node_modules/underscore-template-additions/node_modules/walk/node-type-emitter.js:77:5)\r\n```"}}