pulibrary / recap

ReCAP Drupal 10 Site
GNU General Public License v2.0
2 stars 1 forks source link

Status Report and Module Update pages can't load in the local development environment #217

Closed kevinreiss closed 1 month ago

kevinreiss commented 1 year ago

Upgrading to core 9.4.8 breaks these reports with this error:

Drupal\Core\Extension\Exception\UnknownExtensionException: The module does not exist or is not installed. in Drupal\Core\Extension\ExtensionList->getExtensionInfo() (line 346

kevinreiss commented 1 year ago

This branch breaks these screens with a clone of the prod database: https://github.com/pulibrary/recap/pull/211

kevinreiss commented 1 year ago

Seem to have a found a fix for this steps:

  1. Ran: lando drush php-eval "\Drupal::keyValue('system.schema')->delete('standard');" to clear a warning about this module being missing, address warning "Module standard has an entry in the system.schema key/value storage, but is not installed" on watchdog log, see https://www.drupal.org/node/3137656.
  2. Add profile_switcher: https://www.drupal.org/project/profile_switcher - see https://www.drupal.org/project/drupal/issues/3219126
  3. Enable profile_switcher: lando drush en profile_switcher
  4. Switch to standard profile: lando drush sp standard
  5. Rebuild cache: lando drush cache:rebuild

https://github.com/pulibrary/recap/pull/216

kevinreiss commented 1 year ago

We are not seeing this issue in the staging or production environments. Need to research why our routine for seeding the local environment seems to introduce this condition.