2

I'm getting the following errors:

Drupal\Core\Extension\Exception\UnknownExtensionException: The profile does not exist or is not installed. in Drupal\Core\Extension\ExtensionList->getExtensionInfo() (line 346 of /app/drupal/core/lib/Drupal/Core/Extension/ExtensionList.php). Drupal\Core\Extension\Exception\UnknownExtensionException: The module does not exist or is not installed. in Drupal\Core\Extension\ExtensionList->getExtensionInfo() (line 346 of /app/drupal/core/lib/Drupal/Core/Extension/ExtensionList.php).

These errors are not telling me what module is missing. I have not installed any modules. The only thing that I've done is update core from 8.7 to 8.8.1 The only thing that I've done is update from Drupal 8.7 to 8.8.1. Is there anything I can do to find what module is causing the issue?

2 Answers 2

3

I found this Gist about Fixing a Drupal 8 site with an empty install profile related to your problem (which I also have). The guide solved the problems, but created another.

Drupal\Core\Extension\Exception\UnknownExtensionException: The module minimal does not exist or is not installed. in Drupal\Core\Extension\ExtensionList->getExtensionInfo() (linea 346 di /var/www/html/web/core/lib/Drupal/Core/Extension/ExtensionList.php).

Looking for the second problem, I found this issue and patch #112 should solve all your problems without using the first guide I mentioned.

If instead you want to follow the guide, which I think is the best way to go, to solve the new problem do what comment #110 says. By adding the line minimal: 1000 to the core.extension.yml file

1
  • Thanks @McAle, working fine for me Aug 18, 2021 at 16:45
0

You can fix this with Drush.

Please go to command line.

Change directory to document root.

Run this command:

drush eval "\Drupal::service('extension.list.module')->reset()->getList();"

This will fix the error.

PS: I am using drush9. So, please use correct version of drush.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.