🇵🇪Peru @hchang

Account created on 19 May 2014, over 10 years ago
#

Recent comments

🇵🇪Peru hchang

Hi I'm having the same issue, updb fails with the following error and the patch didn't work for me.

>  [error]  TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array() (line 41 of /app/web/modules/contrib/rabbit_hole/src/BehaviorSettingsManager.php) #0 /app/web/modules/contrib/rabbit_hole/src/BehaviorSettingsManager.php(41): in_array('entity_subqueue', NULL, true)
> #1 /app/web/modules/contrib/rabbit_hole/src/RabbitHolePermissionGenerator.php(59): Drupal\rabbit_hole\BehaviorSettingsManager->entityTypeIsEnabled('entity_subqueue')
> #2 [internal function]: Drupal\rabbit_hole\RabbitHolePermissionGenerator->permissions()
> #3 /app/web/core/modules/user/src/PermissionHandler.php(153): call_user_func(Array)
> #4 /app/web/core/modules/user/src/PermissionHandler.php(112): Drupal\user\PermissionHandler->buildPermissionsYaml()
> #5 /app/web/core/modules/user/src/Entity/Role.php(202): Drupal\user\PermissionHandler->getPermissions()
> #6 /app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(319): Drupal\user\Entity\Role->calculateDependencies()
> #7 /app/web/core/modules/user/src/Entity/Role.php(179): Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object(Drupal\user\RoleStorage))
> #8 /app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(562): Drupal\user\Entity\Role->preSave(Object(Drupal\user\RoleStorage))
> #9 /app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(517): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\user\Entity\Role))
> #10 /app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(253): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\user\Entity\Role))
> #11 /app/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\user\Entity\Role))
> #12 /app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(607): Drupal\Core\Entity\EntityBase->save()
> #13 /app/web/core/modules/update/update.post_update.php(14): Drupal\Core\Config\Entity\ConfigEntityBase->save()
> #14 /app/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(321): update_post_update_add_view_update_notifications_permission(Array)
> #15 /app/vendor/drush/drush/includes/batch.inc(256): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('update_post_upd...', Object(DrushBatchContext))
> #16 /app/vendor/drush/drush/includes/batch.inc(201): _drush_batch_worker()
> #17 /app/vendor/drush/drush/includes/batch.inc(100): _drush_batch_command('109')
> #18 /app/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(175): drush_batch_command('109')
> #19 [internal function]: Drush\Commands\core\UpdateDBCommands->process('109', Array)
> #20 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
> #21 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #22 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #23 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(350): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #24 /app/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #25 /app/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #26 /app/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #27 /app/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #28 /app/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #29 /app/vendor/drush/drush/src/Runtime/Runtime.php(48): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #30 /app/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
> #31 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
> #32 /app/vendor/bin/drush(117): include('/app/vendor/dru...')
> #33 {main}.
> TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /app/web/modules/contrib/rabbit_hole/src/BehaviorSettingsManager.php on line 41 #0 /app/web/modules/contrib/rabbit_hole/src/BehaviorSettingsManager.php(41): in_array('entity_subqueue', NULL, true)
> #1 /app/web/modules/contrib/rabbit_hole/src/RabbitHolePermissionGenerator.php(59): Drupal\rabbit_hole\BehaviorSettingsManager->entityTypeIsEnabled('entity_subqueue')
> #2 [internal function]: Drupal\rabbit_hole\RabbitHolePermissionGenerator->permissions()
> #3 /app/web/core/modules/user/src/PermissionHandler.php(153): call_user_func(Array)
> #4 /app/web/core/modules/user/src/PermissionHandler.php(112): Drupal\user\PermissionHandler->buildPermissionsYaml()
> #5 /app/web/core/modules/user/src/Entity/Role.php(202): Drupal\user\PermissionHandler->getPermissions()
> #6 /app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(319): Drupal\user\Entity\Role->calculateDependencies()
> #7 /app/web/core/modules/user/src/Entity/Role.php(179): Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object(Drupal\user\RoleStorage))
> #8 /app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(562): Drupal\user\Entity\Role->preSave(Object(Drupal\user\RoleStorage))
> #9 /app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(517): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\user\Entity\Role))
> #10 /app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(253): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\user\Entity\Role))
> #11 /app/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\user\Entity\Role))
> #12 /app/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(607): Drupal\Core\Entity\EntityBase->save()
> #13 /app/web/core/modules/update/update.post_update.php(14): Drupal\Core\Config\Entity\ConfigEntityBase->save()
> #14 /app/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(321): update_post_update_add_view_update_notifications_permission(Array)
> #15 /app/vendor/drush/drush/includes/batch.inc(256): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('update_post_upd...', Object(DrushBatchContext))
> #16 /app/vendor/drush/drush/includes/batch.inc(201): _drush_batch_worker()
> #17 /app/vendor/drush/drush/includes/batch.inc(100): _drush_batch_command('109')
> #18 /app/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(175): drush_batch_command('109')
> #19 [internal function]: Drush\Commands\core\UpdateDBCommands->process('109', Array)
> #20 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
> #21 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #22 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #23 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(350): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #24 /app/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #25 /app/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #26 /app/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #27 /app/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #28 /app/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #29 /app/vendor/drush/drush/src/Runtime/Runtime.php(48): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #30 /app/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
> #31 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
> #32 /app/vendor/bin/drush(117): include('/app/vendor/dru...')
> #33 {main}
>  [warning] Drush command terminated abnormally.

In ProcessBase.php line 171:
                                                                                                                        
  Unable to decode output into JSON: Syntax error                                                                       
                                                                                                                        
  TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array() (line 41 of /app/web/modules/contrib/rabbit_hole/src/BehaviorSettingsManager.php).
Production build 0.71.5 2024