Automattic / Automattic/jetpack

Admin bar: Missing data from PHP (wpNotesArgs) in admin-bar-v2.js

Open
#27,184 3 comments 0 reactions 0 assignees View on GitHub
[Feature] Notifications [Plugin] Jetpack [Pri] Low Bug Customer Report [LEGACY]
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Steps to Reproduce

1. On a Jetpack-connected site, open the developer console and refresh any page (wp-admin, post editor, front-end page / post (only while logged in).
2. You should see the following console error (assuming the notifications feature is enabled, which it is by default): `Missing data from PHP (wpNotesArgs)`. This points to `admin-bar-v2.js`.
3. [Disable notifications](https://jetpack.com/support/control-jetpack-features-on-one-page/), refresh a page, and that console error won't appear.

### A clear and concise description of what you expected to happen.

No console error when the notifications feature is enabled.

While this appears to have been around for some time, it was recently mentioned in internal testing - p8oabR-Ym-p2#comment-6739 - and there isn't an easily searchable existing issue.

### Browser

Google Chrome/Chromium

### Other information

Console error:
Screen Shot 2022-10-31 at 1 14 14 pm

### Platform (Simple, Atomic, or both?)

Self-hosted

### Reproducibility

Consistent

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue on a self-hosted, Jetpack-connected site with notifications enabled, then inspect the admin-bar-v2.js entry point named in the console error. Compare the page behavior with notifications disabled to trace the missing wpNotesArgs data. Done means the error no longer appears when notifications are enabled on wp-admin, the post editor, and logged-in front-end pages.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
full-stack
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.