{"id":7098,"date":"2018-04-14T13:09:17","date_gmt":"2018-04-14T17:09:17","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=7098"},"modified":"2018-04-14T13:55:46","modified_gmt":"2018-04-14T17:55:46","slug":"reminder-and-update","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=7098","title":{"rendered":"Reminder and Update"},"content":{"rendered":"<p>Back on March 2, I posted that <code>org2blog<\/code> was suddenly not working. I<br \/>\nwas certain that it was something my host provider was doing but that<br \/>\nturned out to (probably) not be right.<\/p>\n<p>In order to push posts to WordPress, <code>org2blog<\/code> uses <a href=\"https:\/\/en.wikipedia.org\/wiki\/XML-RPC\">XML-RPC<\/a> to talk<br \/>\nto the WordPress server at the Irreal site. Any attempt to access the<br \/>\nserver through XML-RPC returned a 400 (Bad Request) error. I was<br \/>\npretty sure that the hosting provider was blocking XML-RPC for some<br \/>\nreason but they swore they weren\u2019t. I threw together a bit of Python<br \/>\nto make a test post using XML-RPC and that <i>did<\/i> work so my provider<br \/>\nwas provisionally off the hook. In the meantime, my provider got<br \/>\nacquired and the new owners <i>are<\/i> blocking XML-RPC so now I have to<br \/>\nargue with them about not doing that.<\/p>\n<p>I\u2019ve been able to continue posting by converting the Org mode source<br \/>\nfor a post to HTML and manually pasting it into the WordPress editor.<br \/>\nThat\u2019s a pain but it does get the job done except that the formatting<br \/>\nof the posts is wonky. In the last two or three days, I\u2019ve received<br \/>\nemail from a couple of readers complaining about line break tags in the<br \/>\nposts. It turns out that the line breaks are what makes the formatting<br \/>\nlook bad. It\u2019s annoying enough that they make the posts look funny in a<br \/>\nbrowser but, as you can imagine, it causes real headaches for those<br \/>\ntrying to read Irreal on a small screen such as a mobile device.<\/p>\n<p>I checked the HTML that gets generated when I convert from the Org<br \/>\nmode source and it looks OK. It\u2019s also OK when I display it locally<br \/>\n(without going through WordPress) so apparently WordPress is adding<br \/>\nthe breaks when it displays the post. I don\u2019t know why this happens<br \/>\nand I can\u2019t find any solution in the documentation. If you know a<br \/>\nworkaround for this <i>please<\/i> leave a comment.<\/p>\n<p>So the TL;DR in all of this is that yes, I know about the line breaks,<br \/>\nand no, I\u2019m not inserting them just to be perverse. In fact, I\u2019m not<br \/>\ninserting them at all: WordPress is. I <i>am<\/i> trying to resolve these<br \/>\nproblems and hope I can get things back to normal soon. In the<br \/>\nmeantime, thanks for your patience and I\u2019m sorry about the lousy<br \/>\nformatting.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Back on March 2, I posted that org2blog was suddenly not working. I was certain that it was something my host provider was doing but that turned out to (probably) not be right. In order to push posts to WordPress, &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=7098\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[18],"class_list":["post-7098","post","type-post","status-publish","format-standard","hentry","category-blogging","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7098"}],"version-history":[{"count":6,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7098\/revisions"}],"predecessor-version":[{"id":7104,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7098\/revisions\/7104"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}