After I have updated my Drupal core version from 8.6.2 to 8.7.14, I have got below error at the time of cache clear and db update.
composer update drupal/core webflo/drupal-core-require-dev --with-dependencies
Below error occurs while running update.php
An AJAX HTTP error has occurred. HTTP result code: 200 Debug information follows.
Path: /update.php/start?id=55&op=do_nojs&op=do
Status text: OK
Answer text: ArgumentCountError: Too few arguments to function Drupal\Core\Entity\EntityTypeManager :: __ construct(),
5 passed and exactly 6 expected in Drupal\Core\Entity\EntityTypeManager->__construct()
(line 92 of C:\myproject\html\core\lib\Drupal\Core\Entity\EntityTypeManager.php).
This error occured at the time of cache rebuilt (Drush cr)
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Drupal\Core\Entity\EntityTypeManager::
__construct(), 5 passed in C:\myproject\html\core\lib\Drupal\Component\DependencyInjection\Container.php on line 285
and exactly 6 expected in C:\myproject\html\core\lib\Drupal\Core\Entity\EntityTypeManager.php:92
I couldn't able to proceed my update process.
PHP version 7.3.12
Windows OS
Drush version 9.3
Comments
Comment #2
kalidasan commentedComment #3
longwaveThis almost certainly relates to the change in #2554235: Make the content entity storage and entity query use the last installed definitions instead of the ones living in code where an extra argument was added to EntityTypeManager but this should be detected when caches are rebuilt.
Comment #4
cilefen commentedComment #6
catchCan you try setting:
In settings.php - then re-run the update?
Comment #7
kalidasan commentedHello @catch,
Thanks for your suggestion.
I have tried both the below suggestions, but no luck. Getting same error.
Comment #8
kalidasan commentedAs my current Drupal version is
8.6.2, I have followed this entire steps https://www.drupal.org/docs/updating-drupal/migrating-the-composer-proje...When I reach
drush updbordrush cr, I'm getting below error.I have tried below links, but no luck
https://www.codebales.com/drupal-update-87x-880
I have followed below issues too
https://www.drupal.org/project/drupal/issues/3099746
https://drupal.stackexchange.com/questions/289673/route-entity-path-alia... - Tried this solution https://drupal.stackexchange.com/questions/289673/route-entity-path-alia..., but again same problem
I have faced below issues when I tried with fresh Drupal 8.9.3 installation and imported D8.6.2 config on top of it
https://www.drupal.org/project/drupal/issues/3038085
https://www.drupal.org/project/drupal/issues/3002532
Finally tried path_alias issues
https://www.drupal.org/project/drupal/issues/2336597
https://www.drupal.org/project/drupal/issues/3101423#comment-13503583
Tried this solution as well, as mentioned in https://www.drupal.org/project/drupal/issues/3101423 and https://drupal.stackexchange.com/questions/289673/route-entity-path-alia...
composer require 'drupal/pathauto:^1.6'In all the cases, when I reach
drush cr/updb, finally I end-up with same issue.Note:
Currently I'm upgrading to
Drupal 8.9.3fromDrupal 8.6.2Comment #9
kalidasan commentedComment #10
catch@kalidasan please try deleting you sites/default/files/php directory to see if that helps? (Also please ensure you're running the update on a copy of your Drupal 8 database).
Comment #11
kalidasan commentedIssue is with one of our custom service file which missed necessary arguments(few of the custom module delivered by third part vendor).
Thanks @catch for your input any way.
Comment #12
2yellowdots commentedThanks for posting this issue @kalidsan. I was able to use one of the links you posted to help me out.