{"id":1766,"date":"2020-12-24T00:46:45","date_gmt":"2020-12-24T04:46:45","guid":{"rendered":"http:\/\/heroesinrehab.ca\/blog\/?p=1766"},"modified":"2020-12-24T00:46:45","modified_gmt":"2020-12-24T04:46:45","slug":"holy-crap-i-did-it","status":"publish","type":"post","link":"http:\/\/heroesinrehab.ca\/blog\/2020\/12\/24\/holy-crap-i-did-it\/","title":{"rendered":"Holy Crap, I Did It"},"content":{"rendered":"<p>You won&#8217;t have noticed that this blog has been laying dormant for a couple of years (define &#8220;couple&#8221;, bro).\u00a0 \u00a0You probably won&#8217;t even have noticed that for at least the last year or so, trying to navigate\u00a0<em>to<\/em> the blog produced an annoying nothingness&#8230;no error message, no text, no graphics, just&#8230;.nothing.\u00a0 \u00a0Argh.<\/p>\n<p>I have tried to figure out what was causing this in the past.\u00a0 A couple of times, unsuccessfully.\u00a0 Too much else going on, and me without enough focus to really try any sort of systematic, dedicated troubleshooting strategy.\u00a0 Hell, most of the time I spent even attempting to resolve this issue was wasted on trying to remember the damn URLs and passwords needed to access the server and files.\u00a0 \u00a0Sigh.<\/p>\n<p>But TODAY WAS DIFFERENT.\u00a0 I am on holiday for a few days before Christmas, and I resolved to try and get at this issue once again.\u00a0 I really wanted to get at some of the content<\/p>\n<div id=\"attachment_1655\" style=\"width: 161px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1655\" class=\"size-full wp-image-1655\" src=\"http:\/\/heroesinrehab.ca\/blog\/wp-content\/uploads\/2011\/09\/espn_platofoamfinger.jpg\" alt=\"WE'RE NUMBER ONE...EXCEPT FOR THE VIRUS AND THE BEING LOCKED DOWN AND QUARANTINED AND WHATNOT\" width=\"151\" height=\"129\" \/><p id=\"caption-attachment-1655\" class=\"wp-caption-text\">Noted philosopher Plato, in a guarded but celebratory moment.<\/p><\/div>\n<p>I knew I had posted previously &#8211; a post about <a href=\"http:\/\/heroesinrehab.ca\/blog\/2008\/12\/18\/introducing-wavy-gravy-and-sebastiens-theme\/\">the time we spent far too many fetid days recording music for a film in a condemned house owned by a guy we called Wavy Gravy<\/a>.<\/p>\n<p>Necessity is the mother of invention.\u00a0 It took me fucking forever, which perhaps isn&#8217;t so surprising given that I really have no idea what I&#8217;m doing poking around in whatever language Apache servers use to organize their affairs.\u00a0 \u00a0Basically, I was attempting to edit a literary essay in Portuguese, without speaking any Portuguese.\u00a0 But persistence paid off:\u00a0 after a couple of hours unreasonably focusing (some would say obsessing) on the condition of the various .htaccess files and their arcane musings, it just so happened that I landed in a directory that contained the access logs for the blog.\u00a0 I&#8217;ve absolutely no idea how I got there, I definitely wasn&#8217;t <em>looking<\/em> for them.<\/p>\n<p>Anyway, I clicked about in the access logs a bit and discovered that one &#8220;fatal error&#8221; (I&#8217;m no coding professional, but that doesn&#8217;t sound good) that seemed to be recurring today as I was trying to access the blog was something about an &#8220;undefined function&#8221; known as &#8220;eregi&#8221; being called in a particular module of code.\u00a0 A couple of minutes of googling revealed that &#8220;eregi&#8221;\u00a0<em>used<\/em> to be, but\u00a0<em>is no longer<\/em>, a defined function in the .php language (which, if memory serves, is a language used principally for manipulating data in databases of the sort around which WordPress is very much built).\u00a0 A couple more minutes of googling suggested that the fix might be ridiculously easy: replace the deprecated (read &#8220;bad, stinky, no good&#8221;) command &#8220;eregi&#8221; with &#8220;preg_match&#8221; and\u00a0<em>leave all the other syntax in the code alone<\/em>.\u00a0 A few minutes later, I had downloaded the offending .php module, opened it up in notepad, found and replaced every single instance of eregi with the new and improved hero code &#8220;preg_match&#8221;, banishing the evil &#8220;eregi&#8221; to the mists of time.\u00a0 Then I deleted the old module on the server, uploaded the newly edited module with the updated code to the place where the old module used to live.<\/p>\n<p>Then I hit the refresh button the tab in my browser that had been attempting to access this damned blog for the last several hours.<\/p>\n<p>Et voil\u00e0, I was shortly thereafter:<\/p>\n<ol>\n<li>able to access the content from 2018 that I had been thinking about;<\/li>\n<li>able to write this post (after searching for another few minutes for my damned login and password, it really has been a while); and<\/li>\n<li>perhaps undeservedly claiming victory over this godforsaken year of 2020.\u00a0 \u00a0I win.<\/li>\n<\/ol>\n<p>See you soon?\u00a0 Next step is to update the version of WordPress we&#8217;re running on here.\u00a0 It&#8217;s a bit of a relic.\u00a0 But we must save some victories for other days, no?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You won&#8217;t have noticed that this blog has been laying dormant for a couple of years (define &#8220;couple&#8221;, bro). You probably won&#8217;t even have noticed that for at least the last year or so, trying to navigate to the blog produced an annoying nothingness&#8230;no error message, no text, no graphics, just&#8230;.nothing. Argh.<\/p>\n<p>I have tried [&#8230;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"_links":{"self":[{"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/posts\/1766"}],"collection":[{"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/comments?post=1766"}],"version-history":[{"count":1,"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/posts\/1766\/revisions"}],"predecessor-version":[{"id":1767,"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/posts\/1766\/revisions\/1767"}],"wp:attachment":[{"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/media?parent=1766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/categories?post=1766"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/heroesinrehab.ca\/blog\/wp-json\/wp\/v2\/tags?post=1766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}