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 2 weeks ago
    [preflight] The following restricted PHP modes have non-empty values: {open_basedir}. This configuration is incompatible with drush.

    Same with Drush 13 + PHP 8.3

  • 1 month 2 weeks ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    Initializing...

    Error : Failed to install the required package 'RPM' by using APT. Please install it manually. 

    Exit


    Solution:

  • 1 month 2 weeks ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:

  • 1 month 3 weeks ago
    No route found for the specified format html. Supported formats: csv, json. (Drupal Routing)

    I have a view with a path like /my-content-export to export entivies as JSON or CSV.

  • 1 month 3 weeks ago
    InvalidArgumentException: The controller for URI "/admin/flush" is not callable.

    admin_toolbar 3.5.2 is the reason. Patch coming ...

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

    Drupal 10.4:

  • 2 months 3 weeks ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr

    Tools & Settings >> Security Policy :

     Allow only secure FTPS connections 

  • 4 months ago
    MariaDB Server Performance Optimieren

     

    /usr/sbin/mariadbd --help --verbose | grep "query.*size"
  • 4 months ago
    MariaDB Server Performance Optimieren

    Commandline:

    systemctl restart mariadb
  • 4 months ago
    MariaDB Server Performance Optimieren

    After my changes in /etc/mysql/db-performance.cnf