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.
I have some Commons installed alongside Drupal Commerce. When I visit the Feature that handles all these dependencies, I am seeing some PHP warnings.
I inserted a krumo dump above to see how many times hook_default_rules_configuration_alter was called. We can see its called 5 times (by various Commerce modules) before commons_groups.module instantiates it.
The commons code assumes $configs['rules_og_member_active'] is available to modify. 5/6 times, its not part of the configs array.
Checking to see if this key exists before assigning anything to the object should prevent this from happening.
Comment | File | Size | Author |
---|---|---|---|
commons_groups-disable-og-notifications-strict-warnings-0.patch | 829 bytes | saltednut | |
commons-default_rules_configuration_alter-warning.png | 218.39 KB | saltednut |
Comments
Comment #1
saltednutNote: patch looks a little weird because I also adjusted some indentations.
Comment #2
ezra-g CreditAttribution: ezra-g commentedLooks good. Committed. Thanks!
http://drupalcode.org/project/commons_groups.git/commit/7be52ca