Problem/Motivation

Performing a composer require drupal/llm_support:^1.0.5 updates the release.

But when trying to install a recommended recipe in /admin/modules/browse/ai_dashboard_recommended, the following error appears: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type string, null given, called in /home/drupalcms/public_html/cms/web/core/lib/Drupal/Component/Render/FormattableMarkup.php on line 238

The project_browser error in dblog is: TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type string, null given, called in /home/drupalcms/public_html/cms/web/core/lib/Drupal/Component/Render/FormattableMarkup.php on line 238 in Drupal\Component\Utility\Html::escape() (line 433 of /home/drupalcms/public_html/cms/web/core/lib/Drupal/Component/Utility/Html.php).

The full backtrace is the following:

#0 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Component/Render/FormattableMarkup.php(238): Drupal\Component\Utility\Html::escape()
#1 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Component/Render/FormattableMarkup.php(187): Drupal\Component\Render\FormattableMarkup::placeholderEscape()
#2 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php(119): Drupal\Component\Render\FormattableMarkup::placeholderFormat()
#3 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Component/Utility/ToStringTrait.php(15): Drupal\Core\StringTranslation\PluralTranslatableMarkup->render()
#4 /home/drupalcms/public_html/cms/web/modules/contrib/project_browser/src/Activator/RecipeActivator.php(138): Drupal\Core\StringTranslation\TranslatableMarkup->__toString()
#5 /home/drupalcms/public_html/cms/web/modules/contrib/project_browser/src/ActivationManager.php(92): Drupal\project_browser\Activator\RecipeActivator->activate()
#6 /home/drupalcms/public_html/cms/web/modules/contrib/project_browser/src/Controller/ProjectBrowserEndpointController.php(211): Drupal\project_browser\ActivationManager->activate()
#7 [internal function]: Drupal\project_browser\Controller\ProjectBrowserEndpointController->activate()
#8 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#9 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/Render/Renderer.php(634): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext():121}()
#10 [internal function]: Drupal\Core\Render\Renderer::{closure:Drupal\Core\Render\Renderer::executeInRenderContext():634}()
#11 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/Render/Renderer.php(635): Fiber->start()
#12 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#13 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#14 /home/drupalcms/public_html/cms/vendor/symfony/http-kernel/HttpKernel.php(183): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::onController():96}()
#15 /home/drupalcms/public_html/cms/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#16 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#17 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#18 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#19 /home/drupalcms/public_html/cms/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#20 /home/drupalcms/public_html/cms/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(118): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#21 /home/drupalcms/public_html/cms/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(92): Drupal\page_cache\StackMiddleware\PageCache->pass()
#22 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#23 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#24 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(53): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#25 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(54): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#26 /home/drupalcms/public_html/cms/web/core/lib/Drupal/Core/DrupalKernel.php(745): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#27 /home/drupalcms/public_html/cms/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#28 {main}

Comments

gillesbailleux created an issue. See original summary.

gillesbailleux’s picture

"This feels like it is no longer an issue with the recipe, but now a package manager/Drupal CMS issue." mentions @thejimbirch on Slack.

mxr576’s picture

Status: Active » Closed (won't fix)

Should be a Project Browser issue. Feel free to reopen if it turns out to be related to this recipe.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.