Cannot update 2.9.2 to 3.2.1
-
Hello.
I decided to upgrade my WordPress 2.9.2 installation to 3.2.1 version.
I have updated many times before, and here is how I usually doing it:
0) Updating all plugins to the latest versions.
1) Making source code comparison of my current installation with new version of WordPress to see what was changed, and writing out on paper all changes that I should make to my plugins, theme and custom source code to make it compatable with new version. This takes about 5 hours of work.
2) Making list of files which need to be deleted from server.
3) Making backup of database (there is no need to buckup files, since I always have copy on local computer).
4) Uploading new files to server.
5) Check that everything works (posts, comments, downloads, etc.). Making required modifications to my theme, plugins, etc. That usually requires 3 hours of work.
6) Deleting old files according to the list I made at step 2.Usually that works, but today something strange happened. After I uploaded new files to server (step 4), I visited my site and it showed me this error:
Warning: mysql_get_server_info(): supplied argument is not a valid MySQL-Link resource in /pub/home/iproc/iproc/wp-includes/wp-db.php on line 1550 Warning: Cannot modify header information - headers already sent by (output started at /pub/home/iproc/iproc/wp-includes/wp-db.php:1550) in /pub/home/iproc/iproc/wp-admin/install.php on line 54 Cannot continue installation because WordPress 3.2.1 needs MySQL version 5.0. You have .
I went into wp-db.php, and changed this function:
function db_version() { return preg_replace( '/[^0-9.].*/', '', mysql_get_server_info( $this->dbh ) ); }
Into this one:
function db_version() { return '5.0.51'; }
(5.0.51 is my version of MySQL).
After that I got first-time-install page, which asked me about the name of my blog, password, etc. This was obviosly wrong, because it should upgrade blog, not install new one. Nevertheless, I have entered required information, and clicked “confirm”, and got this first-time-install page again, with empty fields, and so on.
I took my old files and uploded them on server, site started to work again. I have checked everything?— site functionality, database consistency. All was OK. I uploaded new files to the server?— againg the same problem.
Do you have any advices?
- The topic ‘Cannot update 2.9.2 to 3.2.1’ is closed to new replies.