{"id":158,"date":"2007-01-24T01:18:55","date_gmt":"2007-01-24T00:18:55","guid":{"rendered":"http:\/\/www.kill-9.it\/blog\/index.php\/2007\/01\/24\/wordpress-207-to-21-upgrade-screwed-up-almost\/"},"modified":"2007-01-24T01:22:32","modified_gmt":"2007-01-24T00:22:32","slug":"wordpress-207-to-21-upgrade-screwed-up-almost","status":"publish","type":"post","link":"https:\/\/www.kill-9.it\/blog\/index.php\/2007\/01\/24\/wordpress-207-to-21-upgrade-screwed-up-almost\/","title":{"rendered":"WordPress 2.0.7 to 2.1 Upgrade &#8211; screwed up (almost)"},"content":{"rendered":"<p>Ok, so I&#8217;m writing this down in English, just to avoid everybody the trip to Google Translate. (English translated to Italian sounds funny, but Italian to English is really weird &#8211; at least to me)<\/p>\n<p>While upgrading from 2.0.7 to 2.1, the upgrade procedure failed horribly on me with quite a lot of SQL errors. Let me make it clear right now: it is not WordPress guys fault, it&#8217;s mine.<br \/>\nThe user accessing the database did not have all the permissions needed to upgrade the structure and the content of the tables &#8212; so I was left with a half-dead blog.<br \/>\nThe live half consisted of the public pages, good.<br \/>\nThe dead half was the administrative interface, bad. While the error messages were different (I could distinguish between a successful authentication and a bad password), all I got was the dreaded<\/p>\n<blockquote><p>\n&#8220;You do not have sufficient permissions to access this page.&#8221;\n<\/p><\/blockquote>\n<p>To make a long debug story short: being too lazy to dig inside the WP internals and understand which parts of code were running the authentication, I just choose to guess the tables which may have been screwed up by the limited upgrade. They could not be posts, categories, links, or the like, right?<\/p>\n<p>Did I mention I didn&#8217;t make a backup before? (living on the edge :P) All I had was a backup a couple of days old, and I didn&#8217;t want to loose the last couple of comments and posts.<\/p>\n<p>Anyway, I decided to bet on<\/p>\n<ul>\n<li>options\n<\/li>\n<li>users\n<\/li>\n<li>usermeta\n<\/li>\n<\/ul>\n<p>Got them out of the two-days-old SQL dump, and restored them on the half-new database &#8212; then run again the upgrade procedure after fixing user privileges on the db.<br \/>\nThat&#8217;s all, now I have a shiny new admin section working.<\/p>\n<p>MAKE BACKUPS! :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ok, so I&#8217;m writing this down in English, just to avoid everybody the trip to Google Translate. (English translated to Italian sounds funny, but Italian to English is really weird &#8211; at least to me) While upgrading from 2.0.7 to 2.1, the upgrade procedure failed horribly on me with quite a lot of SQL errors. &hellip; <a href=\"https:\/\/www.kill-9.it\/blog\/index.php\/2007\/01\/24\/wordpress-207-to-21-upgrade-screwed-up-almost\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WordPress 2.0.7 to 2.1 Upgrade &#8211; screwed up (almost)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3],"tags":[],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-english","category-geek"],"_links":{"self":[{"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":0,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}