- Issue created by @emptyvoid
On initial site URL view and even after credentials submission and validation the following error is logged three times.
Drupal: 11.1
Shield:
TypeError: Drupal\Core\Entity\EntityTypeManager::Drupal\Core\Entity\{closure}(): Argument #1 ($hook) must be of type callable, string given, called in /var/www/html/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php on line 307 in Drupal\Core\Entity\EntityTypeManager->Drupal\Core\Entity\{closure}() (line 117 of /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php)
#0 /var/www/html/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(307): Drupal\Core\Entity\EntityTypeManager->Drupal\Core\Entity\{closure}()
#1 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php(117): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#2 /var/www/html/docroot/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(213): Drupal\Core\Entity\EntityTypeManager->findDefinitions()
#3 /var/www/html/docroot/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(22): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#4 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php(132): Drupal\Core\Plugin\DefaultPluginManager->getDefinition()
#5 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php(257): Drupal\Core\Entity\EntityTypeManager->getDefinition()
#6 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php(192): Drupal\Core\Entity\EntityTypeManager->getHandler()
#7 /var/www/html/docroot/core/modules/user/src/UserAuthentication.php(64): Drupal\Core\Entity\EntityTypeManager->getStorage()
#8 /var/www/html/docroot/core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php(99): Drupal\user\UserAuthentication->lookupAccount()
#9 /var/www/html/docroot/modules/contrib/shield/src/ShieldMiddleware.php(336): Drupal\basic_auth\Authentication\Provider\BasicAuth->authenticate()
#10 /var/www/html/docroot/modules/contrib/shield/src/ShieldMiddleware.php(256): Drupal\shield\ShieldMiddleware->basicAuthRequestAuthenticate()
#11 /var/www/html/docroot/modules/contrib/shield/src/ShieldMiddleware.php(219): Drupal\shield\ShieldMiddleware->bypass()
#12 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\shield\ShieldMiddleware->handle()
#13 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#14 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#15 /var/www/html/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#16 /var/www/html/docroot/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#17 /var/www/html/docroot/index.php(19): Drupal\Core\DrupalKernel->handle()
#18 {main}
While the module features do function, errors are still logged. But only on the first request to the domain where the login prompt is enabled.
Active
1.8
Code