site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

Error when loading the Admin Bar stats

Open marrrmarrr opened this issue 7 years ago • 6 comments

Describe the bug Site Kit stats don't load in Admin Bar. Instead, we only show a progress bar.

To Reproduce Steps to reproduce the behavior:

  1. Go to a live page of https://www.getbeans.io/ while logged in to WordPress as admin
  2. Click on Site Kit icon in admin bar
  3. Site Kit element loads, but only progress bar is shown, no stats.

Expected behavior Stats should load in the Admin Bar.

Screenshots Screenshot 2019-06-24 at 15 14 59

System Information (please complete the following information):

  • OS: macOS Mojave 10.14.5
  • Browser: Chrome Version 75.0.3770.90
  • Plugin Version: Version 1.0.0-beta.1
  • Device: Macbook Air

Additional context Console error from Chrome devtools: Uncaught TypeError: Cannot read property 'mapValues' of undefined at Module.326 (7fe2108.js:453) at r (7fe2108.js:453) at wp.keycodes.1 (7fe2108.js:453) at 7fe2108.js:453


Do not alter or remove anything below. The following sections will be managed by moderators only.

Changelog entry

Acceptance criteria

  • All elements in the Admin bar should load when the user opens a page of their site while logged in.

marrrmarrr avatar Jun 24 '19 13:06 marrrmarrr

@marrrmarrr what version of WordPress you are running your site on? Can you also provide a list of installed plugins? Also, in the console from Chrome devtools can you type window.lodash from the front end while logged into WordPress and check if returns undefined?

lucymtc avatar Jun 25 '19 21:06 lucymtc

This may be related to 3rd party issue, we need some more details to help reproduce. @marrrmarrr can you provide information listed in the previous comment and the Gutenberg version? thanks

lucymtc avatar Jul 08 '19 10:07 lucymtc

@ThierryA noting that we aren't able to reproduce this issue.

@marrrmarrr could you confirm that the user is still seeing this issue?

bjackson27 avatar Jul 08 '19 14:07 bjackson27

Recommending moving this back to issues.

bjackson27 avatar Jul 09 '19 17:07 bjackson27

@bjackson27 window.lodash results in undefined for me. No additional plugins. I don't see any console errors or networks issues. Happy to investigate further or troubleshoot more if you let me know the plugins you are using @marrrmarrr

jamesozzie avatar Jul 10 '19 12:07 jamesozzie

This is very specific to Beans theme as it does some scripts concatenation and enforce script to be placed in the footer. I think it is ok to close this one as it is an issue on Beans side.

ThierryA avatar Jul 10 '19 13:07 ThierryA