Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295818

LogicException: Cannot use UTF-8 route patterns without setting the "utf8" option for route

$
0
0

Problem/Motivation

i am trying to upgrade a 8.9.3 site to 9.0.3.
after running /update.php i get an error and upgrade don't proceed.
in report i can see this:

LogicException: Cannot use UTF-8 route patterns without setting the "utf8" option for route "/\xd8 ***". in /var/www/html/***/vendor/symfony/routing/RouteCompiler.php on line 114 #0 /var/www/html/***/vendor/symfony/routing/RouteCompiler.php(74): Symfony\\Component\\Routing\\RouteCompiler::compilePattern(Object(Symfony\\Component\\Routing\\Route), '/\\xD8\\***', false)\n#1 /var/www/html/***/vendor/symfony/routing/Route.php(573): Symfony\\Component\\Routing\\RouteCompiler::compile(Object(Symfony\\Component\\Routing\\Route))\n#2 /var/www/html/***/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php(30): Symfony\\Component\\Routing\\Route->compile()\n#3 /var/www/html/***/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php(45): Drupal\\Core\\EventSubscriber\\SpecialAttributesRouteSubscriber->alterRoutes(Object(Symfony\\Component\\Routing\\RouteCollection))\n#4 [internal function]: Drupal\\Core\\EventSubscriber\\SpecialAttributesRouteSubscriber->onAlterRoutes(Object(Drupal\\Core\\Routing\\RouteBuildEvent), 'routing.route_a...', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\n#5 /var/www/html/***/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Drupal\\Core\\Routing\\RouteBuildEvent), 'routing.route_a...', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\n#6 /var/www/html/***/core/lib/Drupal/Core/Routing/RouteBuilder.php(189): Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch('routing.route_a...', Object(Drupal\\Core\\Routing\\RouteBuildEvent))\n#7 /var/www/html/***/core/lib/Drupal/Core/Routing/RouteBuilder.php(210): Drupal\\Core\\Routing\\RouteBuilder->rebuild()\n#8 /var/www/html/***/core/lib/Drupal/Core/Routing/RouteBuilder.php(222): Drupal\\Core\\Routing\\RouteBuilder->rebuildIfNeeded()\n#9 /var/www/html/***/core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php(51): Drupal\\Core\\Routing\\RouteBuilder->destruct()\n#10 /var/www/html/***/vendor/symfony/event-dispatcher/LegacyEventDispatcherProxy.php(78): Drupal\\Core\\EventSubscriber\\KernelDestructionSubscriber->onKernelTerminate(Object(Symfony\\Component\\HttpKernel\\Event\\TerminateEvent), 'kernel.terminat...', Object(Symfony\\Component\\EventDispatcher\\LegacyEventDispatcherProxy))\n#11 /var/www/html/***/vendor/symfony/http-kernel/HttpKernel.php(100): Symfony\\Component\\EventDispatcher\\LegacyEventDispatcherProxy->dispatch(Object(Symfony\\Component\\HttpKernel\\Event\\TerminateEvent), 'kernel.terminat...')\n#12 /var/www/html/***/vendor/stack/builder/src/Stack/StackedHttpKernel.php(32): Symfony\\Component\\HttpKernel\\HttpKernel->terminate(Object(Symfony\\Component\\HttpFoundation\\Request), Object(Drupal\\Core\\Routing\\LocalRedirectResponse))\n#13 /var/www/html/***/core/lib/Drupal/Core/DrupalKernel.php(683): Stack\\StackedHttpKernel->terminate(Object(Symfony\\Component\\HttpFoundation\\Request), Object(Drupal\\Core\\Routing\\LocalRedirectResponse))\n#14 /var/www/html/***/index.php(22): Drupal\\Core\\DrupalKernel->terminate(Object(Symfony\\Component\\HttpFoundation\\Request), Object(Drupal\\Core\\Routing\\LocalRedirectResponse))\n#15 {main}, referer: http://***/admin/structure/views/view/application_page

i use UTF-8 but non English character for views page path
i changed all of those to English character and site updated successfully
after update if i revert views path to non English, i get 404 not found for those pages.
it seems there are problems with views page path and non English character in 9


Viewing all articles
Browse latest Browse all 295818

Trending Articles