{"action":"created","issue":{"url":"https://api.github.com/repos/zikula/core/issues/2572","labels_url":"https://api.github.com/repos/zikula/core/issues/2572/labels{/name}","comments_url":"https://api.github.com/repos/zikula/core/issues/2572/comments","events_url":"https://api.github.com/repos/zikula/core/issues/2572/events","html_url":"https://github.com/zikula/core/issues/2572","id":103905731,"number":2572,"title":"Theme-related exception when calling the installer","user":{"login":"Guite","id":277531,"avatar_url":"https://avatars.githubusercontent.com/u/277531?v=3","gravatar_id":"","url":"https://api.github.com/users/Guite","html_url":"https://github.com/Guite","followers_url":"https://api.github.com/users/Guite/followers","following_url":"https://api.github.com/users/Guite/following{/other_user}","gists_url":"https://api.github.com/users/Guite/gists{/gist_id}","starred_url":"https://api.github.com/users/Guite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guite/subscriptions","organizations_url":"https://api.github.com/users/Guite/orgs","repos_url":"https://api.github.com/users/Guite/repos","events_url":"https://api.github.com/users/Guite/events{/privacy}","received_events_url":"https://api.github.com/users/Guite/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zikula/core/labels/Install%20&%20Upgrade","name":"Install & Upgrade","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"craigh","id":350048,"avatar_url":"https://avatars.githubusercontent.com/u/350048?v=3","gravatar_id":"","url":"https://api.github.com/users/craigh","html_url":"https://github.com/craigh","followers_url":"https://api.github.com/users/craigh/followers","following_url":"https://api.github.com/users/craigh/following{/other_user}","gists_url":"https://api.github.com/users/craigh/gists{/gist_id}","starred_url":"https://api.github.com/users/craigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigh/subscriptions","organizations_url":"https://api.github.com/users/craigh/orgs","repos_url":"https://api.github.com/users/craigh/repos","events_url":"https://api.github.com/users/craigh/events{/privacy}","received_events_url":"https://api.github.com/users/craigh/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/zikula/core/milestones/16","html_url":"https://github.com/zikula/core/milestones/1.4.1","labels_url":"https://api.github.com/repos/zikula/core/milestones/16/labels","id":959389,"number":16,"title":"1.4.1","description":"First service release for the 1.4.x series.","creator":{"login":"Guite","id":277531,"avatar_url":"https://avatars.githubusercontent.com/u/277531?v=3","gravatar_id":"","url":"https://api.github.com/users/Guite","html_url":"https://github.com/Guite","followers_url":"https://api.github.com/users/Guite/followers","following_url":"https://api.github.com/users/Guite/following{/other_user}","gists_url":"https://api.github.com/users/Guite/gists{/gist_id}","starred_url":"https://api.github.com/users/Guite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guite/subscriptions","organizations_url":"https://api.github.com/users/Guite/orgs","repos_url":"https://api.github.com/users/Guite/repos","events_url":"https://api.github.com/users/Guite/events{/privacy}","received_events_url":"https://api.github.com/users/Guite/received_events","type":"User","site_admin":false},"open_issues":49,"closed_issues":14,"state":"open","created_at":"2015-01-31T11:18:03Z","updated_at":"2015-08-30T07:25:29Z","due_on":"2015-11-20T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-08-30T07:25:29Z","updated_at":"2015-08-30T11:43:04Z","closed_at":null,"body":"The following exception appears when trying to do a new install:\r\n\r\n> Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Theme \"\" does not exist or it is not enabled.' in /zikula/src/lib/Zikula/Bundle/CoreBundle/HttpKernel/ZikulaKernel.php:155 \r\nStack trace:\r\n#0 /zikula/src/lib/Zikula/Core/Theme/Engine.php(295): Zikula\\Bundle\\CoreBundle\\HttpKernel\\ZikulaKernel->getTheme(NULL)\r\n#1 /zikula/src/lib/Zikula/Core/Theme/Engine.php(106): Zikula\\Core\\Theme\\Engine->setActiveTheme(NULL, Object(Zikula_Request_Http))\r\n#2 /zikula/src/lib/Zikula/Core/Theme/Engine.php(95): Zikula\\Core\\Theme\\Engine->setRequestAttributes(Object(Zikula_Request_Http))\r\n\r\n\r\nBypassed this by changing line 295 of `lib/Zikula/Core/Theme/Engine.php` to:\r\n```\r\n        if ($activeTheme !== null) {\r\n            $this->activeThemeBundle = $this->kernel->getTheme($activeTheme);\r\n        }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/zikula/core/issues/comments/136130454","html_url":"https://github.com/zikula/core/issues/2572#issuecomment-136130454","issue_url":"https://api.github.com/repos/zikula/core/issues/2572","id":136130454,"user":{"login":"craigh","id":350048,"avatar_url":"https://avatars.githubusercontent.com/u/350048?v=3","gravatar_id":"","url":"https://api.github.com/users/craigh","html_url":"https://github.com/craigh","followers_url":"https://api.github.com/users/craigh/followers","following_url":"https://api.github.com/users/craigh/following{/other_user}","gists_url":"https://api.github.com/users/craigh/gists{/gist_id}","starred_url":"https://api.github.com/users/craigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigh/subscriptions","organizations_url":"https://api.github.com/users/craigh/orgs","repos_url":"https://api.github.com/users/craigh/repos","events_url":"https://api.github.com/users/craigh/events{/privacy}","received_events_url":"https://api.github.com/users/craigh/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T11:43:03Z","updated_at":"2015-08-30T11:43:03Z","body":"maybe the problem is that the value isn't set yet in the install process. maybe simply setting a core theme as the default default is the better answer? e.g.\r\n\r\n```php\r\n$activeTheme = !empty($newThemeName) ? $newThemeName : \\System::getVar('Default_Theme', 'ZikulaAndreas08Theme');\r\n```"}}