wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

Reader: Paid Subscribers See Incorrect Content and A Message That They Need to Upgrade

Open katiebethbrown opened this issue 1 year ago • 4 comments

Issue

Posts gated to paying newsletter subscribers are displaying incorrectly in the Reader.

Paying subscribers still get the preview/gated version, and a message asking them to upgrade.

Details

Subscription management confirms I have a paid subscription to the site:

But I see this on every post in the Reader:

katiebethbrown avatar Feb 23 '24 00:02 katiebethbrown

cc: @Automattic/zap @Automattic/gold

katiebethbrown avatar Feb 23 '24 00:02 katiebethbrown

I'm wondering if there could be some kind of caching at play here, because the issue below has numerous reports of the opposite behavior, where the paid content shows in the Reader to non-paying customers:

  • https://github.com/Automattic/wp-calypso/issues/44554

katiebethbrown avatar Feb 23 '24 17:02 katiebethbrown

cc @Automattic/loop

katiebethbrown avatar Feb 23 '24 17:02 katiebethbrown

With our team transferring into Build, we're not currently focused on the reader at all. @simison curious if this is something your team might be able to look into since it's related to paid subscribers?

davemart-in avatar Feb 23 '24 18:02 davemart-in

I am pretty sure this was a bug that got sorted several months ago already so seems like something re-triggered it.

@Automattic/gold know what's going on here?

simison avatar Feb 25 '24 18:02 simison

However I wonder if @Automattic/zap tinkering with the cookies in those PRs could be the issue, as the dates seem to match: https://github.com/Automattic/jetpack/pull/35849 https://github.com/Automattic/jetpack/pull/35852

Hi @millerf, not sure what you mean by that. The first PR you mentioned is not even merged and the second one is just preventing the HTTP 301 redirection which has nothing to do with cookies...

pkuliga avatar Feb 26 '24 16:02 pkuliga

Can you try again? I wonder if this is due to some desync in JP/Atomic vs WPCOM codebase...

@millerf - I tested again this morning and I'm still getting the free/gated content in the Reader as a paying subscriber.

Clicking on the upgrade button in the Reader takes me to the post on the site, where I can see the content in full without issue.

katiebethbrown avatar Feb 26 '24 16:02 katiebethbrown

Hi @millerf, not sure what you mean by that. The first PR you mentioned is not even merged and the second one is just preventing the HTTP 301 redirection which has nothing to do with cookies...

@pkuliga Yes, sorry. I noticed it afterwards. I thought the first PR was merged. I removed my comment too late.

@millerf - I tested again this morning and I'm still getting the free/gated content in the Reader as a paying subscriber.

@katiebethbrown Thanks for testing. I'll investigate now.

millerf avatar Feb 26 '24 16:02 millerf

I have a fix for this at D139775-code

chrismccluskey avatar Feb 26 '24 23:02 chrismccluskey

I have a fix for this at D139775-code

@chrismccluskey Looking at the fix, how has this ever worked before?

millerf avatar Feb 27 '24 00:02 millerf

@katiebethbrown @simison @davemart-in

It looks like Reader has never supported paywalled content coming from Jetpack sites.

For the record, @Automattic/gold has never been involved with the Reader, and we were never made aware of this.

millerf avatar Feb 27 '24 10:02 millerf

I have a fix for this at D139775-code

I'll let @Automattic/loop review it. I don't know enough about Reader.

millerf avatar Feb 27 '24 10:02 millerf

@davemart-in Would you mind to have you or your team review D139775-code ? You have the best knowledge about it.

millerf avatar Feb 28 '24 12:02 millerf

@millerf our team is no longer working on Reader. To my knowledge, there is no team currently working on Reader.

davemart-in avatar Feb 28 '24 12:02 davemart-in

Sorry, I just saw this message come through after my other reply:

@davemart-in Would you mind to have you or your team review D139775-code? You have the best knowledge about it.

@millerf sure! @Addison-Stavlo, @eoigal, @roo2 would one of you mind reviewing this when you have time?

davemart-in avatar Feb 28 '24 12:02 davemart-in

📌 ACTIONS

  • Marking this as Triaged considering there's already a PR in place and two different teams involved. Switching Priority to High considering it's not actively blocking paying customers from seeing gated content outside of the Reader.

liviopv avatar Feb 28 '24 15:02 liviopv

The fix I have created isn't going to work. See p3btAN-2D0-p2#comment-20298 for more details.

chrismccluskey avatar Mar 06 '24 21:03 chrismccluskey

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] p3btAN-2D0-p2#comment-20298

github-actions[bot] avatar Mar 06 '24 21:03 github-actions[bot]

@chrismccluskey You should be able to rely on constants introduced in https://github.com/Automattic/jetpack/pull/36254 to prevent that issue.

millerf avatar Mar 07 '24 16:03 millerf

Deployed D139775-code

chrismccluskey avatar Mar 15 '24 17:03 chrismccluskey

Reverted D139775-code and will be making a follow-up patch soon. Context: p1710527966085279-slack-C02ECE3ML

chrismccluskey avatar Mar 15 '24 19:03 chrismccluskey

New fix: D142166-code

chrismccluskey avatar Mar 15 '24 20:03 chrismccluskey

Deployed D142166-code

chrismccluskey avatar Mar 18 '24 19:03 chrismccluskey

@chrismccluskey I had to revert it (see slack comment: p1710836162494899/1710527966.085279-slack-C02ECE3ML) It's a tricky one...

It looks like $feed_item is sometimes not a WP_Post. Maybe checking for that would be enough...metimes

millerf avatar Mar 19 '24 09:03 millerf

I had to revert it.

Thanks for catching that! This PR should resolve the issue: D142489-code

chrismccluskey avatar Mar 19 '24 20:03 chrismccluskey

Auto-closed when I merged the Jetpack PR, but there is still one PR to merge.

chrismccluskey avatar Mar 26 '24 16:03 chrismccluskey

Will deploy WPCOM PR when latest Jetpack change is deployed to WPCOM.

chrismccluskey avatar Mar 26 '24 17:03 chrismccluskey

Deployed. I've got alerts setup for errors and I'm not seeing any.

chrismccluskey avatar Mar 26 '24 21:03 chrismccluskey