• I am trying to upgrade from 1.5 to 2.0.2, but upgrade.php produces a blank page. I know this means there is an error in the PHP code, but this is on an active site, so I can’t do much to evaluate what’s going wrong. Can anyone give me any pointers?

Viewing 10 replies - 1 through 10 (of 10 total)
  • So uh.. well… I, err, figured I’d try the upgrade on your site to see the empty page.

    And it worked. No empty page.

    I guess I should apologize! But heck, I just wanted to see it break. (might not hurt to rename upgrade.php to something innocent…)

    Thread Starter edcottrell

    (@edcottrell)

    Actually, you didn’t do anything. That is the upgrade for (to) 1.5, not the 2.0.2 version. The 2.0.2 upgrade page is in a different directory (not the live site), since it’s not working.

    Thread Starter edcottrell

    (@edcottrell)

    I got it working, but it took a number of changes, which should probably be made with extreme caution:

    • Added this line at 2152 of wp-includes/functions.php:
      if(is_object($wp))
    • Added this line at 28 of wp-includes/capabilities.php:
      if(!isset($this->roles)) WP_Roles();
    • Added this line at 28 of wp-includes/cache.php:
      if(!is_object($wp_object_cache)) $wp_object_cache = new WP_Object_Cache;
    • Added this line at 178 of wp-includes/cache.php:
      if(!isset($wpdb)) include('wp-db.php');

    I’m sure the above is not the simplest way this could have been done, but it was what worked. Now to fix my template…

    Thread Starter edcottrell

    (@edcottrell)

    Also, I suppose this is normal behavior (?!?), but the upgrade process replaced the index.php file with the GPL (license). That’s very strange, and not a good idea.

    Well, no. That’s not normal at all!

    Where’d you get the install package from?

    Are you sure all the new files were copied correctly and that the old files that should’ve been deleted, were? It sounds like they might not have been.

    Thread Starter edcottrell

    (@edcottrell)

    I got the install package here. I am 100% certain all files copied correctly and that all old files were deleted. I uploaded the index.php that came in the zip file to replace the GPL index.php that was there after installation. (It was just plain text; it was as though license.txt had been copied directly over index.php.) I followed the directions here exactly.

    It does work, now, without any apparent problems, even using my highly-customized theme and numerous plugins. The blog itself is at https://www.edcottrell.com/edblog/, if you feel like taking a look. The install process I had to go through was definitely a major hassle, though. At various stages, I got anything from blank pages to a never-ending loop on upgrade.php, which told me, “Your database is out-of-date. Please upgrade.”

    Also, I have done numerous clean installs of every version of WordPress from 1.2 to 2.0.2, without problems. Every upgrade I have ever done has been a hassle, though; maybe not this bad, but not good, either. More time needs to be spent insuring the upgrade process runs as smoothly as the install process.

    See, the thing is… I’d updated a LOT of blogs too. And I gotta tell ya, I’ve NEVER had to update core files to get it done. Nor have I ever seen blank pages.

    Not saying you’re wrong. Not saying I’m right.

    just a reminder, once your site is upgraded/installed/running properly, I would suggest (in your particular upgrade case) –
    1) Make sure that the edits/changes you made don’t have a negative effect on the running WP 2.x.x install, and replace the files with the default 2.x.x files if needed.

    then in general – for everyone –
    Once the site is installed/running properly, do yourself a favor remove or rename all upgrade/install files from the site.

    Thread Starter edcottrell

    (@edcottrell)

    HandySolo: Thanks for the diplomatic response. I’m sure the core files work just fine on most setups; it must be something peculiar about the machines I’ve used. I have used three (one Linux configured by a third party, one Linux I configured, and one Windows I configured). None of them have ever upgraded without at least one tweak (adding an include of a functions file or something). I’d be happy to provide more detail to anyone who wants to work on it; the upgrade process is my only complaint about WP.

    Chradil: good advice for everyone; thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can’t upgrade (upgrade.php is blank)’ is closed to new replies.