Ergebnis 1 bis 9 von 9

Thema: Problem Update 4.13.36 auf 5.1.11

  1. #1
    Alter Contao-Hase
    Registriert seit
    12.10.2010.
    Beiträge
    1.026

    Standard Problem Update 4.13.36 auf 5.1.11

    Hi Leute,

    versuche mich gerade an einem Update von Contao 4.13.36 auf 5.1.11 und bekomme im Frontend ein Fehler.
    In der Log-Datei steht folgendes:

    Code:
    [2024-01-22T19:26:30.453973+01:00] php.INFO: User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cached_reader" service is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 6.4: The \"annotations.cached_reader\" service is deprecated without replacement. at /html/cto/cto_5_Beta/var/cache/prod/ContainerII4dx9S/getAnnotations_CachedReaderService.php:23)"} []
    [2024-01-22T19:26:30.454084+01:00] php.INFO: User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cache_adapter" service is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 6.4: The \"annotations.cache_adapter\" service is deprecated without replacement. at /html/cto/cto_5_Beta/var/cache/prod/ContainerII4dx9S/getAnnotations_CacheAdapterService.php:23)"} []
    [2024-01-22T19:26:30.454383+01:00] php.INFO: User Deprecated: Since symfony/routing 6.4: Passing an instance of "Doctrine\Common\Annotations\Reader" as first and the environment as second argument to "Symfony\Component\Routing\Loader\AttributeClassLoader::__construct" is deprecated. Pass the environment as first argument instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/routing 6.4: Passing an instance of \"Doctrine\\Common\\Annotations\\Reader\" as first and the environment as second argument to \"Symfony\\Component\\Routing\\Loader\\AttributeClassLoader::__construct\" is deprecated. Pass the environment as first argument instead. at /html/cto/cto_5_Beta/vendor/symfony/routing/Loader/AttributeClassLoader.php:86)"} []
    [2024-01-22T19:26:30.454756+01:00] php.INFO: User Deprecated: Since symfony/routing 6.4: The "annotation" route type is deprecated, use the "attribute" route type instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/routing 6.4: The \"annotation\" route type is deprecated, use the \"attribute\" route type instead. at /html/cto/cto_5_Beta/vendor/symfony/routing/Loader/AttributeClassLoader.php:273)"} []
    [2024-01-22T19:26:30.454808+01:00] php.INFO: User Deprecated: Since symfony/routing 6.4: The "annotation" route type is deprecated, use the "attribute" route type instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/routing 6.4: The \"annotation\" route type is deprecated, use the \"attribute\" route type instead. at /html/cto/cto_5_Beta/vendor/symfony/routing/Loader/AttributeDirectoryLoader.php:72)"} []
    [2024-01-22T19:26:30.470641+01:00] php.INFO: User Deprecated: Since symfony/routing 6.4: Class "Contao\CoreBundle\Controller\CaptchaController" uses Doctrine Annotations to configure routes, which is deprecated. Use PHP attributes instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/routing 6.4: Class \"Contao\\CoreBundle\\Controller\\CaptchaController\" uses Doctrine Annotations to configure routes, which is deprecated. Use PHP attributes instead. at /html/cto/cto_5_Beta/vendor/symfony/routing/Loader/AttributeClassLoader.php:171)"} []
    [2024-01-22T19:26:30.555019+01:00] request.INFO: Matched route "tl_page.4". {"route":"tl_page.4","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.4","parameters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.4","_route_object":{"Contao\\CoreBundle\\Routing\\Page\\PageRoute":[]}},"request_uri":"https://ips7.liga-thueringen.de/liga-aktuell","method":"GET"} []
    [2024-01-22T19:26:30.556726+01:00] php.INFO: User Deprecated: Since symfony/security-http 6.3: Calling "Symfony\Component\Security\Http\RememberMe\PersistentRememberMeHandler()" with the secret as the second argument is deprecated. The argument will be dropped in 7.0. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-http 6.3: Calling \"Symfony\\Component\\Security\\Http\\RememberMe\\PersistentRememberMeHandler()\" with the secret as the second argument is deprecated. The argument will be dropped in 7.0. at /html/cto/cto_5_Beta/vendor/symfony/security-http/RememberMe/PersistentRememberMeHandler.php:48)"} []
    [2024-01-22T19:26:30.585493+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Not passing a secret to "Contao\Image\DeferredResizer::__construct()" has been deprecated and will no longer work in version 2.0. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Not passing a secret to \"Contao\\Image\\DeferredResizer::__construct()\" has been deprecated and will no longer work in version 2.0. at /html/cto/cto_5_Beta/vendor/contao/image/src/DeferredResizer.php:53)"} []
    [2024-01-22T19:26:30.585538+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Not passing a secret to "Contao\Image\Resizer::__construct()" has been deprecated and will no longer work in version 2.0. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Not passing a secret to \"Contao\\Image\\Resizer::__construct()\" has been deprecated and will no longer work in version 2.0. at /html/cto/cto_5_Beta/vendor/contao/image/src/Resizer.php:74)"} []
    [2024-01-22T19:26:30.596312+01:00] php.INFO: User Deprecated: Class "Nyholm\Psr7\Factory\HttplugFactory" is deprecated since version 1.8, use "Nyholm\Psr7\Factory\Psr17Factory" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class \"Nyholm\\Psr7\\Factory\\HttplugFactory\" is deprecated since version 1.8, use \"Nyholm\\Psr7\\Factory\\Psr17Factory\" instead. at /html/cto/cto_5_Beta/vendor/nyholm/psr7/src/Factory/HttplugFactory.php:18)"} []
    [2024-01-22T19:26:30.600212+01:00] php.INFO: User Deprecated: Since contao/core-bundle 5.0: Using "Contao\Environment::request()" has been deprecated and will no longer work in Contao 6.0. Use "Contao\Environment::requestUri" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/core-bundle 5.0: Using \"Contao\\Environment::request()\" has been deprecated and will no longer work in Contao 6.0. Use \"Contao\\Environment::requestUri\" instead. at /html/cto/cto_5_Beta/vendor/contao/core-bundle/contao/library/Contao/Environment.php:329)"} []
    [2024-01-22T19:26:30.600274+01:00] php.INFO: User Deprecated: Since contao/core-bundle 5.0: Using "Contao\Environment::script()" has been deprecated and will no longer work in Contao 6.0. Use "Contao\Environment::scriptName" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/core-bundle 5.0: Using \"Contao\\Environment::script()\" has been deprecated and will no longer work in Contao 6.0. Use \"Contao\\Environment::scriptName\" instead. at /html/cto/cto_5_Beta/vendor/contao/core-bundle/contao/library/Contao/Environment.php:317)"} []
    [2024-01-22T19:26:30.603631+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.603661+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.603686+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.606569+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.606597+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.606619+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.606637+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.609022+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.609050+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.609074+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.609093+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.609111+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.609129+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.609751+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.609780+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.611624+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.611653+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.614397+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.614424+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.614447+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.614467+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.614485+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.614503+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.614521+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.614538+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.616533+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.616565+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.616585+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617599+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617630+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617651+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617677+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617693+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617709+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617728+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617745+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617764+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.617780+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.620352+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.620376+01:00] php.WARNING: Warning: Undefined array key "subitems" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"subitems\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.620398+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.620414+01:00] php.WARNING: Warning: Undefined array key "subitems" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"subitems\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.620429+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.620450+01:00] php.WARNING: Warning: Undefined array key "subitems" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"subitems\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.620465+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.620489+01:00] php.WARNING: Warning: Undefined array key "subitems" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"subitems\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.631748+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.631777+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.631797+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.633710+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.633737+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.633757+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.633773+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.635719+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.635746+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.635770+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.635788+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.635804+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.635825+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.636436+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.636462+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.637898+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.637928+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.640098+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.640125+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.640144+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.640163+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.640179+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.640195+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.640210+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.640225+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.641816+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.641842+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.641862+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.642922+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.642950+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.642971+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.642992+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.643017+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.643034+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.643050+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.643073+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.643090+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.643109+01:00] php.WARNING: Warning: Undefined array key "nofollow" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"nofollow\" at /html/cto/cto_5_Beta/templates/nav_default.html5:7)"} []
    [2024-01-22T19:26:30.689931+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:74)"} []
    [2024-01-22T19:26:30.689984+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:48)"} []
    [2024-01-22T19:26:30.690019+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:74)"} []
    [2024-01-22T19:26:30.699192+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:74)"} []
    [2024-01-22T19:26:30.699236+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:48)"} []
    [2024-01-22T19:26:30.699273+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:74)"} []
    [2024-01-22T19:26:30.703108+01:00] php.INFO: Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated at /html/cto/cto_5_Beta/vendor/contao/core-bundle/contao/library/Contao/Environment.php:400)"} []
    [2024-01-22T19:26:30.707475+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:74)"} []
    [2024-01-22T19:26:30.707510+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:48)"} []
    [2024-01-22T19:26:30.707535+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:74)"} []
    [2024-01-22T19:26:30.707561+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:48)"} []
    [2024-01-22T19:26:30.712302+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:74)"} []
    [2024-01-22T19:26:30.712333+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:48)"} []
    [2024-01-22T19:26:30.712362+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawSources() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:74)"} []
    [2024-01-22T19:26:30.712384+01:00] php.INFO: User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since contao/image 1.2: Passing NULL as $rootDir is deprecated and will no longer work in version 2.0. Use the getRawImg() method instead. at /html/cto/cto_5_Beta/vendor/contao/image/src/Picture.php:48)"} []
    [2024-01-22T19:26:30.714058+01:00] php.CRITICAL: Uncaught Error: Class "Image" not found {"exception":"[object] (Error(code: 0): Class \"Image\" not found at /html/cto/cto_5_Beta/templates/news_latest_mit_downloads.html5:27)"} []
    [2024-01-22T19:26:30.781430+01:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "Image" from the global namespace. Did you forget a "use" statement for e.g. "Symfony\Component\DomCrawler\Image", "League\CommonMark\Extension\CommonMark\Node\Inline\Image", "Imagine\Imagick\Image", "Imagine\Gmagick\Image", "Imagine\Gd\Image", "FeedIo\Rule\Image", "Contao\ImagineSvg\Image" or "Contao\Image\Image"?" at news_latest_mit_downloads.html5 line 27 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\ClassNotFoundError(code: 0): Attempted to load class \"Image\" from the global namespace.\nDid you forget a \"use\" statement for e.g. \"Symfony\\Component\\DomCrawler\\Image\", \"League\\CommonMark\\Extension\\CommonMark\\Node\\Inline\\Image\", \"Imagine\\Imagick\\Image\", \"Imagine\\Gmagick\\Image\", \"Imagine\\Gd\\Image\", \"FeedIo\\Rule\\Image\", \"Contao\\ImagineSvg\\Image\" or \"Contao\\Image\\Image\"? at /html/cto/cto_5_Beta/templates/news_latest_mit_downloads.html5:27)"} []
    [2024-01-22T19:26:30.818547+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-22T19:26:30.818729+01:00] messenger.INFO: Received message Contao\CoreBundle\Messenger\Message\SearchIndexMessage {"class":"Contao\\CoreBundle\\Messenger\\Message\\SearchIndexMessage"} []
    [2024-01-22T19:26:30.820100+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"} []
    Hat jemand eine Idee, was ich da falsch mache bzw. was wie wo ändern muß?

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.109
    Partner-ID
    10107

    Standard

    Warum versuchst du auf Contao 5.1 zu aktualisieren? Contao 5.1 hat schon lange das Lebensende erreicht.

    Nachdem du auf Contao 5.2 oder 5.3 aktualisiert hast kannst du den Debug-Modus nutzen, um mehr über den Fehler zu erfahren.
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Wandelndes Contao-Lexikon Avatar von BugBuster
    Registriert seit
    15.06.2009.
    Ort
    Berlin
    Beiträge
    10.513
    User beschenken
    Wunschliste

    Standard

    Was steht denn in "news_latest_mit_downloads.html5 line 27" ?
    Grüße, BugBuster
    "view source" is your guide.
    Danke an alle Amazon Wunschlisten Erfüller

  4. #4
    Alter Contao-Hase
    Registriert seit
    12.10.2010.
    Beiträge
    1.026

    Standard

    Ich habe das Ganze nochmal durchgeführt in einer Testumgebung und das Update von Contao 5.x.x auf Contao 5.2.8, was geklappt hat.

    Was nicht im Frontend funktioniert sind jene Seiten, welche mit der Erweiterung codefog/contao-news_categories verbunden sind.
    Ich hatte diese für Contao 5.0 anpassen lassen. Es kommt in der Logdatei folgende Fehlermeldung:

    Code:
    [2024-01-23T14:02:01.534128+01:00] request.INFO: Matched route "tl_page.36". {"route":"tl_page.36","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.36","parameters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.36","_route_object":{"Contao\\CoreBundle\\Routing\\Page\\PageRoute":[]}},"request_uri":"https://test.internet-projekt-service.de/aktuelle-blog-nachrichten","method":"GET"} []
    [2024-01-23T14:02:01.676733+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_5x/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_5x/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165 at /html/cto_5x/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:282)"} []
    [2024-01-23T14:02:01.678459+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_5x/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165" at NewsCriteria.php line 282 {"exception":"[object] (TypeError(code: 0): Codefog\\NewsCategoriesBundle\\Criteria\\NewsCriteria::setLimit(): Argument #1 ($limit) must be of type int, null given, called in /html/cto_5x/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165 at /html/cto_5x/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:282)"} []
    [2024-01-23T14:02:01.836994+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-23T14:02:01.837386+01:00] messenger.INFO: Received message Contao\CoreBundle\Messenger\Message\SearchIndexMessage {"class":"Contao\\CoreBundle\\Messenger\\Message\\SearchIndexMessage"} []
    [2024-01-23T14:02:01.841258+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"} []
    Ich wende mich mit diesem Problem parallel auch zum Entwickler, aber hat vielleicht schon mal jemand eventuell eine Idee?

    Die Website Startseite, die funktioniert, die Blog-Unterseiten aber nicht.


    Nachtrag:

    html/cto_5x/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165

    Unbenannt-1.jpg


    /html/cto_5x/vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:282)

    Unbenannt-2.jpg
    Geändert von Schnippel (23.01.2024 um 13:39 Uhr)

  5. #5
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.109
    Partner-ID
    10107

    Standard

    Zitat Zitat von Schnippel Beitrag anzeigen
    Was nicht im Frontend funktioniert sind jene Seiten, welche mit der Erweiterung codefog/contao-news_categories verbunden sind.
    Dafür gibt es noch keinen offiziellen Release für Contao 5.


    Zitat Zitat von Schnippel Beitrag anzeigen
    Ich hatte diese für Contao 5.0 anpassen lassen.
    Was genau meinst du damit? Als privater Fork?


    Zitat Zitat von Schnippel Beitrag anzeigen
    Es kommt in der Logdatei folgende Fehlermeldung:
    Wie schon mehrmals erwähnt solltest du immer den Debug-Modus nutzen und den Stack Trace posten.
    » sponsor me via GitHub or PayPal or Revolut

  6. #6
    Alter Contao-Hase
    Registriert seit
    12.10.2010.
    Beiträge
    1.026

    Standard

    den Debug-Modus nutzen und den Stack Trace posten
    Das hier?


    Code:
    TypeError:
    Codefog\NewsCategoriesBundle\Criteria\NewsCriteria::setLimit(): Argument #1 ($limit) must be of type int, null given, called in /html/cto_5x/vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php on line 165
    
      at vendor/codefog/contao-news_categories/src/Criteria/NewsCriteria.php:282
      at Codefog\NewsCategoriesBundle\Criteria\NewsCriteria->setLimit(null)
         (vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php:165)
      at Codefog\NewsCategoriesBundle\FrontendModule\NewsArchiveModule->fetchNewsItems(0, 1706017269)
         (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), false, 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)

  7. #7
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.109
    Partner-ID
    10107

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Dafür gibt es noch keinen offiziellen Release für Contao 5.
    Version 4 mit Contao 5 Kompatibilität wurde nun veröffentlicht
    » sponsor me via GitHub or PayPal or Revolut

  8. #8
    Alter Contao-Hase
    Registriert seit
    12.10.2010.
    Beiträge
    1.026

    Standard

    Version 4 mit Contao 5 Kompatibilität wurde nun veröffentlicht
    na das sind doch super Neuigkeiten *freu*
    Großes Dank an alle Entwickler, die das ermöglichen.

    Wäre die Version dann auch für Contao 5.3 etc. stabil einsatzfähig?

  9. #9
    Alter Contao-Hase
    Registriert seit
    12.10.2010.
    Beiträge
    1.026

    Standard

    Funtkioniert im Frontend doch noch nicht.

    Habe es mit Contao 5.2.8 probiert, sowie aktuell in mit Contao 5.1.11

    Es kommt folgende Meldung im Trace:
    Codefog\NewsCategoriesBundle\Criteria\NewsCriteria ::setLimit(): Argument #1 ($limit) must be of type int, null given, called in /html/cto_5x/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_5x/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, 1706170320)
         (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), false, 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:76)
      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)

    Und hier die vendor/codefog/contao-news_categories/src/FrontendModule/NewsArchiveModule.php
    PHP-Code:
    <?php

    declare(strict_types=1);

    /*
     * News Categories Bundle for Contao Open Source CMS.
     *
     * @copyright  Copyright (c) 2017, Codefog
     * @author     Codefog <https://codefog.pl>
     * @license    MIT
     */

    namespace Codefog\NewsCategoriesBundle\FrontendModule;

    use 
    Codefog\NewsCategoriesBundle\Criteria\NewsCriteria;
    use 
    Codefog\NewsCategoriesBundle\Criteria\NewsCriteriaBuilder;
    use 
    Codefog\NewsCategoriesBundle\Exception\CategoryNotFoundException;
    use 
    Contao\Config;
    use 
    Contao\CoreBundle\Exception\PageNotFoundException;
    use 
    Contao\Date;
    use 
    Contao\Environment;
    use 
    Contao\Input;
    use 
    Contao\Model\Collection;
    use 
    Contao\ModuleNewsArchive;
    use 
    Contao\NewsModel;
    use 
    Contao\PageModel;
    use 
    Contao\Pagination;
    use 
    Contao\System;
    use 
    Contao\Template;

    /**
     * @property Template $Template
     */
    class NewsArchiveModule extends ModuleNewsArchive
    {
        protected function 
    compile(): void
        
    {
            
    /** @var PageModel $objPage */
            
    global $objPage;

            
    $limit null;
            
    $offset 0;
            
    $intBegin 0;
            
    $intEnd 0;

            
    $intYear = (int) Input::get('year');
            
    $intMonth = (int) Input::get('month');
            
    $intDay = (int) Input::get('day');

            
    // Jump to the current period
            
    if (!isset($_GET['year']) && !isset($_GET['month']) && !isset($_GET['day']) && 'all_items' !== $this->news_jumpToCurrent) {
                switch (
    $this->news_format) {
                    case 
    'news_year':
                        
    $intYear date('Y');
                        break;

                    default:
                    case 
    'news_month':
                        
    $intMonth date('Ym');
                        break;

                    case 
    'news_day':
                        
    $intDay date('Ymd');
                        break;
                }
            }

            
    // Create the date object
            
    try {
                if (
    $intYear) {
                    
    $intDate $intYear;
                    
    $objDate = new Date($intDate'Y');
                    
    $intBegin $objDate->yearBegin;
                    
    $intEnd $objDate->yearEnd;
                    
    $this->headline .= ' '.date('Y'$objDate->tstamp);
                } elseif (
    $intMonth) {
                    
    $intDate $intMonth;
                    
    $objDate = new Date($intDate'Ym');
                    
    $intBegin $objDate->monthBegin;
                    
    $intEnd $objDate->monthEnd;
                    
    $this->headline .= ' '.Date::parse('F Y'$objDate->tstamp);
                } elseif (
    $intDay) {
                    
    $intDate $intDay;
                    
    $objDate = new Date($intDate'Ymd');
                    
    $intBegin $objDate->dayBegin;
                    
    $intEnd $objDate->dayEnd;
                    
    $this->headline .= ' '.Date::parse($objPage->dateFormat$objDate->tstamp);
                } elseif (
    'all_items' === $this->news_jumpToCurrent) {
                    
    $intBegin 0;
                    
    $intEnd time();
                }
            } catch (\
    OutOfBoundsException) {
                throw new 
    PageNotFoundException('Page not found: '.Environment::get('uri'));
            }

            
    $this->Template->articles = [];

            
    // Split the result
            
    if ($this->perPage 0) {
                
    // Get the total number of items
                
    $intTotal $this->countNewsItems($intBegin$intEnd);

                if (
    $intTotal 0) {
                    
    $total $intTotal;

                    
    // Get the current page
                    
    $id 'page_a'.$this->id;
                    
    $page = (int) (Input::get($id) ?? 1);

                    
    // Do not index or cache the page if the page number is outside the range
                    
    if ($page || $page max(ceil($total $this->perPage), 1)) {
                        throw new 
    PageNotFoundException('Page not found: '.Environment::get('uri'));
                    }

                    
    // Set limit and offset
                    
    $limit = (int) $this->perPage;
                    
    $offset = (max($page1) - 1) * $this->perPage;

                    
    // Add the pagination menu
                    
    $objPagination = new Pagination($total$this->perPageConfig::get('maxPaginationLinks'), $id);
                    
    $this->Template->pagination $objPagination->generate("\n  ");
                }
            }

            
    // Get the news items
            
    if (isset($limit)) {
                
    $objArticles $this->fetchNewsItems($intBegin$intEnd$limit$offset);
            } else {
                
    $objArticles $this->fetchNewsItems($intBegin$intEnd);
            }

            
    // Add the articles
            
    if (null !== $objArticles) {
                
    $this->Template->articles $this->parseArticles($objArticles);
            }

            
    $this->Template->headline trim($this->headline);
            
    $this->Template->back $GLOBALS['TL_LANG']['MSC']['goBack'];
            
    $this->Template->empty $GLOBALS['TL_LANG']['MSC']['empty'];
        }

        
    /**
         * Count the news items.
         */
        
    protected function countNewsItems(int $beginint $end): int
        
    {
            if (
    null === ($criteria $this->getSearchCriteria($begin$end))) {
                return 
    0;
            }

            return 
    NewsModel::countBy($criteria->getColumns(), $criteria->getValues());
        }

        
    /**
         * Fetch the news items.
         *
         * @return Collection<NewsModel>|null
         */
        
    protected function fetchNewsItems(int $beginint $endint|null $limit nullint|null $offset null): Collection|null
        
    {
            if (
    null === ($criteria $this->getSearchCriteria($begin$end))) {
                return 
    null;
            }

            
    $criteria->setLimit($limit);
            
    $criteria->setOffset($offset);

            return 
    NewsModel::findBy($criteria->getColumns(), $criteria->getValues(), $criteria->getOptions());
        }

        
    /**
         * Get the search criteria.
         *
         * @throws PageNotFoundException
         */
        
    protected function getSearchCriteria(int $beginint $end): NewsCriteria|null
        
    {
            try {
                
    $criteria System::getContainer()
                    ->
    get(NewsCriteriaBuilder::class)
                    ->
    getCriteriaForArchiveModule($this->news_archives$begin$end$this)
                ;
            } catch (
    CategoryNotFoundException $e) {
                throw new 
    PageNotFoundException($e->getMessage(), 0$e);
            }

            return 
    $criteria;
        }
    }

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •