🇮🇳India sreyas
The admin login page is only working with the default theme, Claro, version 9.5.9. Then we switch to our custom theme. The admin login page is currently not working. The error is shown in the UrlHelper.php file in the core. How do I solve this?
The website encountered an unexpected error. Please try again later.
TypeError: rawurlencode(): Argument #1 ($string) must be of type string, stdClass given in rawurlencode() (line 58 of core/lib/Drupal/Component/Utility/UrlHelper.php).
rawurlencode(Object) (Line: 58)
Drupal\Component\Utility\UrlHelper::buildQuery(Array) (Line: 691)
Drupal\Core\Menu\MenuTreeStorage->loadByRoute('role_login_page.route0', Array, 'main') (Line: 336)
Drupal\Core\Menu\MenuLinkManager->loadLinksByRoute('role_login_page.route0', Array, 'main') (Line: 134)
Drupal\Core\Menu\MenuActiveTrail->getActiveLink('main') (Line: 105)
Drupal\Core\Menu\MenuActiveTrail->doGetActiveTrailIds('main') (Line: 71)
Drupal\Core\Menu\MenuActiveTrail->resolveCacheMiss('main') (Line: 149)
Drupal\Core\Cache\CacheCollector->get('main') (Line: 92)
Drupal\Core\Menu\MenuActiveTrail->getActiveTrailIds('main') (Line: 35)
Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext->getContext('main') (Line: 123)
Drupal\Core\Cache\Context\CacheContextsManager->convertTokensToKeys(Array) (Line: 317)
Drupal\Core\Render\RenderCache->createCacheID(Array) (Line: 66)
Drupal\Core\Render\RenderCache->get(Array) (Line: 109)
Drupal\Core\Render\PlaceholderingRenderCache->get(Array) (Line: 273)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 56)
__TwigTemplate_d06119d08f7af17c316c6cf93255c9ec->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/cca_theme/templates/layout/row.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('row', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 47)
__TwigTemplate_ae2cd87eae5b8c274cd2f3993499a470->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/cca_theme/templates/generated/page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 107)
__TwigTemplate_8a9809902c425d83f989828808f29e69->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/cca_theme/templates/layout/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 163)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
🇮🇳India sreyas
🇮🇳India sreyas
We are developing a new Drupal site, version 9.5.3. We have installed the role login page module used for admin login. Then updated to Drupal 9.5.9. However, the admin login page is broken after the upgrade. Then I downgraded Drupal 9.5.9 to 9.5.8. Now the admin login page is working. I think this module is not compatible with this version.