cgoIT / contao-calendar-ical-bundle

Contao extension calendar_ical
Other
0 stars 4 forks source link

[BUG] Error "Could not find template "ce_download_ical", if using acustom template called ce_download_ical #43

Closed pointout closed 4 months ago

pointout commented 4 months ago

To Reproduce Steps to reproduce the behavior:

  1. Make a new content element "ical" and select a custom template
  2. Save and go back
  3. Error

Expected behavior I have my own ce_download_ical template in the template folder. This can be selected for the content element type ical and it is written to the DB, but when going back to the Articles the error is shown. Deleting the entry in the DB removes the error message.

Logs

Exception:
Could not find template "ce_download_ical"

  at vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:156
  at Contao\TemplateLoader::getDefaultPath('ce_download_ical', 'html5')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:112)
  at Contao\TemplateLoader::getPath('ce_download_ical', 'html5')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:99)
  at Contao\Controller::getTemplate('ce_download_ical')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateInheritance.php:351)
  at Contao\Template->getTemplatePath('ce_download_ical', 'html5')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateInheritance.php:95)
  at Contao\Template->inherit()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php:295)
  at Contao\Template->parse()
     (vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:43)
  at Contao\FrontendTemplate->parse()
     (vendor/cgoit/contao-calendar-ical-bundle/src/Controller/ContentElement/ContentIcalElement.php:75)
  at Cgoit\ContaoCalendarIcalBundle\Controller\ContentElement\ContentIcalElement->getResponse(object(FragmentTemplate), object(ContentModel), object(Request))
     (vendor/contao/core-bundle/src/Controller/ContentElement/AbstractContentElementController.php:34)
  at Contao\CoreBundle\Controller\ContentElement\AbstractContentElementController->__invoke(object(Request), object(ContentModel), 'main', null)
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(HttpKernel), object(Request), 2, false)
     (vendor/symfony/http-kernel/Fragment/InlineFragmentRenderer.php:80)
  at Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer->render('/_fragment?_path=_format%3Dhtml%26_locale%3Dde%26_controller%3Dcontao.content_element.ical', object(Request), array('ignore_errors' => false))
     (vendor/symfony/http-kernel/Fragment/FragmentHandler.php:85)
  at Symfony\Component\HttpKernel\Fragment\FragmentHandler->render(object(ContentElementReference), 'forward', array('ignore_errors' => false))
     (vendor/contao/core-bundle/src/Fragment/FragmentHandler.php:69)
  at Contao\CoreBundle\Fragment\FragmentHandler->render(object(ContentElementReference))
     (vendor/contao/core-bundle/src/Resources/contao/elements/ContentProxy.php:65)
  at Contao\ContentProxy->generate()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:622)
  at Contao\Controller::getContentElement(object(ContentModel))
     (vendor/contao/core-bundle/src/Resources/contao/dca/tl_content.php:1310)
  at tl_content->addCteType(array('id' => 59, 'pid' => 51, 'sorting' => 128, 'tstamp' => 1713798988, 'invisible' => '', 'type' => 'ical', 'headline' => 'a:2:{s:4:"unit";s:2:"h2";s:5:"value";s:45:"Kalender mit allen Terminen für iCal-Clients";}', 'text' => null, 'addImage' => '', 'singleSRC' => null, 'alt' => '', 'imageTitle' => '', 'size' => '', 'imagemargin' => '', 'imageUrl' => '', 'fullsize' => '', 'caption' => '', 'floating' => '', 'html' => null, 'listtype' => '', 'listitems' => null, 'tableitems' => null, 'summary' => '', 'thead' => '', 'tfoot' => '', 'tleft' => '', 'sortable' => '', 'sortIndex' => 0, 'sortOrder' => 'ascending', 'mooHeadline' => '', 'mooStyle' => '', 'mooClasses' => '', 'highlight' => '', 'code' => null, 'url' => '', 'target' => '', 'linkTitle' => 'alle Kalender im iCal-Format', 'embed' => '', 'rel' => '', 'useImage' => '', 'multiSRC' => null, 'useHomeDir' => '', 'perRow' => 4, 'perPage' => 0, 'numberOfItems' => 0, 'sortBy' => '', 'galleryTpl' => '', 'cteAlias' => 0, 'articleAlias' => 0, 'article' => 0, 'form' => 0, 'module' => 0, 'protected' => '', 'groups' => null, 'guests' => '', 'cssID' => 'a:2:{i:0;s:0:"";i:1;s:0:"";}', 'com_order' => '', 'com_perPage' => 0, 'com_moderate' => '', 'com_bbcode' => '', 'com_requireLogin' => '', 'com_disableCaptcha' => '', 'com_template' => '', 'ical_calendar' => 'a:23:{i:0;s:2:"25";i:1;s:1:"1";i:2;s:2:"24";i:3;s:1:"2";i:4;s:1:"3";i:5;s:2:"16";i:6;s:2:"15";i:7;s:2:"14";i:8;s:2:"21";i:9;s:1:"4";i:10;s:2:"12";i:11;s:2:"17";i:12;s:2:"13";i:13;s:1:"8";i:14;s:2:"10";i:15;s:1:"9";i:16;s:2:"18";i:17;s:1:"7";i:18;s:2:"27";i:19;s:1:"6";i:20;s:2:"11";i:21;s:2:"26";i:22;s:1:"5";}', 'ical_prefix' => '[GnaKi]', 'ical_start' => '', 'ical_end' => '', 'ptable' => 'tl_article', 'titleText' => '', 'orderSRC' => null, 'metaIgnore' => '', 'customTpl' => '', 'playerSRC' => null, 'youtube' => '', 'posterSRC' => null, 'playerSize' => '', 'sliderDelay' => 0, 'sliderSpeed' => 300, 'sliderStartSlide' => 0, 'sliderContinuous' => '', 'start' => '', 'stop' => '', 'overwriteMeta' => '', 'youtubeOptions' => null, 'overwriteLink' => '1', 'playerOptions' => null, 'vimeoOptions' => null, 'playerStart' => 0, 'playerStop' => 0, 'playerColor' => '', 'playerPreload' => '', 'splashImage' => '', 'playerAspect' => '', 'playerCaption' => '', 'vimeo' => '', 'inline' => '', 'teaserContentTemplate' => '', 'teaserLinkBehaviour' => '', 'teaserLinkCssClass' => '', 'teaserLinkText' => '', 'fileSRC' => null, 'jumpTo' => 0, 'source' => '', 'nodesWrapper' => '', 'nodes' => null, 'data' => null, 'markdownSource' => 'sourceText', 'showPreview' => '', 'ical_download_template' => 'ce_download_ical', 'ical_description' => null, 'ical_title' => 'alle Termine'))
     (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:4717)
  at Contao\DC_Table->parentView()
     (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:313)
  at Contao\DC_Table->showAll()
     (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:667)
  at Contao\Backend->getBackendModule('article', null)
     (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:168)
  at Contao\BackendMain->run()
     (vendor/contao/core-bundle/src/Controller/BackendController.php:49)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/index.php:44)                

Configuration (please complete the following information):

pointout commented 4 months ago

Danke. Die Auswahl des eigenen Templates funtioniert jetzt.