When upgrading to Drupal 8.8 I want to update this module from 1.x to 2.x at the same time.

However when I run drush updb as the first command after updating the codebase I get the following PHP fatal error: Class 'Drupal\path_alias\AliasRepository' not found in /var/www/web/modules/contrib/language_neutral_aliases/src/AliasRepositoryDecorator.php on line 14.

This seems to be caused by the fact that the Drupal\path_alias\AliasRepository class which is introduced with Drupal 8.8 cannot be autoloaded yet.

Comments

kasperg created an issue. See original summary.

kasperg’s picture

Status: Active » Needs review
StatusFileSize
new3.16 KB

Here is a patch which tries to address this issue. It has two parts:

  1. A stub version of Drupal\path_alias\AliasRepository which should be usable during the update process.
  2. Removal of a constructor type hint which is defined in the DocBlock instead.

  • Xen committed 4b1f304 on 8.x-2.x authored by kasperg
    Issue #3124736 by kasperg: Class not found when updating from Drupal...
xen’s picture

Status: Needs review » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.