Aktuell Contao 5.2.8 Seiten mit den eingebundenen Nachrichten-Archive (Modultyp Nachrichtenarchiv) machen mir noch Probleme.
Es ist auch die Erweiterung codefog/contao-news_categories mit eingebunden.
Während im in der Contao 4.13er Version alle Seiten funktionieren, werden in der aktuellen Contao 5.2.8 Version nicht mehr alle Seiten angezeigt, welche das Modul Nachrichtenarchiv eingebunden habe.
Auf manchen Seiten funktionieren diese, auf manchen Seiten nicht.
Die Seiten, wo das Modul eingebunden ist, die aber nicht angezeigt werden, kommen diese Fehlermeldungen:
Im Trace steht:
Codefog\NewsCategoriesBundle\Criteria\NewsCriteria ::setLimit(): Argument #1 ($limit) must be of type int, null given, called in /html/cto/cto_5_Beta/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165
Code:
TypeError:
Codefog\NewsCategoriesBundle\Criteria\NewsCriteria::setLimit(): Argument #1 ($limit) must be of type int, null given, called in /html/cto/cto_5_Beta/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165
at vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:278
at Codefog\NewsCategoriesBundle\Criteria\NewsCriteria->setLimit(null)
(vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php:165)
at Codefog\NewsCategoriesBundle\FrontendModule\NewsArchiveModule->fetchNewsItems(0, 1706346076)
(vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php:129)
at Codefog\NewsCategoriesBundle\FrontendModule\NewsArchiveModule->compile()
(vendor/contao/core-bundle/contao/modules/Module.php:213)
at Contao\Module->generate()
(vendor/contao/news-bundle/contao/modules/ModuleNewsArchive.php:80)
at Contao\ModuleNewsArchive->generate()
(vendor/contao/core-bundle/contao/library/Contao/Controller.php:411)
at Contao\Controller::getFrontendModule(object(ModuleModel), 'main')
(vendor/contao/core-bundle/contao/elements/ContentModule.php:59)
at Contao\ContentModule->generate()
(vendor/contao/core-bundle/contao/library/Contao/Controller.php:569)
at Contao\Controller::getContentElement(object(ContentModel), 'main')
(vendor/contao/core-bundle/contao/modules/ModuleArticle.php:196)
at Contao\ModuleArticle->compile()
(vendor/contao/core-bundle/contao/modules/Module.php:213)
at Contao\Module->generate()
(vendor/contao/core-bundle/contao/modules/ModuleArticle.php:69)
at Contao\ModuleArticle->generate(false)
(vendor/contao/core-bundle/contao/library/Contao/Controller.php:497)
at Contao\Controller::getArticle(object(ArticleModel), true, false, 'main')
(vendor/contao/core-bundle/contao/library/Contao/Controller.php:362)
at Contao\Controller::getFrontendModule('0', 'main')
(vendor/contao/core-bundle/contao/pages/PageRegular.php:171)
at Contao\PageRegular->prepare(object(PageModel))
(vendor/contao/core-bundle/contao/pages/PageRegular.php:46)
at Contao\PageRegular->getResponse(object(PageModel), true)
(vendor/contao/core-bundle/contao/controllers/FrontendIndex.php:66)
at Contao\FrontendIndex->renderPage(object(PageModel))
(vendor/symfony/http-kernel/HttpKernel.php:181)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:197)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(public/preview.php:46)
In der var/logs steht das hier drin:
Code:
[2024-01-30T13:44:15.381683+01:00] request.INFO: Matched route "tl_page.67". {"route":"tl_page.67","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.67","parameters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.67","_route_object":{"Contao\\CoreBundle\\Routing\\Page\\PageRoute":[]}},"request_uri":"https://ips7.liga-thueringen.de/veranstaltungen","method":"GET"} []
[2024-01-30T13:44:15.510982+01:00] php.CRITICAL: Uncaught Error: Codefog\NewsCategoriesBundle\Criteria\NewsCriteria::setLimit(): Argument #1 ($limit) must be of type int, null given, called in /html/cto/cto_5_Beta/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165 {"exception":"[object] (TypeError(code: 0): Codefog\\NewsCategoriesBundle\\Criteria\\NewsCriteria::setLimit(): Argument #1 ($limit) must be of type int, null given, called in /html/cto/cto_5_Beta/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165 at /html/cto/cto_5_Beta/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:278)"} []
[2024-01-30T13:44:15.512087+01:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Codefog\NewsCategoriesBundle\Criteria\NewsCriteria::setLimit(): Argument #1 ($limit) must be of type int, null given, called in /html/cto/cto_5_Beta/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165" at NewsCriteria.php line 278 {"exception":"[object] (TypeError(code: 0): Codefog\\NewsCategoriesBundle\\Criteria\\NewsCriteria::setLimit(): Argument #1 ($limit) must be of type int, null given, called in /html/cto/cto_5_Beta/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165 at /html/cto/cto_5_Beta/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:278)"} []
[2024-01-30T13:44:15.559613+01:00] messenger.INFO: Sending message Contao\CoreBundle\Messenger\Message\SearchIndexMessage with contao_prio_low sender using Contao\CoreBundle\Messenger\Transport\AutoFallbackTransport {"class":"Contao\\CoreBundle\\Messenger\\Message\\SearchIndexMessage","alias":"contao_prio_low","sender":"Contao\\CoreBundle\\Messenger\\Transport\\AutoFallbackTransport"} []
[2024-01-30T13:44:15.559779+01:00] messenger.INFO: Received message Contao\CoreBundle\Messenger\Message\SearchIndexMessage {"class":"Contao\\CoreBundle\\Messenger\\Message\\SearchIndexMessage"} []
[2024-01-30T13:44:15.561641+01:00] messenger.INFO: Message Contao\CoreBundle\Messenger\Message\SearchIndexMessage handled by Contao\CoreBundle\Messenger\MessageHandler\SearchIndexMessageHandler::__invoke {"class":"Contao\\CoreBundle\\Messenger\\Message\\SearchIndexMessage","handler":"Contao\\CoreBundle\\Messenger\\MessageHandler\\SearchIndexMessageHandler::__invoke"} []
###### UPDATE Problem gelöst#####
Inzwischen gab es ein Update bei der Erweiterung codefog/contao-news_categories auf die Version 4.0.1, danach funktionierten alle Seiten.
Großes Dank an die Entwickler / Techniker
Lesezeichen