Skip to content

Jetpack Stats - 48 hour graph breaking in WP Admin on a site #39729

Open

Description

Impacted plugin

Jetpack

Quick summary

Hello! I'm going to work with screenshots as the site hasn't yet launched - I don't want the dev URL on a public repo. Feel free to find me in Slack for the URL (@kim in Automattic's Slack org)

The Jetpack Stats graph that shows results is showing a broken image. The issue was also present on kimclow.blog last week, however after reconnecting Jetpack that seemed to resolve the issue. We're unsure how to resolve it on this new site. The JP connection is active.

What's interesting is that if you view the site via Calypso, the graph works perfectly.

Image

If you view it via WP Admin, it's broken.

Image

Our devs took a quick look and said:

I figured out that the code not working is inside the function stats_reports_page in the Jetpack file modules/stats.php. By the looks of it, it might be a failed GET request to dashboard.wordpress.com/wp-includes/charts/admin-bar-hours-scale-2x.php but I’m not perfectly sure

Steps to reproduce

  • Login to website via domain.com/wp-admin
  • View the stats icon in the side menu and toolbar

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

I expected the 48-hour graph to display regardless of which version of the backend you're working on.

What actually happened

We get a broken image next to the Statistics link when viewing the site via WP-admin.

Impact

One

Available workarounds?

There is no user impact

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Please ping me directly for the site URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Triaged[Feature] MasterbarWordPress.com Toolbar and Dashboard customizations[Feature] Stats DataFeature that enables users to track their site's traffic and gain insights on popular content.[Platform] Atomic[Plugin] JetpackIssues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/[Pri] Low[Type] BugWhen a feature is broken and / or not performing as intended

    Type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions