{"id":4613,"date":"2024-11-25T07:52:45","date_gmt":"2024-11-25T13:52:45","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=4613"},"modified":"2024-11-18T13:52:49","modified_gmt":"2024-11-18T19:52:49","slug":"fixing-the-wordpress-app-connection-to-my-site","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=4613","title":{"rendered":"Fixing the WordPress App Connection to my site"},"content":{"rendered":"\n<p>It started out with the WordPress app stopping working for me on my phone. This happened a few months back as well and it stayed broken for a few months before it started working again. This time around I was rather very annoyed and wanted to figure out what was going wrong and fix it. In the end it came down to XML-RPC and an &#8220;optional&#8221; package in the WordPress health check.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Luckily I decided to delete all data from the app and log back into my instance in a fresh state. No error messages showed up in the app that I could take action with until that login screen started that it couldn&#8217;t access XML-RPC (why it couldn&#8217;t tell me this on any other page of the app is unknown). <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"601\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/11\/image_editor_output_image-768306381-1731946318342220351227348941943.png\" alt=\"\" class=\"wp-image-4616\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/11\/image_editor_output_image-768306381-1731946318342220351227348941943.png 461w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/11\/image_editor_output_image-768306381-1731946318342220351227348941943-230x300.png 230w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><figcaption class=\"wp-element-caption\">XML-RPC Login Error<\/figcaption><\/figure>\n\n\n\n<p>Looking up some guides online I found that I should be able to access it from Firefox and get the error message below (which indicated it was working properly).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"428\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/11\/image_editor_output_image-916082883-17319468218687287693020048503977.png\" alt=\"\" class=\"wp-image-4620\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/11\/image_editor_output_image-916082883-17319468218687287693020048503977.png 461w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/11\/image_editor_output_image-916082883-17319468218687287693020048503977-300x279.png 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><figcaption class=\"wp-element-caption\">XML-RPC Supposedly Working<\/figcaption><\/figure>\n\n\n\n<p>Now this is confusing, if it&#8217;s working properly, why is the app not working. I decided to check the health check screen for my blog and noticed a library that is has always complained about that&#8217;s missing. Now that library is marked as &#8220;optional&#8221; but hey, it doesn&#8217;t hurt to install it. So I went about <a href=\"https:\/\/stackoverflow.com\/questions\/44045478\/how-do-i-enable-the-dom-extension-in-the-php-ini\" target=\"_blank\" rel=\"noreferrer noopener\">installing php-xml<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt-get install php-xml<br \/>service apache2 restart<\/pre>\n\n\n\n<p>After it was installed, went back to the app, and BAM! It let me log in again, my posts were up to date for the first time in a month. My pages loaded! Everything was finally working again, all due to an optional php module.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It started out with the WordPress app stopping working for me on my phone. This happened a few months back as well and it stayed broken for a few months before it started working again. This time around I was rather very annoyed and wanted to figure out what was going wrong and fix it. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lab.rapternet.us\/?p=4613\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fixing the WordPress App Connection to my site&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":4616,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[14,22,62,41,86],"class_list":["post-4613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","tag-quick-bites","tag-services","tag-ubuntu","tag-webservers","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/4613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4613"}],"version-history":[{"count":9,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/4613\/revisions"}],"predecessor-version":[{"id":4626,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/4613\/revisions\/4626"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/media\/4616"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}