WordPress.org

Making WordPress.org

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#1980 closed defect (fixed)

Forums: Subscribe/unsubscribe and Favorite/Unfavorite actions not functioning

Reported by: SergeyBiryukov Owned by:
Milestone: Priority: high
Component: Support Forums Keywords:
Cc:

Description

The Subscribe link in the sidebar doesn't work as expected:
https://ru.wordpress.org/support/topic/Как-заставить-работать-js-скрипты/

If I click the Subscribe link (with a check mark icon), the link text changes to | Subscribe (translated) instead of Unsubscribe. After a page refresh, the link text still says Subscribe (translated).

After a couple of hours, I've received an email from the topic (so notifications appear to work), but it's still not displayed in my subscriptions list on the local forum.

If try the same steps on a topic from English forums, the text correctly changes to | Unsubscribe:
https://wordpress.org/support/topic/forum-bugs-and-broken-things/

And the topic is displayed in my subscriptions list right away.

Change History (16)

This ticket was mentioned in Slack in #forums by sergey. View the logs.


3 years ago

#2 in reply to: ↑ description ; follow-up: @netweb
3 years ago

Replying to SergeyBiryukov:

If try the same steps on a topic from English forums, the text correctly changes to | Unsubscribe:
https://wordpress.org/support/topic/forum-bugs-and-broken-things/

Where as I cannot subscribe to this topic, regardless of how many times I click the "Subscribe" topic toggle, it will change to | Subscribe, but upon page refresh it is always back to Subscribe

And the topic is displayed in my subscriptions list right away.

And is never added to my subscriptions list


Notes from a conversation with @jmdodd on this issue:

netweb: Right, this wp_usermeta is in the w.org/support database though correct? i.e. Not shared with the w.org site wide wp_users table

jmdodd: No, it is part of the shared users/usermeta table across all multisites and everything else dotorg.

netweb: I’m not sure how the exact details of the users table arrangements across dotorg

jmdodd: There’s a custom user and usermeta table that all the sites use no matter what they’re running.

jmdodd: So when I run the query, I’m probably hitting a slave, as are you.

netweb: Though we haven’t hit this siutaion previously with subscribed topics from both bbpress.org and buddypress.org

jmdodd: If there’s replication issues, that’s one thing, if there’s an issue with a plugin that is preventing bbPress unsubs/subs from working, that’s not good.

netweb: bbp-user-46383 <- Thats my w.org/support user ID

jmdodd: I ran this query SELECT * FROM bb_usermeta WHERE user_id = 46383 AND meta_key LIKE 'wporg_419%' LIMIT 15

jmdodd: (wporg_419_ is the forums blog prefix)

jmdodd: It pulled up your caps and favs and counts, but no subs.

At the time the above was performed subscriptions had not yet been imported, they have now, and I have subscriptions to other topics now though I'm still not able to subscribe to the topic I mentioned at the top of this post

#3 @netweb
3 years ago

#2046 was marked as a duplicate.

#4 @ocean90
3 years ago

  • Component changed from International Forums to Support Forums
  • Summary changed from Forums: Subscribing issues on Rosetta forums to Forums: Subscribe/unsubscribe actions not functioning

#5 in reply to: ↑ 2 ; follow-up: @SergeyBiryukov
3 years ago

Replying to netweb:

Where as I cannot subscribe to this topic, regardless of how many times I click the "Subscribe" topic toggle, it will change to | Subscribe, but upon page refresh it is always back to Subscribe

Yep, now it doesn't work for me either (stuck on | Unsubscribe). Used to work at the time of ticket creation though :)

#6 in reply to: ↑ 5 @netweb
3 years ago

Replying to SergeyBiryukov:

Replying to netweb:

Where as I cannot subscribe to this topic, regardless of how many times I click the "Subscribe" topic toggle, it will change to | Subscribe, but upon page refresh it is always back to Subscribe

Yep, now it doesn't work for me either (stuck on | Unsubscribe). Used to work at the time of ticket creation though :)

Right, thanks, at least we see consistent behaviour now.

It's also more than just "Subscribe/unsubscribe actions not functioning"

By posting a follow up reply to a topic and checking the Notify me of follow-up replies via email checkbox also has no effect, it will not update your subscription status of that topic.

Last edited 3 years ago by netweb (previous) (diff)

#7 follow-up: @netweb
3 years ago

How bizarre...

Two replies were just added to https://wordpress.org/support/topic/forum-bugs-and-broken-things/

I've just received email notifications for both replies yet the topic shows that I am not subscribed and my profile also does not show that I am subscribed to the topic /shrug

#8 in reply to: ↑ 7 ; follow-up: @SergeyBiryukov
3 years ago

Replying to netweb:

Two replies were just added to https://wordpress.org/support/topic/forum-bugs-and-broken-things/

I've just received email notifications for both replies yet the topic shows that I am not subscribed and my profile also does not show that I am subscribed to the topic /shrug

I got the same results with https://ru.wordpress.org/support/topic/Как-заставить-работать-js-скрипты/.

Emails appear to be working, it's just that the UI doesn't reflect the subscription state properly for some reason.

Last edited 3 years ago by SergeyBiryukov (previous) (diff)

#9 in reply to: ↑ 8 @netweb
3 years ago

Replying to SergeyBiryukov:

Emails appear to be working, it's just that the UI doesn't reflect the subscription state properly for some reason.

The two emails I received today are the first emails received in ~13 days for this topic, there's approx 10 pages/150 replies in between when I last received a notification vs the notification just received.

Note: I did check the subscribe to checkbox when submitting my reply as noted above earlier, I also clicked the subscribe link numerous times earlier whilst checking if there had been any behaviour change, again, /shrug

#10 @Clorith
3 years ago

  • Priority changed from normal to high

Can confirm, unsubscribe actions do not fire at all but subscription emails work it seems.

Bumping the priority of this, as it's a frustration point both to users, and moderators that we can't stop emails coming in (especially since we receive emails after making edits where the original poster has checked the box to receive email updates).

#11 @netweb
3 years ago

Related: #bbPress2959 Favorites & Subscriptions Roadmap

#12 @netweb
3 years ago

  • Summary changed from Forums: Subscribe/unsubscribe actions not functioning to Forums: Subscribe/unsubscribe and Favorite/Unfavorite actions not functioning

It looks as if the same issue is occurring for "Favorites", clicking Favorite does not add the topic to my favorite topics in my profile, likewise "Unfavoriting" by clicking Unfavorite in a topic does not remove a topic from my profile:

https://wordpress.org/support/users/netweb/favorites/

This ticket was mentioned in Slack in #forums by netweb. View the logs.


3 years ago

#14 @keesjan
3 years ago

I have it the other way around, still getting support forum mail from the plugin https://wordpress.org/plugins/amp/

I subscribed to my own question but get all new questions now. I tried Unsubscribe, on https://wordpress.org/support/users/[username]/ (hard to find, why is this not on the plugin page itself?

I found the subscribe/unsubscribe option on each individual thread but I also get new threads conversations from AMP I did not subscribed too!

Keep up the good work.

#15 @ocean90
3 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [dotorg12451]:

Delete user data in the 'users' cache group on meta data changes.

We have to do this because bbPress 1.x uses BackPress which appends user meta to the user object and stores it in the 'users' cache group, see https://backpress.trac.wordpress.org/browser/branches/bbpress-1.0-backpress/includes/class.wp-users.php?marks=467#L427.
WP_User::init() allows to initialize a new user object with any arbitrary data. In this case it will be bbPress'/BackPress' outdated user meta.

WordPress uses a custom cache group for meta data so it doesn't delete the data in the 'users' cache group by default.

This plugin can be removed once all bbPress 1/BackPress-reliant stuff is gone.

Fixes #meta2034, #meta1980.

#16 @netweb
3 years ago

Just to note, this appears all fixed now for me, favorites worked instantly, I could favorite and unfavorite a topic and that topic would appear immediately in my profiles favorites view.

Subscriptions did not work until I removed all topics I was subscribed to and then resubscribed to any topics I wanted to maintain subscriptions for, doesn't make much sense to me right this second as to why that could be.

Note: See TracTickets for help on using tickets.