error WSOD on 10001 update

Created on 17 February 2024, 4 months ago
Updated 8 June 2024, 18 days ago

Problem/Motivation

With drupal social-12.1.2 and php 8.3.3
In my case, the update to version 2.1.1 and update 10001 of the corresponding database

directory/html/sites/default$ drush updb
 -------------------- ----------- --------------- ------------------------ 
  Module               Update ID   Type            Description             
 -------------------- ----------- --------------- ------------------------ 
  activity_send_push   10001       hook_update_n   10001 - Add "push"      
                                                   destination to message  
                                                   templates with          
                                                   "notifications"         
                                                   destination.            
 -------------------- ----------- --------------- ------------------------ 


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 > 

generate the following error

>  [error]  TypeError: ArrayObject::__construct(): Argument #1 ($array) must be of type array, bool given in ArrayObject->__construct() (line 15 of /directory/vendor/consolidation/output-formatters/src/StructuredData/AbstractListData.php) #0 /directory/vendor/consolidation/output-formatters/src/StructuredData/AbstractListData.php(15): ArrayObject->__construct()
> #1 /directory/vendor/consolidation/output-formatters/src/StructuredData/UnstructuredListData.php(21): Consolidation\OutputFormatters\StructuredData\AbstractListData->__construct()
> #2 /directory/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(132): Consolidation\OutputFormatters\StructuredData\UnstructuredListData->__construct()
> #3 [internal function]: Drush\Commands\core\UpdateDBCommands->process()
> #4 /directory/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
> #5 /directory/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
> #6 /directory/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
> #7 /directory/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process()
> #8 /directory/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
> #9 /directory/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
> #10 /directory/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
> #11 /directory/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
> #12 /directory/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()
> #13 /directory/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()
> #14 /directory/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run()
> #15 /directory/vendor/drush/drush/drush(4): require('...')
> #16 /directory/vendor/bin/drush(120): include('...')
> #17 {main}. 
> TypeError: ArrayObject::__construct(): Argument #1 ($array) must be of type array, bool given in /directory/vendor/consolidation/output-formatters/src/StructuredData/AbstractListData.php on line 15 #0 /directory/vendor/consolidation/output-formatters/src/StructuredData/AbstractListData.php(15): ArrayObject->__construct()
> #1 /directory/vendor/consolidation/output-formatters/src/StructuredData/UnstructuredListData.php(21): Consolidation\OutputFormatters\StructuredData\AbstractListData->__construct()
> #2 /directory/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(132): Consolidation\OutputFormatters\StructuredData\UnstructuredListData->__construct()
> #3 [internal function]: Drush\Commands\core\UpdateDBCommands->process()
> #4 /directory/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
> #5 /directory/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
> #6 /directory/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
> #7 /directory/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process()
> #8 /directory/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
> #9 /directory/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
> #10 /directory/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
> #11 /directory/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
> #12 /directory/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()
> #13 /directory/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()
> #14 /directory/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run()
> #15 /directory/vendor/drush/drush/drush(4): require('...')
> #16 /directory/vendor/bin/drush(120): include('...')
> #17 {main}
>  [warning] Drush command terminated abnormally.

In ProcessBase.php line 171:
                                                                                                                                                             
  Unable to decode output into JSON: Syntax error                                                                                                            
                                                                                                                                                             
  TypeError: ArrayObject::__construct(): Argument #1 ($array) must be of type array, bool given in ArrayObject->__construct() (line 15 of /home/castellas/s  
  ocial/vendor/consolidation/output-formatters/src/StructuredData/AbstractListData.php). 

drush ws gives:

directory/html/sites/default$ drush ws
 [error]  Error: Class "\Drupal\activity_send_push\MessageTemplatesOverrides" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php) #0 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#1 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(440): Drupal\Component\DependencyInjection\Container->get()
#2 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(273): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#3 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#4 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(440): Drupal\Component\DependencyInjection\Container->get()
#5 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(237): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#6 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#7 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(440): Drupal\Component\DependencyInjection\Container->get()
#8 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(273): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#9 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#10 /directory/vendor/drush/drush/src/Boot/DrupalBoot8.php(306): Drupal\Component\DependencyInjection\Container->get()
#11 /directory/vendor/drush/drush/src/Boot/DrupalBoot8.php(253): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands()
#12 /directory/vendor/drush/drush/src/Boot/BootstrapManager.php(291): Drush\Boot\DrupalBoot8->bootstrapDrupalFull()
#13 /directory/vendor/drush/drush/src/Boot/BootstrapManager.php(477): Drush\Boot\BootstrapManager->doBootstrap()
#14 /directory/vendor/drush/drush/src/Application.php(231): Drush\Boot\BootstrapManager->bootstrapMax()
#15 /directory/vendor/drush/drush/src/Application.php(197): Drush\Application->bootstrapAndFind()
#16 /directory/vendor/symfony/console/Application.php(266): Drush\Application->find()
#17 /directory/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#18 /directory/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()
#19 /directory/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()
#20 /directory/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run()
#21 /directory/vendor/drush/drush/includes/preflight.inc(18): require('...')
#22 phar:///usr/bin/drush/bin/drush.php(143): drush_main()
#23 /usr/bin/drush(14): require('...')
#24 {main}. 
Error: Class "\Drupal\activity_send_push\MessageTemplatesOverrides" not found in /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 #0 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#1 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(440): Drupal\Component\DependencyInjection\Container->get()
#2 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(273): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#3 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#4 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(440): Drupal\Component\DependencyInjection\Container->get()
#5 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(237): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#6 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#7 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(440): Drupal\Component\DependencyInjection\Container->get()
#8 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(273): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#9 /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService()
#10 /directory/vendor/drush/drush/src/Boot/DrupalBoot8.php(306): Drupal\Component\DependencyInjection\Container->get()
#11 /directory/vendor/drush/drush/src/Boot/DrupalBoot8.php(253): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands()
#12 /directory/vendor/drush/drush/src/Boot/BootstrapManager.php(291): Drush\Boot\DrupalBoot8->bootstrapDrupalFull()
#13 /directory/vendor/drush/drush/src/Boot/BootstrapManager.php(477): Drush\Boot\BootstrapManager->doBootstrap()
#14 /directory/vendor/drush/drush/src/Application.php(231): Drush\Boot\BootstrapManager->bootstrapMax()
#15 /directory/vendor/drush/drush/src/Application.php(197): Drush\Application->bootstrapAndFind()
#16 /directory/vendor/symfony/console/Application.php(266): Drush\Application->find()
#17 /directory/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#18 /directory/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()
#19 /directory/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()
#20 /directory/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run()
#21 /directory/vendor/drush/drush/includes/preflight.inc(18): require('...')
#22 phar:///usr/bin/drush/bin/drush.php(143): drush_main()
#23 /usr/bin/drush(14): require('...')
#24 {main}
Error: Class "\Drupal\activity_send_push\MessageTemplatesOverrides" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of /directory/html/core/lib/Drupal/Component/DependencyInjection/Container.php).
 [warning] Drush command terminated abnormally.

Steps to reproduce

Proposed resolution

going back to version 2.1.0 fixes the problem

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡«πŸ‡·France ohmdesbois

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

Comments & Activities

Production build 0.69.0 2024