- Issue created by @smitghelani
- Status changed to Closed: duplicate
6 months ago 9:46am 21 June 2024
While trying out latest version of the Drupal 10.3.0, found some issue with lightning_core version 8.x-5.14 config during updb run.
Error:
> [error] AssertionError: assert($typed_config instanceof Mapping) in assert() (line 264 of /docroot/core/modules/system/system.post_update.php) #0 /docroot/core/modules/system/system.post_update.php(264): assert(false, 'assert($typed_c...')
> #1 /vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(280): system_post_update_add_langcode_to_all_translatable_config(Array)
> #2 /vendor/drush/drush/includes/batch.inc(257): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('system_post_upd...', Array)
> #3 /vendor/drush/drush/includes/batch.inc(204): _drush_batch_worker()
> #4 /vendor/drush/drush/includes/batch.inc(75): _drush_batch_command('4480')
> #5 /vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(136): drush_batch_command('4480')
> #6 [internal function]: Drush\Commands\core\UpdateDBCommands->process('4480', Array)
> #7 /vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
> #8 /vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #9 /vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #10 /vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #11 /vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #12 /vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #13 /vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #14 /vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #15 /vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #16 /vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #17 /vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
> #18 /vendor/drush/drush/drush(4): require('/...')
> #19 /vendor/bin/drush(120): include('/...')
> #20 {main}.
1) Update Drupal core to 10.3.0
2) Add and install Lightning Core module with version 8.x-5.14
3) Run drush updb -y
I dig down little in the issue of the core module to see where and why the updb execution is keep failing. From the primary investigations, I found that the issue is with config lightning_core.versions
.
assert($typed_config instanceof Mapping); function at docroot/core/module/system/system.post_update.php on line no 264
, validates that the coming configurations should match the object format of type Drupal\Core\Config\Schema\Mapping but rather coming in same format lightning_core module's lightning_core.versions config having the type of Drupal\Core\Config\Schema\Sequence which could be possbile reason for the failure of the system module's hook update.
To fix this we have to change the config or need some solution for it.
I will appreciate the help in solving this issue, because i need it's solution as soon as possbile.
Closed: duplicate
5.14
Code