OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Notification plugin - unsubscribe

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Notification plugin - unsubscribe

Postby trudie » Tue Jul 31, 2012 7:31 am

Version 2.3.3-3

Process: We have enabled the notification plugin on the sidebar of our journal. This allows users to register for notifications, and to manage the notifications.

Problem: Once subscribed to notifications, and you would like to unsubscribe to notification emails - the system doesn't allow you.

Examined:
Selecting the tab called 'unsubscribe' it takes me to this page:
screen1.png
screen1.png (25.57 KiB) Viewed 400 times


The system asks me to enter my email and password (password?? - were would I get a password.)

The system indicates that if I do not have a password leave the area blank and a new password will be emailed to me.

The system sends the email and I enter the password provided to stop receiving notifications.
screen2.png
screen2.png (24.77 KiB) Viewed 399 times


I receive the email from the OJS software with password. After entering the email, and password meticulously online into the OJS software. ( I did this twice) I received an error message.
screen4.png
screen4.png (28.62 KiB) Viewed 400 times


Request to PKP: Is this a bug - I require an urgent fix to prevent spamming people who wishes to unsubscribe.
trudie
 
Posts: 28
Joined: Fri Jan 12, 2007 5:31 am

Re: Notification plugin - unsubscribe

Postby trudie » Tue Jul 31, 2012 7:46 am

Bugzilla report: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=5984 will this fix the problem above?
trudie
 
Posts: 28
Joined: Fri Jan 12, 2007 5:31 am

Re: Notification plugin - unsubscribe

Postby trudie » Fri Aug 03, 2012 7:30 am

Unfortunately it seem that the recommended bug as mentioned above, is not applicable for the version we use, which is OJS 2.3.3.3 - can someone advise me on a possible fix.
Assistance will be appreciated.

Kind regards, Trudie
trudie
 
Posts: 28
Joined: Fri Jan 12, 2007 5:31 am

Re: Notification plugin - unsubscribe

Postby MMeijer » Wed Oct 02, 2013 3:28 am

Hi,
we ran into the same problem.
It's a bug. Patch 5984 doesn't solve it => they obviously didn't test :(

My patch here applies to the same file: ojs2/lib/pkp/classes/notification/NotificationsSettingsDAO.inc.php
In member function unsubscribeGuest($email, $password) replace these lines:
Code: Select all
      $result =& $this->retrieve(
         'SELECT setting_id FROM notification_settings WHERE setting_name = ? AND product = ? AND context = ?',
         array(
            'mailList',
            $productName,
            (int) $contextId
         )
      );

by these:
Code: Select all
      $result =& $this->retrieve(
         'SELECT setting_id FROM notification_settings WHERE setting_name = ? AND product = ? AND context = ? AND setting_value = ?',
         array(
            'mailList',
            $productName,
            (int) $contextId,
            $email
         )
      );


Cheers,
Maarten
MMeijer
 
Posts: 35
Joined: Fri Nov 10, 2006 3:25 am
Location: Utrecht

Re: Notification plugin - unsubscribe

Postby asmecher » Wed Oct 02, 2013 4:16 pm

Hi Maarten,

That function no longer exists in OJS 2.4.2; what version are you using?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7737
Joined: Wed Aug 10, 2005 12:56 pm

Re: Notification plugin - unsubscribe

Postby MMeijer » Thu Oct 03, 2013 3:24 am

Hi Alec,
I'm sorry, forgot to mention! This applies to 2.3.8.
Yes, we better upgrade our OJS installations soon!
Gr. Maarten
MMeijer
 
Posts: 35
Joined: Fri Nov 10, 2006 3:25 am
Location: Utrecht


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 3 guests