Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
This is a repeat of #1389572: migrate_update_7008() fails with a fatal error when the Migrate module is disabled for update 7203.
My means of reproduction:
- Migrate module previously used to import content into a organic groups multi-site platform.
- Migrate module then disabled but not removed.
- Migrate module updated in preparation for a new site migration
- Re-enabling migrate added as an update hook
- Migrate throws fatal error, because even though it appears to be re-enabled before it's own update hooks fire, the code isn't all loaded.
Proposed resolution
Add the thrown exception used in 7008.
Even better, get to the bottom of stale registry cache or other problem that is making this problem occur even if the migrate module was just enabled as part of the same update process.
Remaining tasks
Choose a direction, implement.
User interface changes
N/A
API changes
Maybe, if presumed cache staleness issue is addressed.
Data model changes
N/A
Comments