Hi @azzepis
I’ve seen you’ve mentioned using the stats_get_csv() function to show post views and that it stopped working; however, I noticed that your Jetpack connection is currently broken on your website.
Looking further, I’ve found that your XML-RPC endpoint isn’t reachable or accessible at all. To resolve this, I suggest reaching out to your hosting provider and having them ensure that your XML-RPC endpoint is accessible and responds to cURL requests, so Jetpack can properly communicate with your website.
Let us know how this goes.
Thread Starter
Dmytro
(@azzepis)
Thank you for your answer.
XML-RPC endpoint is opened only for jetpack IPs (https://jetpack.com/support/how-to-add-jetpack-ips-allowlist/)
Did you check from one of those ips or from any other?
-
This reply was modified 3 years, 10 months ago by
Dmytro.
Hi @azzepis –
When we test the connection, it originates from one of those IPs. We’re seeing the following:
HTTP/1.1 405 Not Allowed
Server: nginx
Date: Wed, 27 Jul 2022 14:32:48 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 150
Connection: close
<html>
<head><title>405 Not Allowed</title></head>
<body>
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx</center>
</body>
</html>
This indicates that something is blocking our requests. You likely will need to make adjustments to how you are allowing Jetpack’s IPs.
Once the connection is restored, it should fix the issue with the stats display.
Thread Starter
Dmytro
(@azzepis)
Thanks again! I will check twice
That sounds like a plan, Dmytro.
No need to reply until you’ve given that a chance, but once you do, please let us know the results and we can help from there. Thanks!
Thread Starter
Dmytro
(@azzepis)
My hosting removed limits for my sites but they said it’s not related with this issue, because you should get 403 error and not 405 if limits are active
I found some strange problems, maybe this helps:
1. I cant see account name connected to Jetpack (https://i.imgur.com/HOzrOm2.jpg)
2. I’m trying to access statistics on WordPress.com using my wordpress.com email/pass – but It says – there is no connected site, but I see statistics in wp dashboard
Hi @azzepis
The Jetpack connection is still broken, which are consequences and side effects of that.
403 and 403 are very similar in kind, since they represent responses when the server itself is forbidden or rejecting the request. I’ve seen that those errors have settled now, but you still haven’t connected your WordPress.com account to Jetpack. To do that, head over to this page.
You can then click on “Set up Jetpack” and then approve the connection to your WordPress.com account.
Let us know how this goes.
Thread Starter
Dmytro
(@azzepis)
The Jetpack connection is still broken
I understand that and I’m trying to find why
403 and 405 are very similar in kind, since they represent responses when the server itself is forbidden or rejecting the request.
Yes, but it’s important for me, because hosting denying connection to xmlrpc.php using 403 code, and if you are getting 405 – I have to search in some other places
I’ve seen that those errors have settled now, but you still haven’t connected your WordPress.com account to Jetpack. To do that, head over to this page.
You can then click on “Set up Jetpack” and then approve the connection to your WordPress.com
I can’t see that button “Set up Jetpack”, I will check from pc later. Thank you
Last question, how to find account username or email connected to my site now (I see statistics in wp dashboard , so some account connected, but I logged into two accounts on WordPress.com and I can’t see my site there) ?
Thread Starter
Dmytro
(@azzepis)
Ok, my issue is resolved now, but I still has no guess why it presented.
Maybe there was an update of Jetpack plugin and something changed in the way it works and I had to reconnect website.
All configuration on the webhost side was correct and all function on wp dashboard and view counts are working properly after I authorized again Jetpack with WordPress.com account (even with active webhost limits related with xmlrpc connections).
Also I see stats on wordpress.com site again after Jetpack re-authorization
Thank you anyway!