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?

CommentFileSizeAuthor
d8.png485.33 KBc_estDick

Comments

c_estDick created an issue. See original summary.

dontai’s picture

My 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.

core: 8.x
version: 8.x-2.0
cilefen’s picture

Issue tags: +8.8.0 update
berdir’s picture

Category: Bug report » Support request
Status: Active » Fixed

Your 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

dontai’s picture

Drupal 8.8.1 fixed the error. My site renders, I now have access to the admin area, and all looks normal.

Status: Fixed » Closed (fixed)

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

Gaurav.Singh’s picture

I am still unable to fix upgrade from 8.7.8 to 8.8.2, receiving the same issue as #2 @dantoi.

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).

It can be fixed by defining version and core in path_alias.info.yml

version: '8.8.2'
core: 8.x

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).

tryitonce’s picture

Hi 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.