When I try to enable LDAP users module I have these errors in log :

User error: Drupal\\Core\\Database\\DatabaseExceptionWrapper thrown while calling __toString on a Drupal\\Core\\StringTranslation\\TranslatableMarkup object in /var/www/html/drupal-8.2.5/core/lib/Drupal/Core/Database/Connection.php on line 671: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal_db.user__ldap_user_prov_entries' doesn't exist: SELECT t.*\nFROM \n{user__ldap_user_prov_entries} t\nWHERE (entity_id IN (:db_condition_placeholder_0)) AND (deleted = :db_condition_placeholder_1) AND (langcode IN (:db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4)) \nORDER BY delta ASC; Array\n(\n [:db_condition_placeholder_0] => 1\n [:db_condition_placeholder_1] => 0\n [:db_condition_placeholder_2] => fr\n [:db_condition_placeholder_3] => und\n [:db_condition_placeholder_4] => zxx\n)\n in /var/www/html/drupal-8.2.5/core/lib/Drupal/Component/Utility/ToStringTrait.php

Comments

ubobrest created an issue. See original summary.

grahl’s picture

Priority: Critical » Major
Status: Active » Postponed (maintainer needs more info)

Hi

This could be due to a misconfiguration or other issue which prevented ldap_user from performing all necessary steps.

Please try uninstalling ldap_user and installing it again and see if the problem persists and share any relevant backtrace.

Alternatively, drush entity-updates might be able to resolve your misconfiguration.

If both fail, please let me know if this happens with a clean installation and what exact steps you undertook to get into the state.

grahl’s picture

Assigned: ubobrest » Unassigned
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I cannot reproduce this with a clean installation.

Please reopen if you still encounter this and can provide more information on how to get the message you reported. Please also explain what your site does when you receive this error.

john.doe’s picture

my environment is minimal drupal 8.3.4, when enable ldap_users, this crash whole drupal 8, as follow:

[19-Sep-2017 15:37:38 Asia/Shanghai] User error: Drupal\Core\Database\DatabaseExceptionWrapper thrown while calling __toString on a Drupal\Core\StringTranslation\TranslatableMarkup object in /Users/doe/html/sso/core/lib/Drupal/Core/Database/Connection.php on line 685: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ldap.user__ldap_user_prov_entries' doesn't exist: SELECT t.*
FROM
{user__ldap_user_prov_entries} t
WHERE (entity_id IN (:db_condition_placeholder_0)) AND (deleted = :db_condition_placeholder_1) AND (langcode IN (:db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4))
ORDER BY delta ASC; Array
(
[:db_condition_placeholder_0] => 1
[:db_condition_placeholder_1] => 0
[:db_condition_placeholder_2] => zh-hans
[:db_condition_placeholder_3] => und
[:db_condition_placeholder_4] => zxx
)
in /Users/doe/html/sso/core/lib/Drupal/Component/Utility/ToStringTrait.php on line 20 #0 /Users/doe/html/sso/core/includes/bootstrap.inc(566): _drupal_error_handler_real(256, 'Drupal\\Core\\Dat...', '/Users/doe/html...', 20, Array)
#1 [internal function]: _drupal_error_handler(256, 'Drupal\\Core\\Dat...', '/Users/doe/html...', 20, Array)
#2 /Users/doe/html/sso/core/lib/Drupal/Component/Utility/ToStringTrait.php(20): trigger_error('Drupal\\Core\\Dat...', 256)
#3 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityType.php(679): Drupal\Core\StringTranslation\TranslatableMarkup->__toString()
#4 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/ContentEntityBase.php(1258): Drupal\Core\Entity\EntityType->getBundleLabel()
#5 /Users/doe/html/sso/core/modules/node/src/Entity/Node.php(360): Drupal\Core\Entity\ContentEntityBase::baseFieldDefinitions(Object(Drupal\Core\Entity\ContentEntityType))
#6 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityFieldManager.php(204): Drupal\node\Entity\Node::baseFieldDefinitions(Object(Drupal\Core\Entity\ContentEntityType))
#7 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityFieldManager.php(171): Drupal\Core\Entity\EntityFieldManager->buildBaseFieldDefinitions('node')
#8 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityFieldManager.php(394): Drupal\Core\Entity\EntityFieldManager->getBaseFieldDefinitions('node')
#9 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityManager.php(154): Drupal\Core\Entity\EntityFieldManager->getFieldStorageDefinitions('node')
#10 /Users/doe/html/sso/core/lib/Drupal/Core/Extension/ModuleInstaller.php(225): Drupal\Core\Entity\EntityManager->getFieldStorageDefinitions('node')
#11 /Users/doe/html/sso/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#12 /Users/doe/html/sso/core/modules/system/src/Form/ModulesListForm.php(448): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array)
#13 [internal function]: Drupal\system\Form\ModulesListForm->submitForm(Array, Object(Drupal\Core\Form\FormState))
#14 /Users/doe/html/sso/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array)
#15 /Users/doe/html/sso/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#16 /Users/doe/html/sso/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#17 /Users/doe/html/sso/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object(Drupal\Core\Form\FormState))
#18 /Users/doe/html/sso/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\system\Form\ModulesListForm), Object(Drupal\Core\Form\FormState))
#19 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#20 /Users/doe/html/sso/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#21 /Users/doe/html/sso/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#22 /Users/doe/html/sso/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#23 /Users/doe/html/sso/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#24 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#25 /Users/doe/html/sso/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array)
#26 /Users/doe/html/sso/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#27 /Users/doe/html/sso/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /Users/doe/html/sso/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /Users/doe/html/sso/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /Users/doe/html/sso/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /Users/doe/html/sso/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /Users/doe/html/sso/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /Users/doe/html/sso/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /Users/doe/html/sso/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /Users/doe/html/sso/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#36 {main}

john.doe’s picture

Status: Closed (cannot reproduce) » Needs work
[19-Sep-2017 15:37:38 Asia/Shanghai] User error: Drupal\Core\Database\DatabaseExceptionWrapper thrown while calling __toString on a Drupal\Core\StringTranslation\TranslatableMarkup object in /Users/doe/html/sso/core/lib/Drupal/Core/Database/Connection.php on line 685: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ldap.user__ldap_user_prov_entries' doesn't exist: SELECT t.*
FROM 
{user__ldap_user_prov_entries} t
WHERE (entity_id IN (:db_condition_placeholder_0)) AND (deleted = :db_condition_placeholder_1) AND (langcode IN (:db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4))
ORDER BY delta ASC; Array
(
    [:db_condition_placeholder_0] => 1
    [:db_condition_placeholder_1] => 0
    [:db_condition_placeholder_2] => zh-hans
    [:db_condition_placeholder_3] => und
    [:db_condition_placeholder_4] => zxx
)
 in /Users/doe/html/sso/core/lib/Drupal/Component/Utility/ToStringTrait.php on line 20 #0 /Users/doe/html/sso/core/includes/bootstrap.inc(566): _drupal_error_handler_real(256, 'Drupal\\Core\\Dat...', '/Users/doe/html...', 20, Array)
#1 [internal function]: _drupal_error_handler(256, 'Drupal\\Core\\Dat...', '/Users/doe/html...', 20, Array)
#2 /Users/doe/html/sso/core/lib/Drupal/Component/Utility/ToStringTrait.php(20): trigger_error('Drupal\\Core\\Dat...', 256)
#3 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityType.php(679): Drupal\Core\StringTranslation\TranslatableMarkup->__toString()
#4 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/ContentEntityBase.php(1258): Drupal\Core\Entity\EntityType->getBundleLabel()
#5 /Users/doe/html/sso/core/modules/node/src/Entity/Node.php(360): Drupal\Core\Entity\ContentEntityBase::baseFieldDefinitions(Object(Drupal\Core\Entity\ContentEntityType))
#6 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityFieldManager.php(204): Drupal\node\Entity\Node::baseFieldDefinitions(Object(Drupal\Core\Entity\ContentEntityType))
#7 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityFieldManager.php(171): Drupal\Core\Entity\EntityFieldManager->buildBaseFieldDefinitions('node')
#8 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityFieldManager.php(394): Drupal\Core\Entity\EntityFieldManager->getBaseFieldDefinitions('node')
#9 /Users/doe/html/sso/core/lib/Drupal/Core/Entity/EntityManager.php(154): Drupal\Core\Entity\EntityFieldManager->getFieldStorageDefinitions('node')
#10 /Users/doe/html/sso/core/lib/Drupal/Core/Extension/ModuleInstaller.php(225): Drupal\Core\Entity\EntityManager->getFieldStorageDefinitions('node')
#11 /Users/doe/html/sso/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#12 /Users/doe/html/sso/core/modules/system/src/Form/ModulesListForm.php(448): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array)
#13 [internal function]: Drupal\system\Form\ModulesListForm->submitForm(Array, Object(Drupal\Core\Form\FormState))
#14 /Users/doe/html/sso/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array)
#15 /Users/doe/html/sso/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#16 /Users/doe/html/sso/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#17 /Users/doe/html/sso/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object(Drupal\Core\Form\FormState))
#18 /Users/doe/html/sso/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\system\Form\ModulesListForm), Object(Drupal\Core\Form\FormState))
#19 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#20 /Users/doe/html/sso/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#21 /Users/doe/html/sso/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#22 /Users/doe/html/sso/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#23 /Users/doe/html/sso/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#24 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#25 /Users/doe/html/sso/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array)
#26 /Users/doe/html/sso/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#27 /Users/doe/html/sso/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /Users/doe/html/sso/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /Users/doe/html/sso/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /Users/doe/html/sso/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /Users/doe/html/sso/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /Users/doe/html/sso/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /Users/doe/html/sso/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /Users/doe/html/sso/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /Users/doe/html/sso/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#36 {main}

grahl’s picture

Status: Needs work » Closed (duplicate)
Related issues: +#2837074: ldap_user: Support UI installation for non-English languages

Hi john.doe

It seems very likely that this issue is a duplicate of the linked issue on which you commented as well. Once that's resolved and if this still occurs, feel free to reopen it.