{"id":867,"date":"2011-11-07T01:05:03","date_gmt":"2011-11-07T06:05:03","guid":{"rendered":"http:\/\/yourLinuxGuy.com\/?p=867"},"modified":"2011-11-01T22:01:53","modified_gmt":"2011-11-02T03:01:53","slug":"wordpress-jetpack-on-an-older-linux-server","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=867","title":{"rendered":"WordPress Jetpack On An Older Linux Server"},"content":{"rendered":"<p>Unless you are a regular reader to this blog and were here anyway, I&#8217;m guessing you stumbled on it from a search because youre having a problem with the Jetpack plugin for WordPress.\u00a0 Well, well, well.\u00a0 Recently, I also forced myself to install the Jetpack plugin;\u00a0 and as the old saying goes, &#8220;&#8230;if it were easy to do, it wouldn&#8217;t be worth doing.&#8221;<\/p>\n<p>Anyway, after installing and enabling Jetpack, I got the error that is apparently quite well-known among the WordPress user community:<\/p>\n<p><code>Jetpack could not contact WordPress.com: register_http_request_failed. This usually means something is incorrectly configured on your web host<\/code>.<\/p>\n<p>And like you, I did the requisite amount of Googling; I found a few things, tried a few things, and none of them fixed my problem.\u00a0 However, once I stumbled on <a title=\"https:\/\/wordpress.org\/support\/topic\/plugin-jetpack-by-wordpresscom-your-jetpack-has-a-glitch-this-usually-means-your-site-is-not-publicly-accessib\" href=\"https:\/\/wordpress.org\/support\/topic\/plugin-jetpack-by-wordpresscom-your-jetpack-has-a-glitch-this-usually-means-your-site-is-not-publicly-accessib\" target=\"_blank\">this WordPress Support Forum thread<\/a>, I realized I might be on to something when I read the post from member &#8220;houldsworth1&#8221; describing the disabling of SSL if &#8220;&#8230;your web server is incapable of sending outgoing requests over HTTPS (as opposed to HTTP).&#8221;<\/p>\n<p>After thinking about it for a moment, I thought, &#8220;Hey, I bet my server is just old enough that this would be a problem for me, too.&#8221;\u00a0 So I attempted the suggested fix and found that the changes recommended by houldsworth1 need a little massaging in order to work with the latest version.\u00a0 It turns out that instead of just editing line 1290 in the older version, you now have to edit a couple lines (because the developers have put in some extra courtesy checks to help you).<\/p>\n<p>To start out with, like houldsworth1 recommends, the file to edit is:<\/p>\n<p>&lt;WP-ROOT&gt;\\wp-content\\plugins\\jetpack\\jetpack.php<\/p>\n<p>&#8230;but instead of the exact recommended change, on line 1422 change add the &#8220;false &amp;&amp;&#8221; to make it look like this:<\/p>\n<p><code>if ( false &amp;&amp; $jetpack-&gt;use_ssl[$method] ) {<\/code><\/p>\n<p>&#8230;and on line 1427, do the same to make it look like this:<\/p>\n<p><code>if ( false &amp;&amp; wp_http_supports( 'ssl' ) ) {<\/code><\/p>\n<p>And presto!\u00a0 Communication, and the setup completed.\u00a0 It worked for me!<\/p>\n<p>Now here&#8217;s a caveat or two:\u00a0 you aren&#8217;t *supposed* to have to do this.\u00a0 If you need to do this, it probably means your webserver is too old (or has something else wrong) and should be replaced.\u00a0 Because after you implement this, the Jetpack plugin is calling home over an unsecured channel (non-ssl).<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unless you are a regular reader to this blog and were here anyway, I&#8217;m guessing you stumbled on it from a search because youre having a problem with the Jetpack plugin for WordPress.\u00a0 Well, well, well.\u00a0 Recently, I also forced&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=867\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[47,108],"tags":[],"class_list":["post-867","post","type-post","status-publish","format-standard","hentry","category-linuxgeneral","category-wordpress"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-dZ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=867"}],"version-history":[{"count":2,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/867\/revisions"}],"predecessor-version":[{"id":870,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/867\/revisions\/870"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}