{"action":"closed","issue":{"url":"https://api.github.com/repos/omeka-s-modules/MetadataBrowse/issues/17","repository_url":"https://api.github.com/repos/omeka-s-modules/MetadataBrowse","labels_url":"https://api.github.com/repos/omeka-s-modules/MetadataBrowse/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/omeka-s-modules/MetadataBrowse/issues/17/comments","events_url":"https://api.github.com/repos/omeka-s-modules/MetadataBrowse/issues/17/events","html_url":"https://github.com/omeka-s-modules/MetadataBrowse/issues/17","id":168150821,"number":17,"title":"Admin side doesn't like SiteSettings","user":{"login":"patrickmj","id":153262,"avatar_url":"https://avatars.githubusercontent.com/u/153262?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickmj","html_url":"https://github.com/patrickmj","followers_url":"https://api.github.com/users/patrickmj/followers","following_url":"https://api.github.com/users/patrickmj/following{/other_user}","gists_url":"https://api.github.com/users/patrickmj/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickmj/subscriptions","organizations_url":"https://api.github.com/users/patrickmj/orgs","repos_url":"https://api.github.com/users/patrickmj/repos","events_url":"https://api.github.com/users/patrickmj/events{/privacy}","received_events_url":"https://api.github.com/users/patrickmj/received_events","type":"User","site_admin":false},"labels":[{"id":242547265,"url":"https://api.github.com/repos/omeka-s-modules/MetadataBrowse/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"patrickmj","id":153262,"avatar_url":"https://avatars.githubusercontent.com/u/153262?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickmj","html_url":"https://github.com/patrickmj","followers_url":"https://api.github.com/users/patrickmj/followers","following_url":"https://api.github.com/users/patrickmj/following{/other_user}","gists_url":"https://api.github.com/users/patrickmj/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickmj/subscriptions","organizations_url":"https://api.github.com/users/patrickmj/orgs","repos_url":"https://api.github.com/users/patrickmj/repos","events_url":"https://api.github.com/users/patrickmj/events{/privacy}","received_events_url":"https://api.github.com/users/patrickmj/received_events","type":"User","site_admin":false},"assignees":[{"login":"patrickmj","id":153262,"avatar_url":"https://avatars.githubusercontent.com/u/153262?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickmj","html_url":"https://github.com/patrickmj","followers_url":"https://api.github.com/users/patrickmj/followers","following_url":"https://api.github.com/users/patrickmj/following{/other_user}","gists_url":"https://api.github.com/users/patrickmj/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickmj/subscriptions","organizations_url":"https://api.github.com/users/patrickmj/orgs","repos_url":"https://api.github.com/users/patrickmj/repos","events_url":"https://api.github.com/users/patrickmj/events{/privacy}","received_events_url":"https://api.github.com/users/patrickmj/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/omeka-s-modules/MetadataBrowse/milestones/4","html_url":"https://github.com/omeka-s-modules/MetadataBrowse/milestones/August%2012","labels_url":"https://api.github.com/repos/omeka-s-modules/MetadataBrowse/milestones/4/labels","id":1916069,"number":4,"title":"August 12","description":"","creator":{"login":"patrickmj","id":153262,"avatar_url":"https://avatars.githubusercontent.com/u/153262?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickmj","html_url":"https://github.com/patrickmj","followers_url":"https://api.github.com/users/patrickmj/followers","following_url":"https://api.github.com/users/patrickmj/following{/other_user}","gists_url":"https://api.github.com/users/patrickmj/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickmj/subscriptions","organizations_url":"https://api.github.com/users/patrickmj/orgs","repos_url":"https://api.github.com/users/patrickmj/repos","events_url":"https://api.github.com/users/patrickmj/events{/privacy}","received_events_url":"https://api.github.com/users/patrickmj/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2016-08-01T15:32:49Z","updated_at":"2016-10-30T19:23:49Z","due_on":"2016-08-12T04:00:00Z","closed_at":null},"comments":2,"created_at":"2016-07-28T17:25:12Z","updated_at":"2016-10-30T19:23:49Z","closed_at":"2016-10-30T19:23:49Z","body":"Looks like I need to check admin or public side before looking up SiteSettings\n\n```\nOmeka\\Service\\Exception\\RuntimeException: Cannot use site settings when no site is set in /var/www/omekas/application/src/Settings/SiteSettings.php:38\nStack trace:\n#0 /var/www/omekas/application/src/Settings/AbstractSettings.php(158): Omeka\\Settings\\SiteSettings->setCache()\n#1 /var/www/omekas/application/src/Settings/AbstractSettings.php(104): Omeka\\Settings\\AbstractSettings->cache()\n#2 /var/www/omekas/modules/MetadataBrowse/Module.php(74): Omeka\\Settings\\AbstractSettings->get('metadata_browse...')\n#3 [internal function]: MetadataBrowse\\Module->repValueHtml(Object(Zend\\EventManager\\Event))\n#4 /var/www/omekas/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\\EventManager\\Event))\n#5 /var/www/omekas/vendor/zendframework/zend-eventmanager/src/EventManager.php(214): Zend\\EventManager\\EventManager->triggerListeners('rep.value.html', Object(Zend\\EventManager\\Event), NULL)\n#6 /var/www/omekas/application/src/Api/Representation/ValueRepresentation.php(56): Zend\\EventManager\\EventManager->trigger('rep.value.html', Object(Omeka\\Api\\Representation\\ValueRepresentation), Object(ArrayObject))\n#7 /var/www/omekas/application/view-shared/common/resource-values.phtml(37): Omeka\\Api\\Representation\\ValueRepresentation->asHtml()\n#8 /var/www/omekas/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(502): include('/var/www/omekas...')\n#9 /var/www/omekas/vendor/zendframework/zend-view/src/Helper/Partial.php(61): Zend\\View\\Renderer\\PhpRenderer->render(Array)\n#10 /var/www/omekas/application/src/Api/Representation/AbstractResourceEntityRepresentation.php(401): Zend\\View\\Helper\\Partial->__invoke('common/resource...', Array)\n#11 /var/www/omekas/application/view-admin/omeka/admin/item/show.phtml(31): Omeka\\Api\\Representation\\AbstractResourceEntityRepresentation->displayValues()\n#12 /var/www/omekas/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(502): include('/var/www/omekas...')\n#13 /var/www/omekas/vendor/zendframework/zend-view/src/View.php(207): Zend\\View\\Renderer\\PhpRenderer->render()\n#14 /var/www/omekas/vendor/zendframework/zend-view/src/View.php(236): Zend\\View\\View->render(Object(Zend\\View\\Model\\ViewModel))\n#15 /var/www/omekas/vendor/zendframework/zend-view/src/View.php(200): Zend\\View\\View->renderChildren(Object(Zend\\View\\Model\\ViewModel))\n#16 /var/www/omekas/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\\View\\View->render(Object(Zend\\View\\Model\\ViewModel))\n#17 [internal function]: Zend\\Mvc\\View\\Http\\DefaultRenderingStrategy->render(Object(Zend\\Mvc\\MvcEvent))\n#18 /var/www/omekas/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\\Mvc\\MvcEvent))\n#19 /var/www/omekas/vendor/zendframework/zend-eventmanager/src/EventManager.php(251): Zend\\EventManager\\EventManager->triggerListeners('render', Object(Zend\\Mvc\\MvcEvent))\n#20 /var/www/omekas/vendor/zendframework/zend-mvc/src/Application.php(384): Zend\\EventManager\\EventManager->triggerEvent(Object(Zend\\Mvc\\MvcEvent))\n#21 /var/www/omekas/vendor/zendframework/zend-mvc/src/Application.php(356): Zend\\Mvc\\Application->completeRequest(Object(Zend\\Mvc\\MvcEvent))\n#22 /var/www/omekas/index.php(17): Zend\\Mvc\\Application->run()\n#23 {main}\n```\n"}}
{"actor":{"display_login":"patrickmj"}}