Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I got php errors when try to login via social_auth_facebook module with non-existing in ldap server user. Ldap returns:
Notice: Array to string conversion in Drupal\ldap_servers\Entity\Server->userUserNameToExistingLdapEntry() (line 1047 of .../ldap/ldap_servers/src/Entity/Server.php).
Drupal\ldap_servers\Entity\Server->userUserNameToExistingLdapEntry(NULL, 'ldap_user_prov_to_drupal') (Line: 61)
Drupal\ldap_servers\ServerFactory->getUserDataFromServerByIdentifier(NULL, 'base_ldap_server', 'ldap_user_prov_to_drupal') (Line: 81)
Drupal\ldap_servers\ServerFactory->getUserDataFromServerByAccount(Object, 'base_ldap_server', 'ldap_user_prov_to_drupal') (Line: 671)
ldap_user_user_login(Object)
call_user_func_array('ldap_user_user_login', Array) (Line: 402)
Drupal\Core\Extension\ModuleHandler->invokeAll('user_login', Array) (Line: 546)
user_login_finalize(Object) (Line: 571)
Drupal\social_auth_facebook\FacebookAuthUserManager->userLoginFinalize(Object) (Line: 227)
Drupal\social_auth_facebook\FacebookAuthUserManager->loginUser(Object) (Line: 163)
Drupal\social_auth_facebook\Controller\FacebookAuthController->returnFromFb()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 652)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comment | File | Size | Author |
---|---|---|---|
#5 | ldap-ldap-servers-errors-login-social_auth_facebook-2842368-5.patch | 706 bytes | Andriy Khomych |
Screenshot from 2017-01-10 14-36-50 png.jpg | 186.97 KB | Andriy Khomych |
Comments
Comment #2
Andriy Khomych CreditAttribution: Andriy Khomych as a volunteer commentedComment #3
Andriy Khomych CreditAttribution: Andriy Khomych as a volunteer commentedComment #4
Andriy Khomych CreditAttribution: Andriy Khomych as a volunteer commentedComment #5
Andriy Khomych CreditAttribution: Andriy Khomych as a volunteer commentedI created patch for this issue, hope it helps.
Comment #6
Andriy Khomych CreditAttribution: Andriy Khomych as a volunteer commentedComment #7
grahlComment #10
grahlThanks for your patch Andriy, I fixed that a bit earlier, please report back if this isn't fixed with current DEV for you.
Comment #11
Andriy Khomych CreditAttribution: Andriy Khomych as a volunteer commentedHI grah
You are welcome, when I tested on dev the problem was exists(last week). Hope in current DEV it is fixed. Regards