TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type ?string, Drupal\Core\StringTranslation\TranslatableMarkup given

Created on 11 October 2022, about 2 years ago
Updated 23 May 2023, over 1 year ago

After setting up an LDAP server on Drupal 9.4.4, with the Drupal Roles Authorization consumer module enabled, when trying to add an Authorization profile, I'm getting this error:

TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type ?string, Drupal\Core\StringTranslation\TranslatableMarkup given, called in /var/www/html/lcndrupalmigration/modules/contrib/authorization/src/Form/AuthorizationProfileForm.php on line 249 in Drupal\Component\Utility\Html::escape() (line 426 of /var/www/html/lcndrupalmigration/core/lib/Drupal/Component/Utility/Html.php)
#0 /var/www/html/lcndrupalmigration/modules/contrib/authorization/src/Form/AuthorizationProfileForm.php(249): Drupal\Component\Utility\Html::escape()
#1 /var/www/html/lcndrupalmigration/modules/contrib/authorization/src/Form/AuthorizationProfileForm.php(176): Drupal\authorization\Form\AuthorizationProfileForm->getProviderOptions()
#2 /var/www/html/lcndrupalmigration/modules/contrib/authorization/src/Form/AuthorizationProfileForm.php(126): Drupal\authorization\Form\AuthorizationProfileForm->buildEntityForm()
#3 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/Entity/EntityForm.php(106): Drupal\authorization\Form\AuthorizationProfileForm->form()
#4 [internal function]: Drupal\Core\Entity\EntityForm->buildForm()
#5 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/Form/FormBuilder.php(591): call_user_func_array()
#6 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/Form/FormBuilder.php(279): Drupal\Core\Form\FormBuilder->retrieveForm()
#7 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#8 /var/www/html/lcndrupalmigration/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult()
#9 [internal function]: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult()
#10 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#11 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#13 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#14 /var/www/html/lcndrupalmigration/vendor/symfony/http-kernel/HttpKernel.php(159): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#15 /var/www/html/lcndrupalmigration/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#16 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#17 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#18 /var/www/html/lcndrupalmigration/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#19 /var/www/html/lcndrupalmigration/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#20 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#21 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#22 /var/www/html/lcndrupalmigration/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#23 /var/www/html/lcndrupalmigration/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#24 /var/www/html/lcndrupalmigration/index.php(19): Drupal\Core\DrupalKernel->handle()
#25 {main}
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States webdrips

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024