Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.3] Error bei der Sitemap Generierung wenn Translated Content Articel mit Rock Solid Custom Elementen vorhanden ist #1518

Open
4 tasks done
MacKP opened this issue Aug 28, 2024 · 0 comments
Assignees
Labels
bug A bug! A bug! Fast, squish it!
Milestone

Comments

@MacKP
Copy link
Contributor

MacKP commented Aug 28, 2024

Checklist before I submit this issue report

I confirm that:

My environment is:

(Please fill in the actual values from your environment - check Contao Manager or use composer show)

Key Value Comments
PHP version: 8.3
Contao version: 4.13

Issue description

Ich habe für die Sitemap-Generierung die Indizies eingestellt und dafür die Rendersettings der Liste genommen. In den Rendersettings selber sind die Attribute TranlatedContentArticel nicht enthalten, diese sind aber in Verknüpfungen (Select und auch Tags auf andere Items in einem anderen MM). Wenn man jetzt die sitemap.xml aufruft bekommt man den Fehler, dass die Templates nicht gefunden werden.

Stack Trace:

Exception:
Could not find template "rsce_fullwidth_wrapper_start"

  at vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:156
  at Contao\TemplateLoader::getDefaultPath('rsce_fullwidth_wrapper_start', 'html5')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:112)
  at Contao\TemplateLoader::getPath('rsce_fullwidth_wrapper_start', 'html5')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:99)
  at Contao\Controller::getTemplate('rsce_fullwidth_wrapper_start')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateInheritance.php:351)
  at Contao\Template->getTemplatePath('rsce_fullwidth_wrapper_start', '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:324)
  at Contao\Template->parse()
     (vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:43)
  at Contao\FrontendTemplate->parse()
     (vendor/contao/core-bundle/src/Resources/contao/elements/ContentElement.php:276)
  at Contao\ContentElement->generate()
     (vendor/madeyourday/contao-rocksolid-custom-elements/src/Element/CustomElement.php:51)
  at MadeYourDay\RockSolidCustomElements\Element\CustomElement->generate()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:623)
  at Contao\Controller::getContentElement(object(ContentModel))
     (vendor/metamodels/attribute_translatedcontentarticle/src/Attribute/TranslatedContentArticle.php:196)
  at MetaModels\AttributeTranslatedContentArticleBundle\Attribute\TranslatedContentArticle->getTranslatedDataFor(array(11, 12, 13, 45, 15, 20, 16, 47, 50), 'de')
     (vendor/metamodels/core/src/TranslatedMetaModel.php:143)
  at MetaModels\TranslatedMetaModel->fetchTranslatedAttributeValues(object(TranslatedContentArticle), array(11, 12, 13, 45, 15, 20, 16, 47, 50))
     (vendor/metamodels/core/src/MetaModel.php:511)
  at MetaModels\MetaModel->fetchAdditionalAttributes(array(11, 12, 13, 45, 15, 20, 16, 47, 50), array(array('id' => 11, 'pid' => 2, 'sorting' => 128, 'tstamp' => 1720440549, 'category_thumb' => array('bin' => array(binary string), 'value' => DATEN VON DEM ITEM

(vendor/metamodels/core/src/CoreBundle/EventListener/GetSearchablePagesListener.php:179)
  at MetaModels\CoreBundle\EventListener\GetSearchablePagesListener->__invoke(object(GetPageDetailsEvent), 'contao.sitemap', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(SitemapEvent), 'contao.sitemap', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener)), 'contao.sitemap', object(SitemapEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(SitemapEvent), 'contao.sitemap')
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(SitemapEvent), 'contao.sitemap')
     (vendor/contao/core-bundle/src/Controller/SitemapController.php:91)
  at Contao\CoreBundle\Controller\SitemapController->__invoke(object(Request))
     (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))
     (public/index.php:44)                

Anscheinend wird in der GetSearchablePagesListener.php das Rendering von der Ausgewählten Liste angestoßen und dann wird versucht das ganze Aufzulösen, was natürlich nicht funktioniert, da der Zusammenhang zu dem Theme nicht gegeben ist.

@zonky2 zonky2 added the bug A bug! A bug! Fast, squish it! label Aug 28, 2024
@zonky2 zonky2 added this to the 2.3.0 milestone Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug! A bug! Fast, squish it!
Projects
None yet
Development

No branches or pull requests

3 participants