Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats Widgets Shows 44,057,264 Stats For Simples Sites In Customizer. #56972

Open
kelasante opened this issue Oct 12, 2021 · 7 comments
Open
Labels
[Pri] Normal Triaged To be used when issues have been triaged. [Type] Bug User Report This issue was created following a WordPress customer report

Comments

@kelasante
Copy link
Collaborator

Quick summary

When you add a Stats widget on a simple site, the Stats shown within the Customizer in Customize > Widgets is incorrect. It shows 44,057,264 hits but shows the right stats on the Live Site.

Steps to reproduce

  1. Go to My Site > Appearance > Widgets on a Simple Site.
  2. Add Stats Widgets.

What you expected to happen

To see accurate stats as you do on the live page.

Markup 2021-10-12 at 17 24 28

What actually happened

However, I see 44,057,264 Stats on both simple sites I tested.

Markup 2021-10-12 at 17 13 40

Context

User in 32132624-hc complained about the discrepancy in their stats. I was able to replicate the issue testing on two simple sites. Works fine on atomic sites.

Operating System

macOS

Browser

Google Chrome/Chromium

Simple, Atomic or both?

Simple

Theme-specific issue?

No response

Other notes

No response

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

No response

Workaround details

No response

@kelasante kelasante added [Type] Bug User Report This issue was created following a WordPress customer report labels Oct 12, 2021
@kelasante kelasante added this to Needs triage in HE Triaging Board (new bugs) via automation Oct 12, 2021
@jordesign
Copy link
Contributor

Have confirmed this behaviour. For additional context this display of millions of likes is showing:

  • Only in the Block Widget editor (doesn't show with classic widgets)
  • Only in the inline Block preview (not in the settings for the widget).

@Robertght this seems like a good candidate for Flow Patrol

@jordesign jordesign moved this from Needs triage to Triaged in HE Triaging Board (new bugs) Oct 13, 2021
@jordesign jordesign added the Triaged To be used when issues have been triaged. label Oct 13, 2021
@Robertght
Copy link

Thank you, folks!

I'm not getting the same exact value in the preview so I'm guessing that's not hardcoded.

Flagging this for @Automattic/flow-patrol-create

@dpasque dpasque moved this from Triaged to Prioritized - Bugs in HE Triaging Board (new bugs) Oct 15, 2021
@sophiegyo
Copy link

sophiegyo commented Nov 26, 2021

Report in 4464684-zen.
I've also been able to replicate this with a slightly different number on two different sites on wpcom.
Numbers were 44,125,098 and 44,125,109.

The issue is that the widget iframe seems to have an entire page hardcoded in there (HTML tags, header, JS, body, and all); I have no idea what page that is though. It's not a URL. There's some math.Random in that hard-coded stuff, and I wonder if it's that, or something else.
Screenshot:
1

As far as I can see, it should be a URL of a widget. This screenshot is from a self-hosted Jetpack site of mine, which is a little out of date as it's using Jetpack 9.8:

2

Even after updating to Jetpack 10.3, my self-hosted widget is fine.

@arunsathiya
Copy link
Contributor

4664133-zen as well. Let them know we don't have a workaround at this time.

@dcoleonline
Copy link
Contributor

5190763-zen

If there is a fix, we should notify the customer.
I've asked them to refer to the public view of the stats or the stats at https://wordpress.com/stats/insights/

@cometgrrl
Copy link
Contributor

Lowering this to normal, since it's correct on the live page.

Another interesting/weird thing I noticed is that when configuring the widget, the title of the box that contains "hits" is 12,345.
Screenshot 2022-08-29 at 2 31 19 PM

@github-actions
Copy link

Support References

This comment is automatically generated. Please do not edit it.

  • 4464684-zen
  • 4664133-zen
  • 5190763-zen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Pri] Normal Triaged To be used when issues have been triaged. [Type] Bug User Report This issue was created following a WordPress customer report
Projects
Development

No branches or pull requests

7 participants