I am updating a site from Drupal 8.7 to Drupal 8.8, and after running a drush updb, I encountered this error:
[error] TypeError: Argument 2 passed to DrupalpathautoAliasStorageHelper::__construct() must be an instance of Drupalpath_aliasAliasRepositoryInterface, instance of DrupalCorePathAliasRepository given, called in drupal/core/lib/Drupal/Component/DependencyInjection/Container.php on line 289 in DrupalpathautoAliasStorageHelper->__construct() (line 79 of drupal/modules/contrib/pathauto/src/AliasStorageHelper.php) #0 drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(289): DrupalpathautoAliasStorageHelper->__construct(Object(DrupalCoreConfigConfigFactory), Object(DrupalCorePathAliasRepository), Object(DrupalCoreDatabaseDrivermysqlConnection), Object(DrupalpathautoVerboseMessenger), Object(DrupalCoreStringTranslationTranslationManager), Object(DrupalCoreEntityEntityTypeManager))
I found a similar issue in this link here and there seems to be a solution(patch) for it.
EDIT:
I ran a composer command attempting to fix the path alias error:
composer require ‘drupal/pathauto:1.x-dev@dev’
Ran composer update, and drush updb. The following is the error displayed by the console:
> [error] Argument 2 passed to DrupalpathautoAliasStorageHelper::__construct() must be an instance of Drupalpath_aliasAliasRepositoryInterface, instance of DrupalCorePathAliasRepository given > [error] Update failed: block_field_update_8001 > PHP Fatal error: Uncaught ReflectionException: Class Drupalpath_aliasAliasRepository does not exist in /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php:1174 > Stack trace: > #0 /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(1174): ReflectionClass->__construct('Drupal\path_ali...') > #1 /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(634): SymfonyComponentDependencyInjectionContainerBuilder->createService(Object(SymfonyComponentDependencyInjectionDefinition), Array, true, 'path_alias.repo...') > #2 /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(1281): SymfonyComponentDependencyInjectionContainerBuilder->doGet('path_alias.repo...', 1, Array, true) > #3 /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(1238): SymfonyComponentDependencyInjectionContainerBuilder->doResolveServices(Object(SymfonyComponentDependencyInjectionReference), Array, true) > #4 /var/www/html/docroot/ in /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php on line 1174 [error] Update aborted by: system_update_8803, block_field_update_8001 [error] Finished performing updates.
Is there anything else I can do with the pathauto module?