wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.7k stars 1.12k forks source link

Stats: stats shows an Install Jetpack prompt even if Jetpack is installed and connected if the JSON API is disabled on a Jetpack blog #12957

Closed designsimply closed 1 year ago

designsimply commented 5 years ago

Steps to reproduce:

  1. Setup a WordPress site and install and connect Jetpack.
  2. Go to /wp-admin/admin.php?page=jetpack_modules for your Jetpack site. (ref)
  3. Click the "Deactivate" link for JSON API.
  4. Go to WPiOS > $jetpack_site > Stats.

Result: if the JSON API has been disabled for a Jetpack site, an invitation to install Jetpack is shown even if Jetpack is installed and connected with a WordPress.com user. I expected to see a different screen explaining the JSON API module is required (if we can detect that) or at least something explaining that stats will not work without a proper connection between the Jetpack site and the WordPress.com servers where stats are processed and stored.

IMG_3021 1

Tested with WPiOS 13.5.0.2 beta (TestFlight) on iPhone 6S iOS 13.1.3 using site honest-spiders.jurassic.ninja running WP 5.2.5 and Jetpack 7.8 logged in to the app as wpcom user design5279.


This issue needs technical input then design. The first question is to find out whether it's feasible to detect the case where Jetpack is active and connected but the JSON API is off so we can display a customized message in that case (and whether this is worth doing).

stale[bot] commented 3 years ago

This issue has been marked as stale because:

Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority during regularly scheduled triage sessions.

tiagomar commented 1 year ago

This issue is no longer reproducibles on 22.5. It must have been fixed in the revamped Stats launched with Jetpack.