🇮🇳India @gawalin

Account created on 31 May 2021, almost 4 years ago
#

Recent comments

🇮🇳India gawalin

I am also facing the same issue. Is there a solution other than using DDEV?

🇮🇳India gawalin

I encountered this issue when I updated Drupal core from 10.2.7 to 10.3.0 and then ran the DB update command.

> [error] AssertionError: assert($typed_config instanceof Mapping) in assert() (line 264 of C:\xampp-php-8.1\htdocs\drupal10\docroot\core\modules\system\system.post_update.php) #0 C:\xampp-php-8.1\htdocs\drupal10\docroot\core\modules\system\system.post_update.php(264): assert(false, 'assert($typed_c...')
> #1 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\src\Commands\core\UpdateDBCommands.php(280): system_post_update_add_langcode_to_all_translatable_config(Array)
> #2 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\includes\batch.inc(257): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('system_post_upd...', Array)
> #3 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\includes\batch.inc(204): _drush_batch_worker()
> #4 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\includes\batch.inc(75): _drush_batch_command('651')
> #5 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\src\Commands\core\UpdateDBCommands.php(136): drush_batch_command('651')
> #6 [internal function]: Drush\Commands\core\UpdateDBCommands->process('651', Array)
> #7 C:\xampp-php-8.1\htdocs\drupal10\vendor\consolidation\annotated-command\src\CommandProcessor.php(276): call_user_func_array(Array, Array)
> #8 C:\xampp-php-8.1\htdocs\drupal10\vendor\consolidation\annotated-command\src\CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #9 C:\xampp-php-8.1\htdocs\drupal10\vendor\consolidation\annotated-command\src\CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #10 C:\xampp-php-8.1\htdocs\drupal10\vendor\consolidation\annotated-command\src\AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #11 C:\xampp-php-8.1\htdocs\drupal10\vendor\symfony\console\Command\Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #12 C:\xampp-php-8.1\htdocs\drupal10\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 C:\xampp-php-8.1\htdocs\drupal10\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 C:\xampp-php-8.1\htdocs\drupal10\vendor\symfony\console\Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #15 C:\xampp-php-8.1\htdocs\drupal10\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 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\src\Runtime\Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #17 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\drush.php(139): Drush\Runtime\Runtime->run(Array)
> #18 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\drush(4): require('C:\\xampp-php-8....')
> #19 C:\xampp-php-8.1\htdocs\drupal10\vendor\bin\drush(120): include('C:\\xampp-php-8....')
> #20 {main}.
> AssertionError: assert($typed_config instanceof Mapping) in C:\xampp-php-8.1\htdocs\drupal10\docroot\core\modules\system\system.post_update.php on line 264 #0 C:\xampp-php-8.1\htdocs\drupal10\docroot\core\modules\system\system.post_update.php(264): assert(false, 'assert($typed_c...')
> #1 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\src\Commands\core\UpdateDBCommands.php(280): system_post_update_add_langcode_to_all_translatable_config(Array)
> #2 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\includes\batch.inc(257): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('system_post_upd...', Array)
> #3 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\includes\batch.inc(204): _drush_batch_worker()
> #4 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\includes\batch.inc(75): _drush_batch_command('651')
> #5 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\src\Commands\core\UpdateDBCommands.php(136): drush_batch_command('651')
> #6 [internal function]: Drush\Commands\core\UpdateDBCommands->process('651', Array)
> #7 C:\xampp-php-8.1\htdocs\drupal10\vendor\consolidation\annotated-command\src\CommandProcessor.php(276): call_user_func_array(Array, Array)
> #8 C:\xampp-php-8.1\htdocs\drupal10\vendor\consolidation\annotated-command\src\CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #9 C:\xampp-php-8.1\htdocs\drupal10\vendor\consolidation\annotated-command\src\CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #10 C:\xampp-php-8.1\htdocs\drupal10\vendor\consolidation\annotated-command\src\AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #11 C:\xampp-php-8.1\htdocs\drupal10\vendor\symfony\console\Command\Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #12 C:\xampp-php-8.1\htdocs\drupal10\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 C:\xampp-php-8.1\htdocs\drupal10\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 C:\xampp-php-8.1\htdocs\drupal10\vendor\symfony\console\Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #15 C:\xampp-php-8.1\htdocs\drupal10\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 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\src\Runtime\Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #17 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\drush.php(139): Drush\Runtime\Runtime->run(Array)
> #18 C:\xampp-php-8.1\htdocs\drupal10\vendor\drush\drush\drush(4): require('C:\\xampp-php-8....')
> #19 C:\xampp-php-8.1\htdocs\drupal10\vendor\bin\drush(120): include('C:\\xampp-php-8....')
> #20 {main}
> [warning] Drush command terminated abnormally.

In ProcessBase.php line 171:

Unable to decode output into JSON: Syntax error

AssertionError: assert($typed_config instanceof Mapping) in assert() (line 264 of C:\xampp-php-8.1\htdocs\drupal10\docroot\core\
modules\system\system.post_update.php).

🇮🇳India gawalin

I've generated a patch to address this issue. Could someone please test it and confirm it's right approach to resolve this.

🇮🇳India gawalin

Below code worked for me.

{{ item.url.getOption('container_attributes').class[0] }}

🇮🇳India gawalin

Had the same problem, cache rebuild not solving the problem.

Steps to reproduce the error:
Run the composer require drupal/twig_tweak.
drush cr
drush uli

🇮🇳India gawalin

I ran into the same issue upgrading from 1.15.0 => 3.0.1. So I have disabled and enabled module . In the configuration when I click on the "Save Configuration " nothing is happening and error is showing in the error log.

Error statement:
Warning: foreach() argument must be of type array|object, null given in Drupal\Core\Render\Element\Checkboxes::valueCallback() (line 113 of C:\xampp-php-8.1\htdocs\website\docroot\core\lib\Drupal\Core\Render\Element\Checkboxes.php)

Production build 0.71.5 2024