Newsletter unsubscribe link always fails — inputConfiguration filters hash as 'bool'
- Status
- Closed
- Subject
- Newsletter unsubscribe link always fails — inputConfiguration filters hash as 'bool'
- Version
- 29.x
- Category
- Error
- Feature
- Newsletters
- Resolution status
- Fixed or Solved
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
Clicking the unsubscribe link in a newsletter email always results in the error "Your request to unsubscribe failed", even though the subscription record and code exist in the database. The subscription is never removed.
Tiki 29.x (confirmed). Likely affects all versions where the $inputConfiguration array is present with this filter.
Steps to Reproduce
- Enable the Newsletters feature
- Create a newsletter and add a subscriber (email-based, non-user)
- Send a newsletter edition
- Open the received email and click the unsubscribe link, e.g.:
- https://example.com/tiki-newsletters.php?unsubscribe=bfaea1b540a27940684c99854449549c
- The page displays: "Your request to unsubscribe failed"
- The subscription record remains in tiki_newsletter_subscriptions — nothing was deleted
In tiki-newsletters.php, the $inputConfiguration array declares the unsubscribe parameter with a 'bool' filter:Copy to clipboard$inputConfiguration = [ [ 'staticKeyFilters' => [ 'unsubscribe' => 'bool', //post // ... ], ], ];
There is a legal concern with so I will commit a fix right away.
Non-functional unsubscribe links may violate anti-spam regulations (CAN-SPAM, GDPR)- Solution
Proposed Fix
Change the input filter from 'bool' to 'word' so the MD5 hash string is preserved:Copy to clipboard// Before (broken): 'unsubscribe' => 'bool', //post // After (fixed): 'unsubscribe' => 'word', //post- Workaround
- Importance
- 7
- Easy to solve?
- 7
- Priority
- 49
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8957
- Created
- Tuesday 24 March, 2026 08:43:25 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Wednesday 25 March, 2026 09:36:27 UTC