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
News-Feed anlegen erzeugt "500 Internal Server Error" #2556
Comments
The problem is that there is no page layout context when creating an RSS feed. Thus it fails, if a content element of the news article's detail content uses a theme specific template. However we could figure out the page layout context via the archive's redirect page. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Das Problem besteht weiterhin. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Should actually be solved by #2946 |
Affected version(s)
4.9.9
Hallo,
wenn ich im Nachrichten-Modul einen News-Feed anlege, dann bekomme ich beim Speichern einen "500 Internal Server Error".
Ich werde zwar aus dem Backend geworfen, aber der News-Feed wird trotzdem angelegt und kann auch im Browser ausgegeben werden.
Die Exporteinstellung "Ganze Beiträge" wird ignoriert und es werden nur die Teasertexte angezeigt.
Habe ich mich nach erfolgten "Rauswurf" wieder ins Backend gehangelt und gehe ins Nachrichtenmodul, dann bekomme ich ebenfalls einen "500 Internal Server Error" und kann nichts weiter machen.
Im Debug-Modus wird mir ein
Could not find template "ce_text_bild_mittig"
angezeigt, wobei "ce_text_bild_mittig" ein eigenes abgeleitetes Template ist.
Gehe ich auf Systemwartung -> XML-Dateien neu schreiben -> Daten bereinigen dann werde ich ebenfalls mit einem "500 Internal Server Error" aus dem Backend entfernt.
Der Stack Trace
Exception:
Could not find template "ce_text_bild_mittig"
at vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:158
at Contao\TemplateLoader::getDefaultPath('ce_text_bild_mittig', 'html5')
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:114)
at Contao\TemplateLoader::getPath('ce_text_bild_mittig', 'html5')
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:76)
at Contao\Controller::getTemplate('ce_text_bild_mittig')
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateInheritance.php:324)
at Contao\Template->getTemplatePath('ce_text_bild_mittig', 'html5')
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateInheritance.php:87)
at Contao\Template->inherit()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php:292)
at Contao\Template->parse()
(vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:44)
at Contao\FrontendTemplate->parse()
(vendor/contao/core-bundle/src/Resources/contao/elements/ContentElement.php:285)
at Contao\ContentElement->generate()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:575)
at Contao\Controller::getContentElement(object(ContentModel))
(vendor/contao/news-bundle/src/Resources/contao/classes/News.php:208)
at Contao\News->generateFiles(array('id' => '6', 'tstamp' => '1607600977', 'title' => 'Aktuelles vom Landesverband Sachsen', 'alias' => 'news-sachsen-rss', 'language' => 'de', 'archives' => 'a:6:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"3";i:3;s:1:"4";i:4;s:1:"6";i:5;s:1:"7";}', 'format' => 'rss', 'source' => 'source_text', 'maxItems' => '40', 'feedBase' => 'https://pnp-gbs-sachsen.de/', 'description' => 'Aktuelle Nachrichten und Informationen der Deutsche Polyneuropathie Selbsthilfe e.V. Landesverband Sachsen', 'feedName' => 'news-sachsen-rss'))
(vendor/contao/news-bundle/src/Resources/contao/classes/News.php:52)
at Contao\News->generateFeed('6')
(vendor/contao/news-bundle/src/Resources/contao/dca/tl_news_feed.php:455)
at tl_news_feed->generateFeed(object(DC_Table))
(vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:202)
at Contao\DC_Table->__construct('tl_news_feed', array('tables' => array('tl_news_archive', 'tl_news', 'tl_news_feed', 'tl_content'), 'table' => array('Contao\TableWizard', 'importTable'), 'list' => array('Contao\ListWizard', 'importList')))
(vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:411)
at Contao\Backend->getBackendModule('news', null)
(vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:167)
at Contao\BackendMain->run()
(vendor/contao/core-bundle/src/Controller/BackendController.php:48)
at Contao\CoreBundle\Controller\BackendController->mainAction()
(vendor/symfony/http-kernel/HttpKernel.php:158)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:80)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:201)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/index.php:31)
Der Pfad des Templates:
templates/pnp-gbs-sachsen/ce_text_bild_mittig.html5
Der Error wird nur ausgelöst, wenn ich in den Exporteinstellungen "Ganze Beiträge" auswähle.
Grüsse
The text was updated successfully, but these errors were encountered: