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.
workbench_moderation_states_features_rebuild() and workbench_moderation_transitions_features_rebuild() call features_get_default() and pass the result directly to a foreach. However, features_get_default() can return boolean FALSE instead of an array, causing the following notice:
Invalid argument supplied for foreach() in workbench_moderation.features.inc
Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#3 | workbench_moderation-install-warnings-2360973-3.patch | 1.63 KB | justanothermark |
#1 | workbench_moderation-2360973-1.patch | 1.3 KB | Dane Powell |
Comments
Comment #1
Dane Powell CreditAttribution: Dane Powell commentedComment #2
Dane Powell CreditAttribution: Dane Powell commentedComment #3
justanothermark CreditAttribution: justanothermark commentedI was also having this problem and while #1 does fix it, it seems that the Features module does it slightly differently when calling features_get_default:
E.g.
http://drupalcontrib.org/api/drupal/contributions%21features%21includes%...
http://drupalcontrib.org/api/drupal/contributions%21features%21includes%...
http://drupalcontrib.org/api/drupal/contributions%21features%21includes%...
However, I would be happy for either patch to be committed.
Comment #4
Dane Powell CreditAttribution: Dane Powell at Acquia commented#3 works for me... if that's how other features modules already handle it, let's follow their lead.
Comment #5
kwiliarty CreditAttribution: kwiliarty commentedI am encountering this problem, too, and it seems that the fix has not yet been incorporated upstream. Does anyone know whether or when it might happen?
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedWe've been using this patch for 6+ months with no problems. Please merge.
Comment #7
maxocub CreditAttribution: maxocub commentedThis bug still exists in 3.x and this patch still resolves it. +1 for RTBC.
Comment #9
das-peter CreditAttribution: das-peter at Cando commentedCommitted and pushed to the 3.x branch.