Contao-Summit 2026

Ankündigung

Collapse
No announcement yet.

Version 4.12.x-dev - The SessionBagInterface "contao_backend" is not registered.

Collapse
X
 
  • Filter
  • Zeit
  • Show
Clear All
new posts

    Version 4.12.x-dev - The SessionBagInterface "contao_backend" is not registered.

    Hallo,

    bei meiner Testinstallation tritt seit gestrigem Update (4.12.x-dev) folgender Fehler auf und FE / BE sind nicht mehr erreichbar:

    Code:
    [2021-07-30T14:08:58.528395+02:00] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_route":"contao_install","_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction"},"request_uri":"https://test.nightwing.eu/contao/install","method":"GET"} []
    [2021-07-30T14:08:58.534025+02:00] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The SessionBagInterface "contao_backend" is not registered." at /www/htdocs/xyxyxyxy/_test/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 317 {"exception":"[object] (InvalidArgumentException(code: 0): The SessionBagInterface \"contao_backend\" is not registered. at /www/htdocs/xyxyxyxy/_test/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:317)"} []
    [2021-07-30T14:08:58.737448+02:00] request.INFO: Matched route "contao_core_favicon__invoke". {"route":"contao_core_favicon__invoke","route_parameters":{"_route":"contao_core_favicon__invoke","_scope":"frontend","_controller":"Contao\\CoreBundle\\Controller\\FaviconController"},"request_uri":"https://test.nightwing.eu/favicon.ico","method":"GET"} []
    [2021-07-30T14:08:58.757967+02:00] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2021-07-30T14:08:58.762903+02:00] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The SessionBagInterface "contao_backend" is not registered." at /www/htdocs/xyxyxyxy/_test/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 317 {"exception":"[object] (InvalidArgumentException(code: 0): The SessionBagInterface \"contao_backend\" is not registered. at /www/htdocs/xyxyxyxy/_test/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:317)"} []
    [2021-07-30T14:09:00.630246+02:00] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_route":"contao_install","_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction"},"request_uri":"https://test.nightwing.eu/contao/install","method":"GET"} []
    [2021-07-30T14:09:00.635775+02:00] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The SessionBagInterface "contao_backend" is not registered." at /www/htdocs/xyxyxyxy/_test/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 317 {"exception":"[object] (InvalidArgumentException(code: 0): The SessionBagInterface \"contao_backend\" is not registered. at /www/htdocs/xyxyxyxy/_test/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:317)"} []
    [2021-07-30T14:09:00.859576+02:00] request.INFO: Matched route "contao_core_favicon__invoke". {"route":"contao_core_favicon__invoke","route_parameters":{"_route":"contao_core_favicon__invoke","_scope":"frontend","_controller":"Contao\\CoreBundle\\Controller\\FaviconController"},"request_uri":"https://test.nightwing.eu/favicon.ico","method":"GET"} []
    [2021-07-30T14:09:00.882533+02:00] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2021-07-30T14:09:00.887639+02:00] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The SessionBagInterface "contao_backend" is not registered." at /www/htdocs/xyxyxyxy/_test/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 317 {"exception":"[object] (InvalidArgumentException(code: 0): The SessionBagInterface \"contao_backend\" is not registered. at /www/htdocs/xyxyxyxy/_test/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:317)"} []
    ToM
    Mein kleiner Contao Spielplatz

    #2
    Kann ich bei mir nicht reproduzieren.
    » sponsor me via GitHub or Revolut

    Comment


      #3
      Das macht die Sache natürlich doof...
      Hier noch die composer.json, vorhin vergessen:
      Code:
      {
          "require": {
              "contao/calendar-bundle": "4.12.x-dev",
              "contao/comments-bundle": "4.12.x-dev",
              "contao/conflicts": "*@dev",
              "contao/faq-bundle": "4.12.x-dev",
              "contao/listing-bundle": "4.12.x-dev",
              "contao/manager-bundle": "4.12.x-dev",
              "contao/news-bundle": "4.12.x-dev",
              "contao/newsletter-bundle": "4.12.x-dev",
              "markocupic/be_email": "^3.3"
          },
          "minimum-stability": "dev",
          "prefer-stable": true,
          "extra": {
                  "contao-component-dir": "assets"
              },
          "conflict": {
              },
          "scripts": {
              "post-install-cmd": [
                  "@php vendor/bin/contao-setup"
              ],
              "post-update-cmd": [
                  "@php vendor/bin/contao-setup"
              ]
          }
      }
      Ich schick Dir gleich noch ne PN, kannst es Dir gerne live ansehen.

      ToM
      Mein kleiner Contao Spielplatz

      Comment


        #4
        Nutze den Debug-Modus und poste den Stack Trace.
        » sponsor me via GitHub or Revolut

        Comment


          #5
          Zitat von Nightwing Beitrag anzeigen
          Das macht die Sache natürlich doof...
          Hier noch die composer.json, vorhin vergessen:
          Code:
          {
              "require": {
                  "contao/calendar-bundle": "4.12.x-dev",
                  "contao/comments-bundle": "4.12.x-dev",
                  "contao/conflicts": "*@dev",
                  "contao/faq-bundle": "4.12.x-dev",
                  "contao/listing-bundle": "4.12.x-dev",
                  "contao/manager-bundle": "4.12.x-dev",
                  "contao/news-bundle": "4.12.x-dev",
                  "contao/newsletter-bundle": "4.12.x-dev",
                  "markocupic/be_email": "^3.3"
              },
              "minimum-stability": "dev",
              "prefer-stable": true,
              "extra": {
                      "contao-component-dir": "assets"
                  },
              "conflict": {
                  },
              "scripts": {
                  "post-install-cmd": [
                      "@php vendor/bin/contao-setup"
                  ],
                  "post-update-cmd": [
                      "@php vendor/bin/contao-setup"
                  ]
              }
          }
          Ich schick Dir gleich noch ne PN, kannst es Dir gerne live ansehen.

          ToM
          Mit dieser composer.json kann ich das Problem auch reproduzieren.
          » sponsor me via GitHub or Revolut

          Comment


            #6
            Würde ich gerne machen, wenn ich ins Backend käme...
            Ich sehe nur eine Fehlerseite, die mich dazu animiert, obiges Log zu Lesen.


            Okay, per CM und F5 geschafft:

            Code:
            InvalidArgumentException:
            The SessionBagInterface "contao_backend" is not registered.
            
              at vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:317
              at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('contao_backend')
                 (vendor/symfony/http-foundation/Session/Session.php:257)
              at Symfony\Component\HttpFoundation\Session\Session->getBag('contao_backend')
                 (vendor/contao/core-bundle/src/Framework/ContaoFramework.php:352)
              at Contao\CoreBundle\Framework\ContaoFramework->initializeLegacySessionAccess()
                 (vendor/contao/core-bundle/src/Framework/ContaoFramework.php:297)
              at Contao\CoreBundle\Framework\ContaoFramework->initializeFramework()
                 (vendor/contao/core-bundle/src/Framework/ContaoFramework.php:158)
              at Contao\CoreBundle\Framework\ContaoFramework->initialize()
                 (vendor/contao/core-bundle/src/HttpKernel/ModelArgumentResolver.php:50)
              at Contao\CoreBundle\HttpKernel\ModelArgumentResolver->supports(object(Request), object(ArgumentMetadata))
                 (vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php:43)
              at Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver->supports(object(Request), object(ArgumentMetadata))
                 (vendor/symfony/http-kernel/Controller/ArgumentResolver.php:52)
              at Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments(object(Request), array(object(BackendController), 'loginAction'))
                 (vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php:38)
              at Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver->getArguments(object(Request), array(object(BackendController), 'loginAction'))
                 (vendor/symfony/http-kernel/HttpKernel.php:149)
              at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
                 (vendor/symfony/http-kernel/HttpKernel.php:79)
              at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
                 (vendor/symfony/http-kernel/Kernel.php:199)
              at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
                 (web/index.php:31)
            ToM
            Mein kleiner Contao Spielplatz

            Comment


              #7
              Zitat von Spooky Beitrag anzeigen
              Mit dieser composer.json kann ich das Problem auch reproduzieren.
              Okay?!? Ist an dieser denn etwas falsch?

              ToM
              Mein kleiner Contao Spielplatz

              Comment


                #8
                Nein . Das Problem ist Symfony 5.3. PR kommt heute noch.
                » sponsor me via GitHub or Revolut

                Comment


                  #9
                  Alles klar, dankeschön und gerne

                  ToM
                  Mein kleiner Contao Spielplatz

                  Comment


                    #10
                    In Symfony 5.3 the session service and the SessionInterface have been deprecated (you are supposed to use $request->getSession() instead). The session service is now only an alias for the .sessi...
                    » sponsor me via GitHub or Revolut

                    Comment


                      #11
                      Mein Respekt, das ging ja schnell --> Fehler erfolgreich behoben.
                      Vielen Dank!

                      ToM
                      Mein kleiner Contao Spielplatz

                      Comment

                      Working...
                      X