in_array() expects parameter 2 to be array, null given

Created on 9 October 2018, about 6 years ago
Updated 13 November 2023, about 1 year ago

I just installed the module and activated the option to automatically add entities to my queue. When I save an article that should be added, I get the following errors and the article does not appear in the queue:

Notice: Undefined index: target_bundles in auto_entityqueue_get_queues_by_type_and_bundle() (line 123 of modules/auto_entityqueue/auto_entityqueue.module).

    auto_entityqueue_get_queues_by_type_and_bundle('node', 'article') (Line: 59)
    auto_entityqueue_entity_insert(Object)
    call_user_func_array('auto_entityqueue_entity_insert', Array) (Line: 403)
    Drupal\Core\Extension\ModuleHandler->invokeAll('entity_insert', Array) (Line: 206)
    Drupal\Core\Entity\EntityStorageBase->invokeHook('insert', Object) (Line: 756)
    Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('insert', Object) (Line: 507)
    Drupal\Core\Entity\EntityStorageBase->doPostSave(Object, ) (Line: 641)
    Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object, ) (Line: 432)
    Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 774)
    Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 390)
    Drupal\Core\Entity\Entity->save() (Line: 281)
    Drupal\node\NodeForm->save(Array, Object)
    call_user_func_array(Array, Array) (Line: 111)
    Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
    Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 589)
    Drupal\Core\Form\FormBuilder->processForm('node_article_form', Array, Object) (Line: 318)
    Drupal\Core\Form\FormBuilder->buildForm('node_article_form', Object) (Line: 48)
    Drupal\Core\Entity\EntityFormBuilder->getForm(Object) (Line: 113)
    Drupal\node\Controller\NodeController->add(Object)
    call_user_func_array(Array, Array) (Line: 123)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
    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}() (Line: 151)
    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: 18)

Warning: in_array() expects parameter 2 to be array, null given in auto_entityqueue_get_queues_by_type_and_bundle() (line 123 of modules/auto_entityqueue/auto_entityqueue.module).

    auto_entityqueue_get_queues_by_type_and_bundle('node', 'article') (Line: 59)
    auto_entityqueue_entity_insert(Object)
    call_user_func_array('auto_entityqueue_entity_insert', Array) (Line: 403)
    Drupal\Core\Extension\ModuleHandler->invokeAll('entity_insert', Array) (Line: 206)
    Drupal\Core\Entity\EntityStorageBase->invokeHook('insert', Object) (Line: 756)
    Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('insert', Object) (Line: 507)
    Drupal\Core\Entity\EntityStorageBase->doPostSave(Object, ) (Line: 641)
    Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object, ) (Line: 432)
    Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 774)
    Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 390)
    Drupal\Core\Entity\Entity->save() (Line: 281)
    Drupal\node\NodeForm->save(Array, Object)
    call_user_func_array(Array, Array) (Line: 111)
    Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
    Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 589)
    Drupal\Core\Form\FormBuilder->processForm('node_article_form', Array, Object) (Line: 318)
    Drupal\Core\Form\FormBuilder->buildForm('node_article_form', Object) (Line: 48)
    Drupal\Core\Entity\EntityFormBuilder->getForm(Object) (Line: 113)
    Drupal\node\Controller\NodeController->add(Object)
    call_user_func_array(Array, Array) (Line: 123)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
    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}() (Line: 151)
    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: 18)

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany yan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024