Steps to reproduce

  1. Install Drupal 11.4.x with the Standard profile or recipe. Per the change record https://www.drupal.org/node/3590571, Article and Basic page are no longer created. Alternatively, use any site without those content types.
  2. Run composer require drupal/search_api:^1.41.
  3. Enable search_api and search_api_db.
  4. Go to Extend (/admin/modules), tick Database Search Defaults, and click Install.

Expected: The module installs, or it reports clearly that it needs particular content types.
ERRORS
TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type string, null given, called in /var/www/html/web/core/lib/Drupal/Component/Render/FormattableMarkup.php on line 238 in Drupal\Component\Utility\Html::escape() (line 433 of core/lib/Drupal/Component/Utility/Html.php).

Field body in content type article not found. Database Search Defaults module could not be installed
Field comment in content type article not found. Database Search Defaults module could not be installed
Field field_tags in content type article not found. Database Search Defaults module could not be installed
Field field_image in content type article not found. Database Search Defaults module could not be installed
Content type page not found. Database Search Defaults module could not be installed.
Warning: Undefined array key "search_api_db_defaults" in Drupal\system\Form\ModulesListConfirmForm->buildMessageList() (line 156 of core/modules/system/src/Form/ModulesListConfirmForm.php).
Drupal\system\Form\ModulesListConfirmForm->buildMessageList() (Line: 126)
Drupal\system\Form\ModulesListConfirmForm->buildForm()
call_user_func_array() (Line: 559)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 299)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer::Drupal\Core\Render\{closure}()
Fiber->start() (Line: 639)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 30)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 118)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 92)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 71)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 54)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 753)
Drupal\Core\DrupalKernel->handle() (Line: 34)
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (Line: 32)
require() (Line: 22)
require_once() (Line: 13)

Comments

nmeegama created an issue.