OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Notification subscription problem

Are you a Director, Presenter, Reviewer or Conference Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael

Forum rules
This forum is meant for general questions about the usability of OCS from an everyday user's perspective: conference managers, presenters, and directors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OCS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OCS:

1. Read the documentation. We've written documentation to cover from OCS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OCS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OCS Technical Support subforum; if you have a development question, try the OCS Development subforum.

Re: Notification subscription problem

Postby tonreproc » Fri Jan 07, 2011 1:54 am

Hi Alec,

no, I was not logged in when I tried to unsubsrcibe.

Regards,
COr
tonreproc
 
Posts: 22
Joined: Sat Mar 06, 2010 8:56 am
Location: Netherlands

Re: Notification subscription problem

Postby asmecher » Fri Jan 07, 2011 9:28 am

Hi Cor,

Hmm, we must have different implementations of the subscribeGuest function in classes/notification/NotificationSettingsDAO.inc.php; look for a call to the $accessKeyManager->createKey. What do you see for that call? I have:
Code: Select all
$password = $accessKeyManager->createKey('MailListContext', $assocId, $assocId, 60); // 60 days
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8842
Joined: Wed Aug 10, 2005 12:56 pm

Re: Notification subscription problem

Postby tonreproc » Fri Jan 07, 2011 9:54 am

Hi Alec,

here I find in line 290:
$password = $accessKeyManager->createKey('MailListContext', $assocId, $assocId, 60); // 60 days

that looks the same as what you mailed me.

Regards,
Cor
tonreproc
 
Posts: 22
Joined: Sat Mar 06, 2010 8:56 am
Location: Netherlands

Re: Notification subscription problem

Postby asmecher » Fri Jan 07, 2011 10:38 am

Hi Cor,

We must be garbling information somehow. From your previous post, you're getting the following debug information when you unsubscribe:
The context is MailListContext
The userId is 58
The keyHash is 6f0e4e910716394477c4e3ef63b75014
The assocId is (nothing here)
This should correspond to the following in check in the DB:
Code: Select all
SELECT * FROM access_keys WHERE context = 'MailListContext' AND key_hash = '6f0e4e910716394477c4e3ef63b75014' AND user_id = 58 AND expiry_date > now();
This is not returning a result, when it should be. Can you check in the DB to see what of these fields is not matching properly?

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

Re: Notification subscription problem

Postby tonreproc » Fri Jan 07, 2011 4:21 pm

Dear Alec,

the record in the access_keys table with key_hash = '6f0e4e910716394477c4e3ef63b75014' reads:

Edit Delete 39 MailListContext 6f0e4e910716394477c4e3ef63b75014 62 62 2011-03-06 19:40:44

so the userid is 62 not 58. Beats me.

The record with userid=58 looks like:
Edit Delete 35 MailListContext e2903996aae61452094b6a291f04197b 58 58 2011-03-05 21:35:54

Regards,
Cor
tonreproc
 
Posts: 22
Joined: Sat Mar 06, 2010 8:56 am
Location: Netherlands

Re: Notification subscription problem

Postby tonreproc » Wed Jan 19, 2011 12:48 am

Dear Alec,

do you think there is a possible way out of the problem?

Cordial regards,
Cor
tonreproc
 
Posts: 22
Joined: Sat Mar 06, 2010 8:56 am
Location: Netherlands

Re: Notification subscription problem

Postby asmecher » Wed Jan 19, 2011 9:51 am

Hi Cor,

I passed this thread along to the developer who wrote that code; he should be getting back to you shortly. As you can see, it's sometimes very difficult to debug remotely, so you'll have to be patient.

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

Previous

Return to OCS Conference Support and Discussion

Who is online

Users browsing this forum: Bing [Bot] and 2 guests