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
In hook_install_tasks()
, Subprofiles calls install_profile_info()
to load the name of the profile being installed. However, because a second argument is not passed, the static cache in install_profile_info()
is seeded with potentially incorrect locale information, triggering a bug in which the Locale module is not enabled in non-English installs. See #2351823: Error when installing Open Outreach in language other than English.
Proposed resolution
Read required information from the $install_state
rather than loading.
Comments
Comment #2
nedjo