Drupal 9 Upgrade from D8 - TypeError: Argument 2 passed to Symfony\Component\Routing\RouteCollection::add() must be an instance of Route, boolean given, called in RouteProvider.php on line 382 

TypeError: Argument 2 passed to Symfony\Component\Routing\RouteCollection::add() must be an instance of Route, boolean given, called in RouteProvider.php on line 382 

Drupal Update / Upgrade Error:

TypeError: Argument 2 passed to Symfony\Component\Routing\RouteCollection::add() must be an instance of Symfony\Component\Routing\Route, boolean given, called in
                                            /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/Routing/RouteProvider.php on line 382 in Symfony\Component\Routing\RouteCollection->add() (line 74 of
                                            /var/www/mywebsite5/httpdocs/vendor/symfony/routing/RouteCollection.php) #0 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/Routing/RouteProvider.php(382):
                                            Symfony\Component\Routing\RouteCollection->add('entity.node.can...', false)
                                            #1 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/Routing/RouteProvider.php(182): Drupal\Core\Routing\RouteProvider->getRoutesByPath('/node/42926')
                                            #2 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/Routing/Router.php(237): Drupal\Core\Routing\RouteProvider->getRouteCollectionForRequest(Object(Symfony\Component\HttpFoundation\Request))
                                            #3 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/Routing/Router.php(121): Drupal\Core\Routing\Router->getInitialRouteCollection(Object(Symfony\Component\HttpFoundation\Request))
                                            #4 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/Routing/AccessAwareRouter.php(92): Drupal\Core\Routing\Router->matchRequest(Object(Symfony\Component\HttpFoundation\Request))
                                            #5 /var/www/mywebsite5/httpdocs/vendor/symfony/http-kernel/EventListener/RouterListener.php(112):
                                            Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object(Symfony\Component\HttpFoundation\Request))
                                            #6 /var/www/mywebsite5/httpdocs/vendor/symfony/event-dispatcher/LegacyEventDispatcherProxy.php(78):
                                            Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\RequestEvent), 'kernel.request',
                                            Object(Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy))
                                            #7 /var/www/mywebsite5/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(134):
                                            Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy->dispatch(Object(Symfony\Component\HttpKernel\Event\RequestEvent), 'kernel.request')
                                            #8 /var/www/mywebsite5/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
                                            #9 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
                                            #10 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1,
                                            true)
                                            #11 /var/www/mywebsite5/httpdocs/core/modules/ban/src/BanMiddleware.php(50): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
                                            #12 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
                                            #13 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52):
                                            Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
                                            #14 /var/www/mywebsite5/httpdocs/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23):
                                            Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
                                            #15 /var/www/mywebsite5/httpdocs/core/lib/Drupal/Core/DrupalKernel.php(705): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
                                            #16 /var/www/mywebsite5/httpdocs/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare

  • 1 month ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    Das geht auch:

          $this->operator = $break->operator ?? '' ;
  • 1 month 1 week ago
    Bootstrap 5 subtheme is not properly configured. This may be caused by a problem with file or directory permissions.
  • 1 month ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    It works too:

    • web/core/modules/views/src/Plugin/views/argument/NumericArgument.php 

    Line 63, 96 :

  • 1 month 3 weeks ago
    Site URI : http://default (Drupal, how2 update config?)

    Add this line to drupalroot/vendor/drush/drush/drush.yml

  • 2 months 3 weeks ago
    Webserver CPU Performance Test mit PHP

    Time: 0,19 

    CPU: AMD Ryzen 7 PRO 3700 8-Core Processor

  • 4 months 2 weeks ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    Line 63, 99 :

  • 5 months 1 week ago
    Drupal + Basic_Auth Problem : You do not have permission to access this page (Sie haben keine Zugriffsberechtigung für diese Seite. )

    My problem was:

  • 5 months 1 week ago
    Drupal Upgrade (Drupal 9 » Drupal 10)

    I had this exact issue and your site was the only place I found the fix.

    It'd be nice if the module developer applied your fix though.

    Good work! Much appreciated!

  • 6 months 2 weeks ago
    The datasource with ID 'elstut--entity:node' could not be retrieved for index (Drupal, Solr)

    Hier ist die Lösung. (/admin/config/search/search-api/server/solr_server/edit)

    Multisite-Kompatibilität
     + Nur Ergebnisse von dieser Seite beziehen
     

  • 6 months 2 weeks ago
    PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

     

    Ich bekomme diese Fehlermeldung: