Not working with Contao 4.4.31 // PHP 7.1?
Closed this issue ยท 6 comments
Hi Kamil,
I'm updating an installation vom 3.5 to 4.4 and I can't add news anymore. First we copied an existing news teaser, suddenly an internal error screen appeared. Since this happened I can't access the news anymore. Everything worked fine after deleting the extension, I even see my copied news.
[2018-12-18 13:34:40] request.INFO: Matched route "contao_index". {"route":"contao_index","route_parameters":{"_token_check":true,"_controller":"Contao\CoreBundle\Controller\FrontendController::indexAction","_scope":"frontend","_route":"contao_index"},"request_uri":"http://c4.seeger-gruppe.com/","method":"GET"} []
[2018-12-18 13:34:40] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\CoreBundle\Security\ContaoAuthenticator"} []
[2018-12-18 13:34:41] request.CRITICAL: Uncaught PHP Exception Codefog\NewsCategoriesBundle\Exception\NoNewsException: "" at /html/contao4/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php line 165 {"exception":"[object] (Codefog\NewsCategoriesBundle\Exception\NoNewsException(code: 0): at /html/contao4/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:165)"} []
[2018-12-18 21:11:07] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\CoreBundle\Controller\BackendController::mainAction","_route":"contao_backend"},"request_uri":"http://c4.seeger-gruppe.com/contao?act=edit&do=news&id=94&mode=2&pid=2&ref=XHLXmigZ&rt=sgXfTrMDoRdTSnk5jFw3-rGa5zO4ygBSfR-WJrIt6_Y&table=tl_news","method":"HEAD"} []
[2018-12-18 21:11:07] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\CoreBundle\Security\ContaoAuthenticator"} []
[2018-12-18 21:11:07] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\CoreBundle\Controller\BackendController::mainAction","_route":"contao_backend"},"request_uri":"http://c4.seeger-gruppe.com/contao?act=edit&do=news&id=94&mode=2&pid=2&ref=XHLXmigZ&rt=sgXfTrMDoRdTSnk5jFw3-rGa5zO4ygBSfR-WJrIt6_Y&table=tl_news","method":"GET"} []
[2018-12-18 21:11:07] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\CoreBundle\Security\ContaoAuthenticator"} []
[2018-12-18 21:11:08] app.CRITICAL: An exception occurred. {"exception":"[object] (Codefog\NewsCategoriesBundle\Exception\NoNewsException(code: 0): at /html/contao4/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:165)"} []
[2018-12-18 23:13:47] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\CoreBundle\Controller\BackendController::mainAction","_route":"contao_backend"},"request_uri":"http://c4.seeger-gruppe.com/contao?do=news&ref=ZZMe8m4v","method":"HEAD"} []
[2018-12-18 23:13:47] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\CoreBundle\Security\ContaoAuthenticator"} []
[2018-12-18 23:13:47] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\CoreBundle\Controller\BackendController::mainAction","_route":"contao_backend"},"request_uri":"http://c4.seeger-gruppe.com/contao?do=news&ref=ZZMe8m4v","method":"GET"} []
[2018-12-18 23:13:47] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\CoreBundle\Security\ContaoAuthenticator"} []
[2018-12-18 23:13:48] app.CRITICAL: An exception occurred. {"exception":"[object] (Codefog\NewsCategoriesBundle\Exception\NoNewsException(code: 0): at /html/contao4/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:165)"} []
Any idea? ๐
Changing to PHP 7.2 I get:
[2019-01-05 12:21:39] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\CoreBundle\Controller\BackendController::mainAction","_route":"contao_backend"},"request_uri":"https://www.seeger-gruppe.de/contao?act=edit&do=news&id=97&mode=2&pid=2&ref=ogzevzBx&rt=QJF9ZG7xQ2Vpqi6hhk_a9EbHprURMt6iwIJoWqjjHr4&table=tl_news","method":"HEAD"} []
[2019-01-05 12:21:39] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\CoreBundle\Security\ContaoAuthenticator"} []
[2019-01-05 12:21:39] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\CoreBundle\Controller\BackendController::mainAction","_route":"contao_backend"},"request_uri":"https://www.seeger-gruppe.de/contao?act=edit&do=news&id=97&mode=2&pid=2&ref=ogzevzBx&rt=QJF9ZG7xQ2Vpqi6hhk_a9EbHprURMt6iwIJoWqjjHr4&table=tl_news","method":"GET"} []
[2019-01-05 12:21:39] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\CoreBundle\Security\ContaoAuthenticator"} []
[2019-01-05 12:21:40] app.CRITICAL: An exception occurred. {"exception":"[object] (Codefog\NewsCategoriesBundle\Exception\NoNewsException(code: 0): at /html/contao4/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:165)"} []
Hey, sorry for the late reply. Do you use news feeds in this project?
No worries, there were some holidays ๐
Yes, I use feeds for the categories and one for all news.
Can you try hotfix/3.0.15
branch please?
Works! Thank you, you're a fox ๐
Perfect, just released 3.0.15. You can update to the stable version now ๐