Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 798 forks source link

Paid newsletter subscription issue - Subscriber can't access the content #31903

Closed davipontesblog closed 1 year ago

davipontesblog commented 1 year ago

A paid newsletters subscriber on the site cannot read a paid newsletters post. They received the email notification with the post, but can't read the post on the site.

Site/Subscriber info:

Troubleshooting done:

millerf commented 1 year ago

We have some known issues with the Reader's cache: pMz3w-hVN-p2 Can you confirm that this issue is happening when seing the post on the website and not on the Reader?

Tested setting the latest post https://criticaltherapyantidote.org/2023/07/13/the-black-african-and-asian-therapy-network-baatn-launches-a-misconceived-training-initiative/ as "paid subscribers only" as well, and I can replicate the problem.

This test makes me think you are seing the issue on the Reader...

davipontesblog commented 1 year ago

We have some known issues with the Reader's cache: pMz3w-hVN-p2 Can you confirm that this issue is happening when seing the post on the website and not on the Reader?

Tested setting the latest post https://criticaltherapyantidote.org/2023/07/13/the-black-african-and-asian-therapy-network-baatn-launches-a-misconceived-training-initiative/ as "paid subscribers only" as well, and I can replicate the problem.

This test makes me think you are seing the issue on the Reader...

Hi @millerf , they cannot see the post on the website, or the reader. None work.

cuemarie commented 1 year ago

Gave this a look during triage to see if I can help spot anything.

📌 FINDINGS/SCREENSHOTS/VIDEO

Screenshot 2023-07-17 at 2 18 13 PM

Additionally, under Tools > Earn, I see that while the Premium Content plans are set up, the section Send paid email newsletters is showing Learn how to get started; this strikes me as incorrect:

Markup on 2023-07-17 at 14:24:08

Perhaps it's possible something is not working properly with the Newsletter set up on this site in general, rather than just for that one user? I'm sure @millerf will get this sorted from here :) Hope this helps at all

📌 ACTIONS

millerf commented 1 year ago

Thanks for looking into this @cuemarie

When I SU/SSP in as the site owner, I also cannot view the content of the post in question:

I am a bit skeptical SU is working in that particular use-case. But I might be wrong.

newsletters is showing Learn how to get started; this strikes me as incorrect:

This is "correct", however unintuitive. We will be redesigning the whole Earn dashboard pretty soon :)

But if the user was actually subscribed, reentering his email address would trigger the "2 FA-code login" , and it clearly does not...

https://github.com/Automattic/jetpack/assets/790558/20ba5873-b30e-4f8a-9b80-f12d9625bf35

I am digging a little bit more into this now...

millerf commented 1 year ago

Further findings on Slack: p1689633375955289/1689430191.794019-slack-C02FMH4G8

cuemarie commented 1 year ago

I am a bit skeptical SU is working in that particular use-case. But I might be wrong.

I thought the same! I did also test with SSP and saw the same result, but perhaps both tests are unreliable there 👍

millerf commented 1 year ago

I did also test with SSP

What is SSP?

I am setting a new site to be able to test freely, so we can test SU and know for sure...

millerf commented 1 year ago

We have a fix for a side of the issue D116327-code

However we identified some issues in p1689695694844569/1689430191.794019-slack-C02FMH4G8 that seem to point toward a problem with Jetpack not syncing properly some data to WPCOM. CC @Automattic/jetpack-crew

cuemarie commented 1 year ago

What is SSP?

This is the predecessor to SU, but can still be used and sometimes helps bypass issues/quirks with SU (for example, occasionally it's needed to help reconnect Jetpack as there's a bug that can happen with SU).

Internal info: P9HQHe-P1-p2

millerf commented 1 year ago

@davipontesblog After investigation, I believe this was a mix of small issues:

I would consider this solved. Please let me know if the user encounters further issues,..

millerf commented 1 year ago

I have been able to test and now everything works as expected. (once I'll have deployed the patch)

See: p1689790699198329/1689430191.794019-slack-C02FMH4G8

millerf commented 1 year ago

We found another issue where some data is not synced to WPCOm preventing for some functionalities (email sent, being a major one).

They received the email notification with the post, but can't read the post on the site.

I am not sure how that happened...

millerf commented 1 year ago

Considering this as closed. It will properly work on the next JP release, once https://github.com/Automattic/jetpack-production/commit/daa64236b3ba55d3db4d07b8b26ecb626268ebb8 is out.