Automattic / Automattic/jetpack

[Atomic] Comments not working on password protected posts & pages in some browsers

Open
#21,012 15 comments 1 reaction 0 assignees View on GitHub
Customer Report Verbum comments
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

*2023-04-13 Update from *[*recent troubleshooting*]()*, thanks @masperber !*

* *This bug only affects Atomic sites.*
* *This bug affects both FSE and Classic themes.*
* *This bug affects the Chrome and Opera browsers.*
* *This bug does not affect the Firefox and Safari browsers.*

---

### Steps to Reproduce

[**WordPress.com**]()

1. On an AT site create a password protected post
2. Attempt to comment on that post

**Self-hosted WordPress**

1. Enable Jetpack
2. From Jetpack > Settings > Discussion enable 'Let visitors use a [WordPress.com](), Twitter, Facebook, or Google account to comment'
3. Create a password protected post
4. Attempt to comment on that post

### What I expected to happen

Comments should be accepted and added to the post when a comment is typed and 'post comment' is clicked.

### What actually happened

After writing a comment and clicking 'post comment' there is a pause and then the comment box disappears. No comment is visible on the post itself nor in the site owner's list of comments.

### Context

This was reported here: 4266004-zd-woothemes

I tested on my own site with user's `illustratr` theme and `twenty twenty`. I also tested with all user plugins disabled. Neither affected this issue. I could not post a comment.

I was able to post a comment when attempting to post as the site owner while using the healthcheck plugin in troubleshooting mode.

Deactivating the Jetpack comments module on the [WordPress.com]() site allowed the comment to be posted.

Disabling 'Let visitors use a [WordPress.com](), Twitter, Facebook, or Google account to comment' from Jetpack > settings > discussion on the self hosted site allowed a comment to be posted.

### Operating System

macOS

### OS Version

11.5.2

### Browser

Chrome/Chromium

### Browser Version(s)

92.0.4515.159

### Is this specific to applied theme? If so, what is the theme name?

No

### Simple/Atomic

Atomic

### Console and/or error logs

*No response*

### Number of Users Impacted

Some users (<50%)

### Available Workarounds

Deactivating the Jetpack comments module on the [WordPress.com]() site allowed a comment to be posted.

Disabling 'Let visitors use a [WordPress.com](), Twitter, Facebook, or Google account to comment' from Jetpack > settings > discussion on the self hosted site allowed a comment to be posted.

### Reproducibility

Consistent

### Other information

*No response*

Contributor guide

Open the contributing guide

Research direction

Start with the Jetpack comments module and reproduce the password-protected-post flow in Chrome or Opera, comparing it with Firefox or Safari. Check whether the comment submission is lost after the comment box disappears; done means comments are accepted and visible on the post and in the site owner's comment list without disabling the module.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
backend, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.