Jetpack showing invalid URL, live site linked to staging URLs
-
Hi Team,
When trying to connect our multisite setup, the main site (cosmos.coop) is connected properly. However, the other two sites (metascycosis.com and untimelybooks.com) are not connecting correctly. In the Jetpack dashboard, they show as “connected,” but still display the option to “Connect your site.” Clicking this option results in an error message:
Error: Invalid request, please go back and try again.Error Code: invalid_requestError Message: The URL stored by the Jetpack servers does not match your site. Please try disabling the Jetpack plugin, re-enable it, then connect again.On WordPress.com, these sites appear, but their URLs are set to the staging URLs. I have verified in the WordPress admin dashboard that the URLs are correctly set to the live sites. It seems that Jetpack has already synced the staging URLs, and the incorrect mapping is not being removed.
Attempts to remove the sites from WordPress.com fail. When I click “Leave Site,” it asks for transfer of ownership, but nothing happens when I proceed.
Could you please guide me on how to resolve this and establish a proper connection for the live sites?
Thank you!
-
Hi @manoj239 ,
Thanks for the detailed report, that helps a lot.
I’ve updated the record for untimelybooks.com to reflect the correct live URL.
For the other site (metascycosis.com), I wasn’t able to load it in the browser and it doesn’t appear to have a Jetpack connection profile at all. Could you please double-check that?
Looking forward to your update.
Best,
Hi Tamirat,
Thank you for the quick response. The issue with untimelybooks.com is now sorted, and it’s working correctly.
For metascycosis.com, the Jetpack plugin was deactivated on the site. I’ve reactivated it—could you please check again on your end?
I’m also facing one more issue. When connecting with the Woo mobile app:
- untimelybooks.com works fine, and I can view the store details.
- On cosmos.coop, however, I receive the following message on the Home (My Store) tab:
“test test (customer). This app supports only administrator and shop manager user roles. Please contact your store owner to upgrade your role.”
The strange part is that I am logged in with my WordPress.com account, which is registered as a super admin. Other tabs in the app are working, but this error appears only on the Home (My Store) tab.
Could you please advise on this?
Thanks!Hello @manoj239,
We’re glad to hear we have solved one problem! Now onto the next ones 🙂
For metascycosis.com, the Jetpack plugin was deactivated on the site. I’ve reactivated it—could you please check again on your end?
I cannot access the site on my end – it shows an offline
This site can’t be reachedpage on all the browsers I checked. Is it possible that you have geolocal block if you can see it online? You may want to address this with your host and check its proxy, firewall and DNS configurations.We need the site to publicly accessible online to run our tests 🙂
****
- On cosmos.coop, however, I receive the following message on the Home (My Store) tab:
“test test (customer). This app supports only administrator and shop manager user roles. Please contact your store owner to upgrade your role.”
The strange part is that I am logged in with my WordPress.com account, which is registered as a super admin. Other tabs in the app are working, but this error appears only on the Home (My Store) tab.
We aren’t Woo mobile experts, so we may need to point you to the correct team to address this; however, according to the documentation I checked, the Woo mobile app doesn’t use the Super Admin role when checking permissions – it only recognises users with the Administrator or Shop Manager role within the specific Woo site. That’s why you’re seeing this error on the “Home (My Store)” tab, even though other tabs may still work.
To resolve this, you can try the following:
- Log into your site’s dashboard from a computer desktop.
- Go to Users > All Users, and check the role assigned to your WordPress.com account.
- If it isn’t already set as Administrator (or Shop Manager) for that site, you’ll need to update it.
Once your account has the correct role, the app should allow you full access to the Home tab as expected. If your account is already an Administrator on that site and the error still persists, let us know and we can investigate further.
For the record, the site is still not well connected to Jetpack, so this might affect the way it behaves in the Woo app. There is a block in the connection, so please check with your host against the following:
- ensure our IP range is fully in the allow list for your servers: https://jetpack.com/support/how-to-add-jetpack-ips-allowlist/
- check for any security/caching plugins you may have enabled, and try temporarily disabling them to see if it fixes the problem.
- search for any firewall on your server-side that might be blocking the communication with the xmlrpc.php file – your host should be able to help you with that.
Let me know what you find out, and speak soon! (and apologies for the long reply!)
Hello,
Apologies for the typo in my earlier message, the correct site is metapsychosis.com.
Thanks!Hi there, @manoj239,
No problem at all 🙂 I can now see that your site still has a staging site URL recorded at our end, so I updated it. Still, the Jetpack connection looks broken due to a persisting block at your server’s end.
Please do the following for us to unblock the connection:
- ensure our IP range is fully in the allow list for your servers: https://jetpack.com/support/how-to-add-jetpack-ips-allowlist/
- check for any security/caching plugins you may have enabled, and try temporarily disabling them to see if it fixes the problem.
- search for any firewall on your server-side that might be blocking the communication with Jetpack – your host should be able to help you with that.
- Also, I see you’re using Cloudflare currently. Can you please make sure that you’ve followed the following guides, which outline the proper setup for Jetpack and Cloudflare?
Let us know how that goes, and we’ll be here to help out if you’re still having issues.
As for the Woo mobile app issue, let us know if what we suggested has worked 🙂
Thank you for the support, issue is resolved after whitelisting the IP’s.
Great news, thanks for following up, @manoj239. 🙂
Hi Team,
I just noticed that all my sites are now showing as connected to the staging environments instead of the live sites. Could you please check why this happened? And please correct the urls.
I suspect it might be due to cloning the live site to staging. If that’s the case, could you advise how I can avoid this issue in the future?
Here is a screenshot for reference: https://tinyurl.com/27kk46cz
The live site links are:
https://cosmos.coop/
https://metapsychosis.com/
https://untimelybooks.com/
Thanks!-
This reply was modified 4 months, 2 weeks ago by
Manoj Jamble.
Hi @manoj239 –
I’ve updated the URLs in our backend. Please disconnect and reconnect Jetpack on your sites to fix the issue.
In the future, you can avoid this issue by following the guide here:
https://jetpack.com/support/staging-sites/
Let us know if you continue to have issues.
Thank You!
You are welcome.
If you have any issues in the future, feel free to open a new thread.
Hi,
I had added the
WP_ENVIRONMENT_TYPEconstant in the wp-config file for the staging environment as per the documentation. However, it seems to have been removed, and after cloning the live site to staging, the sites got connected to the staging URLs again.I’ve now disconnected the staging sites, reconnected the live ones, and re-added the staging environment constant in the wp-config file. The correct URLs are now showing in WordPress.com, but the sites are not appearing as connected.
[screenshot: https://www.awesomescreenshot.com/image/57120015?key=fd6de2d87aa6e70def5d467e8ef6ad3a]Could you please check if the setup looks correct? Also, when I click on Jetpack Cloud from WordPress.com, it opens the screen shown below, but nothing happens when clicking on any site there:
[screenshot: https://www.awesomescreenshot.com/image/57120034?key=f0a5d9f31b2984aced82001bd075fae4]
Thank You!Hello @manoj239! I’m seeing the correct site URLs on our end. However, I’m seeing
Forbiddenon the xmlrpc.php file for all three of your sites:- https://metapsychosis.com/xmlrpc.php?for=jetpack
- https://cosmos.coop/xmlrpc.php?for=jetpack
- https://untimelybooks.com/xmlrpc.php?for=jetpack
It looks like we’d previously discussed setting up Cloudflare to ensure Jetpack could connect, and I believe you’ve allowlisted Jetpack’s IP addresses. Are you using any other security? If so, please revisit the settings for that, and then try to reconnect:
https://jetpack.com/support/reconnecting-reinstalling-jetpack
Let us know how it goes!
Hi,
Thanks for checking. We have allowlisted Jetpack’s IP addresses through cloudways, as Imunify360’s ModSecurity rule set was blocking it. We have now reconnected Jetpack on our side.
Could you please test the XMLRPC connection again and confirm if everything is functioning correctly for all three sites?
Appreciate your support, and we are standing by for your confirmation.
Hello there, Sebastian here, I hope you are doing well.
I reviewed your sites, but we are still getting a 403 forbidden error on the sites. You can check by yourself by visiting the XML-RPC.php page on every site:
- https://metapsychosis.com/xmlrpc.php?for=jetpack
- https://cosmos.coop/xmlrpc.php?for=jetpack
- https://untimelybooks.com/xmlrpc.php?for=jetpack
Please check again if Cloudflare is blocking the connection, or if there is any security plugin or firewall implementation blocking the connection.
Please let us know how it goes.
Cheers,
You must be logged in to reply to this topic.