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

  • 4 weeks 2 days ago
    Transaction isolation level REPEATABLE-READ The recommended level for Drupal is "READ COMMITTED". (Drupal Status Report)

     Edit "/etc/my.cnf" ( under [mysqld] ):

    transaction_isolation="READ-COMMITTED"

    Restart MariaDB / MySQL:

  • 1 month 1 week ago
    Wget - Eine Webseite rekursive downloaden

    wget -U 'Mozilla/MyUserAgent' -P MyTempDir123 --wait=0.2 --random-wait -nd -r -x -l 4 -e robots=off --reject

  • 1 month 1 week ago
    Wget - Eine Webseite rekursive downloaden

    wget -U 'Mozilla/MyUserAgent2024' -P MyOutPutDirectory --wait=1 --random-wait -nd -r -l 2 -e robots=off --reject

  • 2 months 1 week ago
    CPU benchmarking with sysbench (single-threaded/all cores)

     

    # sysbench --threads="$(nproc)" cpu run

  • 2 months 1 week ago
    CPU benchmarking with sysbench (single-threaded/all cores)

    # sysbench --threads="$(nproc)" cpu run

  • 2 months 1 week ago
    Linux Autovervollständigung - bash autocomplete
    source ~/.bashrc

    Diese Lösung wird empfohlen aber hat bei mir nicht funktioniert.

    Welche Alternative gibt es?

  • 2 months 1 week ago
    PHP-CLI auf PHP8.2 umstellen (für Composer, Drush etc)

    ln -snf /opt/plesk/php/8.3/bin/php /etc/alternatives/php

  • 2 months 2 weeks ago
    Drush Update failed (require php >=8.2)

    In composer.json, update: 

     

  • 2 months 2 weeks ago
    Drupal: Anmeldung fehlgeschlagen Es hat mehr als 5 fehlerhafte Anmeldeversuche für dieses Benutzerkonto gegeben. Es ist vorübergehend gesperrt.
    drush sqlq "DELETE FROM flood"
  • 2 months 2 weeks ago
    Drupal SMTP + Gmail funktioniert nicht mehr (Passwort ist richtig); was ist die Lösung?