Loading...
 
Skip to main content

Unable to "unsubscribe" from Newsletter

Status
Closed
Subject
Unable to "unsubscribe" from Newsletter
Version
9.x
Category
  • Usability
  • Developer Training
  • Patch
Feature
Newsletters
Resolution status
Fixed or Solved
Submitted by
Steve
Lastmod by
Ushindi Gedeon
Rating
(0)
Description
When clicking the "unsubscribe" link from a newsletter email the customer is immediately taken to the site where they receive a "You are not logged in" error. If the customer were to first log into the site and then click the newsletter "unsubscribe" link in the email it works fine.
Files
  1. Tiki Newsletters
Solution

Edit "tiki-newsletters.php

Change line 11 to read

Copy to clipboard
if ( !isset( $_REQUEST["unsubscribe"] ) ){ $access->check_permission('tiki_p_list_newsletters'); }


Change line 37 to read

Copy to clipboard
if (!$user && $tiki_p_subscribe_newsletters != 'y' && !isset($_REQUEST["confirm_subscription"]) && !isset($_REQUEST["unsubscribe"])) {


I have attached an updated tiki-newsletters.php file.

Workaround
Importance
8
Easy to solve?
7
Priority
56
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4333
Created
Saturday 03 November, 2012 15:02:10 UTC
by Steve
LastModif
Saturday 04 July, 2026 21:10:32 UTC


Show PHP error messages