XMLRPC [Symptom: WordPress on iOS not working on Self-Hosted Site]

I ran into an issue with my new hosting of WordPress with my WP iOS app not detecting my self-hosted site as a WordPress site.

We’re sure this is a great site — but it’s not a WordPress site, so you can’t connect it to with this app.

First note the grammar issue: “connect it to” should be “connect to it”.  Haha, I emailed them.

On to the issue:

Troubleshooting led me to test RPC:

https://www.grid18.com/xmlrpc.php

This is the correct behavior (a browser typically sends a GET request rather than POST).

Let’s test POST:

https://www.grid18.com/xmlrpc.php?rsd

Correct behavior as well. Why the error?

Enabled debugging in wp-config.php:

WP_DEBUG was already there, just had to change false to true.  This creates a debug.log in the wp-content folder of the site’s root.

cat wp-content/debug.log

Aha!

I took the minimum-attack-surface approach to installing the software on my host. I didn’t get the PHP-XML package when I installed originally.

sudo apt install php-xml

Success!

Reset (comment out WP_DEBUG_LOG) and set WP_DEBUG back to true.

 

References:

https://snapcreek.com/blog/wordpress-error-log-friend/

This entry was posted in Technical and tagged , , , , . Bookmark the permalink.

One Response to XMLRPC [Symptom: WordPress on iOS not working on Self-Hosted Site]

  1. Enjoyed reading through this, very good stuff, thankyou .

Leave a Reply