It looks like the last time the views for that post could successfully be updated was on September 27 at 06:58:41.
Since then, the views have not been updated. This could be caused by different things:
- You may have a caching plugin in place that serves a cached version of the page instead of a live one, thus stopping my plugin from making a request for updated data.
- Your site’s connection to WordPress.com may be broken, and thus the attempts to refresh the data would return an error.
- You may have a security plugin or security measure on your site that blocks all those requests and thus stops the data from being refreshed.
- You may have a database optimization plugin of some sort that stops the field containing the data from being refreshed.
Could you run through those options and see if any of them apply to your site?
Hi, thanks for your replay. I have no database optimization plugin and no caching plugin. I have deactivated the security plugin I’m using and I cleared the cache on siteground hosting.
The problem is still there.
I think the connection with wordpress.com is working because I can see all jetpack’s functionality and stats.
Maybe compatibility issues with some other plugin? I haven’t added plugin recently, but maybe some updates…
This is odd. My plugin relies on Jetpack to make the calls to WordPress.com to fetch the views, so the 2 use the same API and the same connection.
You could try to use this tool while logged in with your WordPress.com account:
https://developer.wordpress.com/docs/api/console/
There, you can search for the sites/$site/stats/post/$post_id endpoint, and add your site ID and the post ID in place of the placeholder, like so:
https://share.getcloudapp.com/nOunW5ZK
Once you click on the Enter sign at the right of the bar, you’ll see if your site is able to receive stats information from WordPress.com.
Let me know how that goes.