warning: Invalid argument supplied for foreach() in sites/all/modules/subscriptions_og/subscriptions_og.module on line 457.
The following call subscriptions_og_form_alter('subscriptions_ui_node_form', $form['subscription']); fails to provide a non-empty array that is not properly checked for.
This is from a fresh checkout from DRUPAL-5
Received the error at the following url: http://BASEURL/og/subscribe/GID
Not sure if the group settings matter, but here they are;
- moderated - membership requests must be approved.
- registration form - unchecked
- list in groups directory: checked
- private group: unchecked
- New members are subscribed to notifications automatically: unchecked
User only had the following subscription rights and was not a member of group GID
- subscribe to content
- subscribe to organic groups
Please note that the og subscriptions form does not show up at the given URL.
Attached is a patch that prevents the warning, but I'm not sure if this is not just hiding a bigger issue.
| Comment | File | Size | Author |
|---|---|---|---|
| subscriptoins_og.patch | 1.42 KB | jgraham |
Comments
Comment #1
develcuy commented@jgraham, are you using latest beta12? Just uploaded new revision to CVS, please check again.
Blessings!
Comment #2
develcuy commentedComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.