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.

CommentFileSizeAuthor
#1 children-fix.patch878 bytesberdir

Comments

berdir’s picture

Version: 6.x-2.0-alpha4 » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new878 bytes

Yes, 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).

berdir’s picture

Status: Needs review » Fixed

Commited.

buildyourbox’s picture

Quick turn around time.

Regards,
Build Your Box.
Any feedback appreciated.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.