Configure a single newsletter with opt-in hidden. Visit /user/XXX/simplenews and it generates an error:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\simplenews\Form\SubscriptionsFormBase::setNewsletterIds() must be of the type array, null given, called in /data/www/web/modules/simplenews/src/Form/SubscriptionsFormBase.php on line 63 in Drupal\simplenews\Form\SubscriptionsFormBase->setNewsletterIds() (line 51 of modules/simplenews/src/Form/SubscriptionsFormBase.php).

CommentFileSizeAuthor
#2 simplenews.no-newsletters.3031067-2.patch462 bytesadamps

Comments

AdamPS created an issue. See original summary.

adamps’s picture

Status: Active » Needs review
StatusFileSize
new462 bytes

Status: Needs review » Needs work

The last submitted patch, 2: simplenews.no-newsletters.3031067-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • Berdir committed 689f79a on 8.x-1.x authored by AdamPS
    Issue #3031067 by AdamPS: Exception on user newsletters tab if no valid...
berdir’s picture

Status: Needs work » Fixed

Thanks. test fails are unrelated and happen on HEAD too, trying to figure out what's wrong there would help with testing patches. Simplenews had a few nasty random test issues in the past with mail subject encoding and other fun topics.

adamps’s picture

Great thanks for quick response to save me trying to debug the failure.

Status: Fixed » Closed (fixed)

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