Unsubscribe URL on Subscriptions Page missing nonce; doesn't work
Quote from cmkl on February 13, 2023, 7:27 pmI am running Asgaros forums on a community environmental issues site. The site admins want users of the forums to be able to subscribe to topics, replies, and forums. The subscriptions function in Asgaros seems to work reasonably well for this. However users are unable to unsubscribe from forums they’ve previously subscribed to.
When a user subscribes to a forum, the subscription is listed on their subscriptions page (/forum/subscriptions/) And there’s an ‘Unsubscribe’ link on every listed forum. But when you click on it doesn’t work.
Other unsubscribe links (like the one located on the forum page itself) do work. I notice that the working links supply a nonce as a GET variable in the URL: https://cafesottawa.ca/forum/forum/miscellaneous/?unsubscribe_forum=10&_wpnonce=b293102971
Whereas the unsubscribe link on the forum subscriptions page does not: https://cafesottawa.ca/forum/subscriptions/?unsubscribe_forum=10
How can I get those unsubscribe links on the user’s subscription page to work? I would like to give them a one-stop-shop for unsubscribing in cases where they want to make all the notifications stop. I don’t want them to have to visit each forum to unsubscribe.
cmkl
I am running Asgaros forums on a community environmental issues site. The site admins want users of the forums to be able to subscribe to topics, replies, and forums. The subscriptions function in Asgaros seems to work reasonably well for this. However users are unable to unsubscribe from forums they’ve previously subscribed to.
When a user subscribes to a forum, the subscription is listed on their subscriptions page (/forum/subscriptions/) And there’s an ‘Unsubscribe’ link on every listed forum. But when you click on it doesn’t work.
Other unsubscribe links (like the one located on the forum page itself) do work. I notice that the working links supply a nonce as a GET variable in the URL: https://cafesottawa.ca/forum/forum/miscellaneous/?unsubscribe_forum=10&_wpnonce=b293102971
Whereas the unsubscribe link on the forum subscriptions page does not: https://cafesottawa.ca/forum/subscriptions/?unsubscribe_forum=10
How can I get those unsubscribe links on the user’s subscription page to work? I would like to give them a one-stop-shop for unsubscribing in cases where they want to make all the notifications stop. I don’t want them to have to visit each forum to unsubscribe.
cmkl
Uploaded files:Quote from Asgaros on March 9, 2023, 3:31 amHello @cmkl
I fixed this issue already in the development version and an update will be available soon!
Hello @cmkl
I fixed this issue already in the development version and an update will be available soon!
Quote from cmkl on March 9, 2023, 9:04 pmQuote from Asgaros on March 9, 2023, 3:31 amHello @cmkl
I fixed this issue already in the development version and an update will be available soon!
This is great news. I will check my WP updates list with great anticipation.
cmkl
Quote from Asgaros on March 9, 2023, 3:31 amHello @cmkl
I fixed this issue already in the development version and an update will be available soon!
This is great news. I will check my WP updates list with great anticipation.
cmkl