Automattic / Automattic/jetpack

Facebook Widget: ErrorUtils error in console

Open
#20,881 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Extra Sidebar Widgets [Plugin] Jetpack [Pri] Low Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 14h
Merged PRs (30d)
790

Description

### Impacted plugin

Jetpack

### Steps to Reproduce

**This error doesn't seem to affect the functionality of the widget.**

1. Install, activate, and connect Jetpack.
2. In wp-admin, navigate to Jetpack -> Settings -> Writing.
3. Enable the "Make extra widgets available for use on your site including subscription forms and Twitter streams" setting. It's in the `Widgets` section.
4. In wp-admin, navigate to Appearance -> Widgets.
5. Add a new "Facebook Page Plugin (Jetpack)" widget. Enable the widget's "Show Timeline" setting.
6. Click the `Update` button to save the widget.
7. Check the dev tools console, and see this error:
```
ErrorUtils caught an error:

Cannot listen to an undefined element. [Caught in: Tried to listen to element of type click]

Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs.
```

A similar (possibly same) error was reported to Facebook [here](https://developers.facebook.com/community/threads/226101445658989/).

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with Jetpack enabled in wp-admin under Appearance → Widgets, add the Facebook Page Plugin widget with Show Timeline enabled, and inspect the browser console. Trace the Facebook widget integration from that entry point; done means the widget remains functional and the reported ErrorUtils message is no longer logged.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
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.