After upgrading to the latest version the subscriptions list vanishes from users pages (e.g. www.example.com/users/admin). Instead of displaying;
Manage my subscriptions
Current subscriptions
list of newsletters
It simply says 'array'.
I resolved the issue by removing a line of code in the simplenews.module file. Line 1136 has the code;
'#children' => array(),
This is new over version 6.x-2.0-alpha3 and I'm not sure of why it has been included.
I'm not sure if this is an issue only I am seeing but it has occurred on all sites I manage with simplenews installed.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | children-fix.patch | 878 bytes | berdir |
Comments
Comment #1
berdirYes, confirmed. The #children definition is necessary to avoid a php notice (which breaks automated tests), but I incorrectly added it always, which causes sub-elements to be ignored. Instead, it must only be added if there are no sub-elements (which happens if the user has no permissions to subscribe or there are no newsletters).
Comment #2
berdirCommited.
Comment #3
buildyourbox commentedQuick turn around time.
Regards,
Build Your Box.
Any feedback appreciated.