Subscriber does not exist : PHP Exception

Created on 22 December 2023, 11 months ago
Updated 7 January 2024, 11 months ago

Problem/Motivation

Once a user has unsubscribed, every other attempt to unsubscribe creates a log entry

Exception: The subscriber does not exist. in Drupal\simplenews\Subscription\SubscriptionManager->unsubscribe() (Zeile 156 in /var/www/web7/htdocs/10/web/modules/contrib/simplenews/src/Subscription/SubscriptionManager.php).

Steps to reproduce

Create a newsletter, send it and unsubscribe at least twice.

Proposed resolution

I think consecutive unsubscribes shouldn't yield PHP exceptions -- the purpose of unsubscribing is not to be in a subscriber's list, and this is already the case. If there has to be a message whatsoever, it should be more like "simplenews: subscriber not found" (or the like) message. Sort of a warning not an error.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇦🇹Austria nofue

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024