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

JavaScript error when interacting with Safe Mode #5834

Open kraftbj opened 7 years ago

kraftbj commented 7 years ago

With an IDC in progress and the Safe Mode prompt appears, @BandonRandon reports the following error:

TypeError: analytics.tracks is undefined[Learn More]  idc-notice.js:220:4
    trackAndBumpMCStats https:///wp-content/plugins/jetpack/_inc/idc-notice.js:220:4
    confirmSafeMode https:///wp-content/plugins/jetpack/_inc/idc-notice.js:94:3
    n.event.dispatch https:///wp-admin/load-scripts.php:3:12392
    n.event.add/r.handle https:///wp-admin/load-scripts.php:3:9156

This is preventing the JS from firing when attempting to confirm Safe Mode and disables the rest of the Settings page from working, including the Disconnect link.

BrookeDot commented 7 years ago

This is also happening when clicking "Fix Jetpack's Connection".

To confirm a bit regarding the settings pages not loading, pushState is changing the Jetpack Admin Page. Yet, the settings themselves do not load. https:///wp-admin/admin.php?page=jetpack#/settings

Clicking on Site Stats returns

unknown_token: It looks like your Jetpack connection is broken. Try disconnecting from WordPress.com then reconnecting.

The Debug Bar plugin is showing the following JavaScript errors. The analytics.push is happening on load and the analytics.tracks on submit/press of the button (which is the error in the original report above)

screenshot_08-12-2016-13 12 23

Let me know if there are additional details that would be helpful. Was able to replicate on both Firefox and Chromium on Linux Mint 18.1 Beta.

stale[bot] commented 6 years ago

This issue has been marked as stale. This happened because:

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.