Error on install: TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given în htmlspecialchars()

Created on 14 March 2024, 8 months ago

Hello,

Just tried to install the latest version, 1.41 and got WSOD. I'm using Drupal 10.2.1 with PHP 8.1.24
The logged error:
TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given în htmlspecialchars() (linia 437 din /public_html/web/core/lib/Drupal/Component/Utility/Html.php).

#0 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Component/Utility/Html.php(437): htmlspecialchars()
#1 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Component/Render/FormattableMarkup.php(268): Drupal\Component\Utility\Html::escape()
#2 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Component/Render/FormattableMarkup.php(217): Drupal\Component\Render\FormattableMarkup::placeholderEscape()
#3 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php(195): Drupal\Component\Render\FormattableMarkup::placeholderFormat()
#4 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Component/Utility/ToStringTrait.php(15): Drupal\Core\StringTranslation\TranslatableMarkup->render()
#5 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/Messenger/Messenger.php(54): Drupal\Core\StringTranslation\TranslatableMarkup->__toString()
#6 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/Messenger/Messenger.php(46): Drupal\Core\Messenger\Messenger->addMessage()
#7 /var/www/inghetata_thai/public_html/web/core/includes/install.inc(967): Drupal\Core\Messenger\Messenger->addError()
#8 /var/www/inghetata_thai/public_html/web/core/modules/system/src/Form/ModulesListForm.php(463): drupal_check_module()
#9 /var/www/inghetata_thai/public_html/web/core/modules/system/src/Form/ModulesListForm.php(481): Drupal\system\Form\ModulesListForm->buildModuleList()
#10 [internal function]: Drupal\system\Form\ModulesListForm->submitForm()
#11 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/Form/FormSubmitter.php(129): call_user_func_array()
#12 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/Form/FormSubmitter.php(67): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers()
#13 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm()
#14 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm()
#15 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#16 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#17 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#18 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#19 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#20 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#21 /var/www/inghetata_thai/public_html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#22 /var/www/inghetata_thai/public_html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#23 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#24 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#25 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#26 /var/www/inghetata_thai/public_html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#27 /var/www/inghetata_thai/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#28 /var/www/inghetata_thai/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#29 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#30 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#31 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#32 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#33 /var/www/inghetata_thai/public_html/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#34 /var/www/inghetata_thai/public_html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#35 {main}

Thanks!

🐛 Bug report
Status

Closed: works as designed

Version

1.4

Component

Code

Created by

🇷🇴Romania gge

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

Comments & Activities

Production build 0.71.5 2024