After upgrade to drupal 8.8 and
After login and using the admin menu you will get this error:
The website encountered an unexpected error. Please try again later.Drupal\Core\Extension\InfoParserException: Missing required keys (core) in core/modules/path_alias/path_alias.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 29 of core/lib/Drupal/Core/Extension/InfoParserDynamic.php).
The content of the path_alias.info.yml file:
name: Path alias
type: module
description: 'Provides the API allowing to rename URLs.'
package: Core
version: VERSION
required: true
hidden: true
A new installation works fine with same content of this file but an upgrade returns errors.
How to fix this?
Comments
Comment #2
dontai commentedMy upgrade using Softaculous from D8.7 to D8.8 crashed my site, so I reverted to my Softaculous backup. Now the site renders and I can login and see the admin options, but cannot do any admin functions. I get this error:
The website encountered an unexpected error. Please try again later.
Drupal\Core\Extension\InfoParserException: The 'core' or the 'core_version_requirement' key must be present in core/modules/path_alias/path_alias.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 43 of core/lib/Drupal/Core/Extension/InfoParserDynamic.php).
I added these two lines to path_alias.info.yml (first time editing core files, yikes!) but it did not fix the issue.
Comment #3
cilefen commentedComment #4
berdirYour backup restore didn't revert back new files, you need to delete the core folder and get a clean 8.7 version.
path_alias is an 8.8 module that doens't exist in 8.7
Comment #5
dontai commentedDrupal 8.8.1 fixed the error. My site renders, I now have access to the admin area, and all looks normal.
Comment #7
Gaurav.Singh commentedI am still unable to fix upgrade from 8.7.8 to 8.8.2, receiving the same issue as #2 @dantoi.
It can be fixed by defining version and core in path_alias.info.yml
but still getting below error:
The website encountered an unexpected error. Please try again later.Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.path_alias.collection" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 201 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Comment #8
tryitonce commentedHi Gaurav.Singh, did you resolve this last error?
I go to the same issue and am getting another error after adding version and core to path_alias.info.yml.
There is also a similar posting under path_alias_info.yml missing core version.
Thanks.