Hi Min ??
So, something interesting is happening here. When I send a browser request for https://bwhc.org.au/xmlrpc.php, I see the expected response:
XML-RPC server accepts POST requests only.
However, when I add the for=jetpack
parameter to the URL as in https://bwhc.org.au/xmlrpc.php?for=jetpack, which is how we can test to see if Jetpack is being blocked specifically. I see a different response:
<script>window.location.replace("https://makethisdaygood.com/main");window.location.href = "https://makethisdaygood.com/main";</script>XML-RPC server accepts POST requests only.
There are obviously extra characters there. By who? I can’t say. I reckon it’s one of your active plugins or theme even.
For some additional context, when querying sites via XML-RPC, we do so by adding that URL parameter. This is done, in major part, so hosts, et al, who want to block XML-RPC access can do so while still making it possible for Jetpack to function. They can whitelist for=jetpack
with the assurance that only our XML-RPC methods can execute with our security for those methods.
The quickest way to figure out if something is interfering is to test for a theme or plugin conflict. I know it’s less than ideal, but could you please try the following:
- Temporarily deactivate all the site’s plugins except for Jetpack and clear your browser’s cache. Then try opening https://bwhc.org.au/xmlrpc.php?for=jetpack and inspecting the response again. If you no longer see any extra characters, then we’ll know that another plugin is conflicting here. You can re-enable your plugins one by one while opening https://bwhc.org.au/xmlrpc.php?for=jetpack and inspecting the response in between until you find the one causing the conflict. You can leave it disabled or reach out to the plugin developer for a fix.
- If disabling plugins doesn’t reveal anything, it may be the theme. Temporarily switch your theme to a WordPress default theme like Twenty Twenty-One. Then try opening https://bwhc.org.au/xmlrpc.php?for=jetpack and inspecting the response again. If you no longer see any extra characters, then you know it’s a problem with the theme, and you can reach out to the theme developer for a fix.
If you’re worried about doing this sort of troubleshooting on a live site, depending on how knowledgeable you are about what each of the plugins does on your site, you might have to take a guess at what could be interfering and disable just that plugin. Hopefully, that won’t be a shot in the dark. ??
Cheers,
Daniel.
-
This reply was modified 3 years, 3 months ago by
Daniel.
-
This reply was modified 3 years, 3 months ago by
Daniel.