Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'simplelogin_set_captcha' not found or invalid function name in Drupal\Core\Form\FormBuilder->doBuildForm() (line 1064 of core/lib/Drupal/Core/Form/FormBuilder.php).

Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 227 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'simplelogin_set_captcha' not found or invalid function name in Drupal\Core\Form\FormBuilder->doBuildForm() (line 1064 of /home/user/dev/windows/web/core/lib/Drupal/Core/Form/FormBuilder.php) #0 /home/user/dev/windows/web/core/includes/bootstrap.inc(582): _drupal_error_handler_real(2, 'call_user_func_...', '/home/user/dev/...', 1064, Array) #1 [internal function]: _drupal_error_handler(2, 'call_user_func_...', '/home/user/dev/...', 1064, Array) #2 /home/user/dev/windows/web/core/lib/Drupal/Core/Form/FormBuilder.php(1064): call_user_func_array('simplelogin_set...', Array) #3 /home/user/dev/windows/web/core/lib/Drupal/Core/Form/FormBuilder.php(1056): Drupal\Core\Form\FormBuilder->doBuildForm('system_modules', Array, Object(Drupal\Core\Form\FormState)) #4 /home/user/dev/windows/web/core/lib/Drupal/Core/Form/FormBuilder.php(557): Drupal\Core\Form\FormBuilder->doBuildForm('system_modules', Array, Object(Drupal\Core\Form\FormState)) #5 /home/user/dev/windows/web/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object(Drupal\Core\Form\FormState)) #6 /home/user/dev/windows/web/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm('system_modules', Object(Drupal\Core\Form\FormState)) #7 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #8 /home/user/dev/windows/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)

Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 227 of /home/user/dev/windows/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php) #0

Comments

Bohdan Mykhalchuk created an issue. See original summary.

vitaliyb98’s picture

StatusFileSize
new1.12 KB
vitaliyb98’s picture

Status: Active » Needs review
thirstysix’s picture

Patch for fix flip_array(), call_user_func(), remove the simplelogin styles from unwanted pages.

keshavv’s picture

Patch #4 is working , Thanks

jsst’s picture

Status: Needs review » Reviewed & tested by the community

Patch #4 fixes all issues as advertised. RTBC!

tepelena’s picture

Have the same problem. Can this be commited please?

tepelena’s picture

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'simplelogin_set_captcha' not found or invalid function name in Drupal\Core\Form\FormBuilder->doBuildForm() (line 1068 of core/lib/Drupal/Core/Form/FormBuilder.php).
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 227 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).

tkogias’s picture

I reached this thread after trying out the module under new Drupal Core 8.6.2. From the warning message, I guess it's the same bug - I just add it here so that you know it keeps happening under 8.6.x.

I post the full error message I got after trying to install the module:

---

Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 264 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 249)
Drupal\Core\Entity\EntityStorageBase->load(NULL) (Line: 527)
Drupal\Core\Entity\Entity::load(NULL) (Line: 133)
simple_login_settings('image') (Line: 76)
simplelogin_page_attachments(Array) (Line: 297)
Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array) (Line: 273)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
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: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 665)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 264 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 249)
Drupal\Core\Entity\EntityStorageBase->load(NULL) (Line: 527)
Drupal\Core\Entity\Entity::load(NULL) (Line: 133)
simple_login_settings('image') (Line: 76)
simplelogin_page_attachments(Array) (Line: 297)
Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array) (Line: 273)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
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: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 665)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

---

jsst’s picture

Slight update to my last comment, the error about captchas is not fixed with this patch. It's an unrelated issue. See: https://www.drupal.org/project/simplelogin/issues/3021343

thirstysix’s picture

Status: Reviewed & tested by the community » Fixed

Patch Committed. Please check with our latest version.

thirstysix’s picture

Version: 8.x-2.1 » 8.x-3.3
Status: Fixed » Closed (fixed)
Dawood iFraheem’s picture

can we disable for admin....??