{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/7913","labels_url":"https://api.github.com/repos/contao/core/issues/7913/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7913/comments","events_url":"https://api.github.com/repos/contao/core/issues/7913/events","html_url":"https://github.com/contao/core/issues/7913","id":93788806,"number":7913,"title":"[3.4.2] Probleme bei Cron Aufruf, wenn ein Template nur im Custom-Ordner ist","user":{"login":"amenk","id":1087128,"avatar_url":"https://avatars.githubusercontent.com/u/1087128?v=3","gravatar_id":"","url":"https://api.github.com/users/amenk","html_url":"https://github.com/amenk","followers_url":"https://api.github.com/users/amenk/followers","following_url":"https://api.github.com/users/amenk/following{/other_user}","gists_url":"https://api.github.com/users/amenk/gists{/gist_id}","starred_url":"https://api.github.com/users/amenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amenk/subscriptions","organizations_url":"https://api.github.com/users/amenk/orgs","repos_url":"https://api.github.com/users/amenk/repos","events_url":"https://api.github.com/users/amenk/events{/privacy}","received_events_url":"https://api.github.com/users/amenk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-08T13:26:50Z","updated_at":"2015-07-09T07:58:16Z","closed_at":null,"body":"Wir verwenden ein Template in `templates/kunde/dma_eg_default_video.html5`\r\n\r\nWenn man jetzt die Tabelle tl_cron leert (und damit den Cron Job forciert) und daraufhin http://localhost/system/cron/cron.php aufruft, so kommt folgender Fehler:\r\n\r\n\t[07-Jul-2015 14:36:19 GMT] PHP Fatal error: Uncaught exception 'Exception' with message 'Could not find template \"dma_eg_default_video\"' thrown in /var/www/kunde/web/system/modules/core/library/Contao/TemplateLoader.php on line 123\r\n\t#0 /var/www/kunde/web/system/modules/core/library/Contao/Controller.php(75): Contao\\TemplateLoader::getPath('dma_eg_default_...', 'html5')\r\n\t#1 /var/www/kunde/web/system/modules/core/library/Contao/BaseTemplate.php(81): Contao\\Controller::getTemplate('dma_eg_default_...', 'html5')\r\n\t#2 /var/www/kunde/web/system/modules/core/library/Contao/Template.php(238): Contao\\BaseTemplate->parse()\r\n\t#3 /var/www/kunde/web/system/modules/core/classes/FrontendTemplate.php(38): Contao\\Template->parse()\r\n\t#4 /var/www/kunde/web/system/modules/dma_elementgenerator/DMAElementGenerator.php(652): Contao\\FrontendTemplate->parse()\r\n\t#5 /var/www/kunde/web/system/modules/dma_elementgenerator/DMAElementGenerator.php(48): DMAElementGenerator->compile(Object(DMAElementGeneratorContent))\r\n\t#6 /var/www/kunde/web/system/modules/dma_elementgenerator/DMAElementGeneratorContent.php(47): DMAElementGenerator->generate(Object(DMAElementGeneratorContent))\r\n\t#7 /var/www/kunde/web/system/modules/core/elements/ContentElement.php(165): DMAElementGeneratorContent->compile()\r\n\t#8 /var/www/kunde/web/system/modules/core/library/Contao/Controller.php(469): Contao\\ContentElement->generate()\r\n\t#9 /var/www/kunde/web/system/modules/news/classes/News.php(186): Contao\\Controller::getContentElement(Object(Contao\\ContentModel))\r\n\t#10 /var/www/kunde/web/system/modules/news/classes/News.php(68): Contao\\News->generateFiles(Array)\r\n\t#11 /var/www/kunde/web/system/modules/core/controllers/FrontendCron.php(100): Contao\\News->generateFeeds()\r\n\t#12 /var/www/kunde/web/system/cron/cron.php(20): Contao\\FrontendCron->run()\r\n\t#13 {main}\r\n\r\nWorkaround: verschiebt man das Template direkt nach `templates/`, so funktioniert es.\r\n\r\nDer Cron Job sollte aber den auf der Seite verwendeten Templateordner auch in die Suche mit einbeziehen.\r\n\r\nsiehe https://github.com/DMAGmbH/dma_elementgenerator/issues/91\r\n\r\nDas Ganze passiert aber auch, wenn ich z.B. eine Datei `ce_foo.html5` im Unterordner `kunde` anlege und für ein beliebiges Content Element auswähle. Ist also kein DMA EG Problem."},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/119863074","html_url":"https://github.com/contao/core/issues/7913#issuecomment-119863074","issue_url":"https://api.github.com/repos/contao/core/issues/7913","id":119863074,"user":{"login":"BugBuster1701","id":1218809,"avatar_url":"https://avatars.githubusercontent.com/u/1218809?v=3","gravatar_id":"","url":"https://api.github.com/users/BugBuster1701","html_url":"https://github.com/BugBuster1701","followers_url":"https://api.github.com/users/BugBuster1701/followers","following_url":"https://api.github.com/users/BugBuster1701/following{/other_user}","gists_url":"https://api.github.com/users/BugBuster1701/gists{/gist_id}","starred_url":"https://api.github.com/users/BugBuster1701/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BugBuster1701/subscriptions","organizations_url":"https://api.github.com/users/BugBuster1701/orgs","repos_url":"https://api.github.com/users/BugBuster1701/repos","events_url":"https://api.github.com/users/BugBuster1701/events{/privacy}","received_events_url":"https://api.github.com/users/BugBuster1701/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T07:58:16Z","updated_at":"2015-07-09T07:58:16Z","body":"Nachtrag; an anderer Stelle wird getTemplateGroup verwendet, aber ohne den zweiten Parameter."}}