I was upgrading Drupal 8 to 9. I installed ‘Upgrade Status’ module and fixed as suggested by it. Now it was time to upgrade to D9. I changed on composer.json.
"drupal/core-composer-scaffold": "^8.9.0",
"drupal/core-recommended": "^8.9.0",
To
"drupal/core-composer-scaffold": "^9.1.0",
"drupal/core-recommended": "^9.1.0",
Then ran following command:
composer update
drush cr
drush updb -y
After running the update, I got the Drupal 9.2.6.
When browsing the URL, it showed following error:
TypeError: Argument 6 passed to
Drupallayout_builderPluginBlockInlineBlock::__construct() must
implement interface DrupalCoreSessionAccountInterface, instance of
DrupalCoreLoggerLoggerChannel given, called in
/app/web/core/modules/layout_builder/src/Plugin/Block/InlineBlock.php
on line 117 in
Drupallayout_builderPluginBlockInlineBlock->__construct() (line 95
of core/modules/layout_builder/src/Plugin/Block/InlineBlock.php).
I googled but could not find out the solution.
Any suggestion is really appreciated.