{"id":286,"date":"2009-05-29T20:32:46","date_gmt":"2009-05-30T03:32:46","guid":{"rendered":"http:\/\/www.sparkledesign.net\/fidget\/?p=286"},"modified":"2009-05-29T20:34:42","modified_gmt":"2009-05-30T03:34:42","slug":"the-upgrade-saga","status":"publish","type":"post","link":"https:\/\/www.sparkledesign.net\/fidget\/2009\/05\/29\/the-upgrade-saga\/","title":{"rendered":"The Upgrade Saga"},"content":{"rendered":"<p>Fidget turned 3 last week. It&#8217;s been a great way to share my thoughts and photos with family out of the area and I still get a thrill when local friends tell my they&#8217;ve read my blog. Thanks for taking an interest, everybody! The following tale may not interest anyone except me, but I wanted to write down the process I went through during\u00c2\u00a0 the last few weeks of moving, backing up, and upgrading this blog.<\/p>\n<p>When I first set up the blog I made the mistake of naming the folder with an uppercase F. The Internet is case-sensitive so whenever I was telling someone my blog address I felt I had to mention that the F was required. This minor irritation increased a few notches when I recently entered some photos of hats that I&#8217;ve knitted in Annie Modesitt&#8217;s <a href=\"http:\/\/1000fabulousknithats.com\/\">1000 Fabulous Knit Hats<\/a> project. I was filling out the paperwork, and typing my web address on the form. I looked at that capital F and thought, what if my images get selected for the book? what if the person entering data forgets to hit shift-F? what if a broken link to my website is out in PRINT?<\/p>\n<p>So I decided to move the blog. Not far, just into a different folder.<\/p>\n<p>Right around the same time, just before I actually did the move, the blog broke and I couldn&#8217;t save or publish any new posts or pages or even edit existing posts or pages. I was pretty sure that this didn&#8217;t have anything to do with the directory move, partly because I noticed the issue before I did it but also because it wasn&#8217;t giving me any kind of error message, just jumping to the home page and pretending it had never seen what I had just typed. This was a lot bigger of an issue than a bunch of broken links that I feared I&#8217;d have to deal with between F and f. I tried tweaking the file permissions with no results. I realized I would have to upgrade to the newest version of WordPress, since it had been 3 years and they&#8217;ve made a lot of changes since then.<\/p>\n<p>What did your cyber-mother always tell you? BACK UP YOUR DATABASE. So I did that, using the handy plugin that I&#8217;d installed in WordPress. I&#8217;d done that many times before, in fact. But, could I actually restore from the backup? I&#8217;d never done that part before and I figured I should make sure my backup would be worth something before I forged ahead with the upgrade.<\/p>\n<p>That was when things started to get really horrifying.<\/p>\n<p>I found instructions in the WordPress documentation about using phpMyAdmin, the interface provided by most web hosts to manipulate one&#8217;s database. When I performed a backup this way, it was a disconcertingly small 15MB &#8211; disconcerting because the file I&#8217;d gotten via the plugin was 100MB! Even more troubling &#8211; when I tried to restore from the big-file backup, it wouldn&#8217;t take. File size too darn big.<\/p>\n<p>After a lot of frantic thrashing around, which included several trouble tickets with my host, a side trip into the php.ini file to increase the allowed upload filesize (didn&#8217;t help); and wondering if I would lose most of the comments on my 3 years worth of posts, the following became clear to me:<\/p>\n<p><em>Every single spam comment that ever showed up in my moderation queue has been stored on the database for the past 3 years.<\/em> Yikes! Talk about a wake-up call. I had no idea that when I clicked &#8220;moderate as: spam&#8221; it actually meant &#8220;keep this&#8221; rather than &#8220;toss it, NOW!&#8221; It would be like suddenly discovering that your basement was full of every single bottle and can you thought you had sent to the recycle bin during the last 3 years.<\/p>\n<p>Mixed in with those 100MB of spam comments (the rest of the content was a paltry &gt;1MB) were comments from my family and friends that I wanted to keep! But, thankfully, my web host was able to restore all 100MB for me so that I could start fresh and try to get rid of all that excess baggage.<\/p>\n<p>In a miracle of Internet information serendipity, I found <a href=\"http:\/\/educhalk.org\/blog\/?p=133&amp;cpage=1\" target=\"_blank\">a video<\/a> that was so helpful, so clear, and so relevent that it seemed it had been made for me. Once I (little ol&#8217; me!) went into phpMyAdmin and &#8211; get this &#8211; <em>used an SQL query to clean up my comments table<\/em>, my entire site was a bit over 1MB. Sigh. of. relief. (Know what else? Maybe the reason I couldn&#8217;t make any new posts was the database was feeling full. No more new stuff for you, lady, not till you clear out this packrat&#8217;s paradise of a comments table!!!)<\/p>\n<p>Then, I followed the Worpress upgrade instructions. That went off without a hitch. I love the new version &#8211; I can control how my sidebar is set up, and the whole control panel system is way better. I installed an anti-spam plugin, a stats plugin (how many people have viewed this post?) and of course the backup plugin. (Just because I now know how to do a few things in phpMyAdmin doesn&#8217;t mean I want to hang out there all the time!) I even came full circle on the file directory move &#8211; I did a find-and-replace on the \/F to \/f and also put a helpful re-direct page on the \/Fidget URL.<\/p>\n<p>Next stop: theme design. I think I&#8217;ll go for an evolutionary rather than revolutionary approach. Keep your eyes peeled for new framing images.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fidget turned 3 last week. It&#8217;s been a great way to share my thoughts and photos with family out of <span class=\"more-text\">&hellip;<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/posts\/286"}],"collection":[{"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/comments?post=286"}],"version-history":[{"count":2,"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/posts\/286\/revisions"}],"predecessor-version":[{"id":288,"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/posts\/286\/revisions\/288"}],"wp:attachment":[{"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/media?parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/categories?post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sparkledesign.net\/fidget\/wp-json\/wp\/v2\/tags?post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}