Support » Fixing WordPress » Fatal errors after restoring back-up

  • Hi there,

    I use WP via Netfirms and was trying to upgrade from 1.5 to 2.0.x. Unfortunately, I failed to do that but was able to restore my back-up.

    Couple of problems now:

    The categories don’t appear anymore. Instead, the code is visible on my site (e.g., WordPress database error: [Unknown column ‘category_count’ in ‘field list’]
    SELECT cat_ID, cat_name, category_nicename, category_description, category_parent, category_count FROM wp_categories WHERE cat_ID > 0 ORDER BY cat_name asc)

    Also, I cannot get into my admin pages any longer. I get this error message:

    Warning: main(/mnt/w0510/d21/s41/U0000c5K/www/ failed to open stream: No such file or directory in /mnt/w0510/d21/s41/U0000c5K/www/ on line 108

    Fatal error: main(): Failed opening required ‘/mnt/w0510/d21/s41/U0000c5K/www/’ (include_path=’.:/usr/local/nf/lib/php’) in /mnt/w0510/d21/s41/U0000c5K/www/ on line 108

    Help me! I just sent out some work-related lit that points to my site. You can see it here:


Viewing 10 replies - 1 through 10 (of 10 total)
  • Did you backup the database before trying the upgrade? Seems like you have 1.5 WP files running against a 2.x database (at a guess).

    I did backup before the upgrade.

    It is likely that 1.5 files are running against 2.0, but I don’t know what files to get rid of (if that is what I need to do). I restored the 1.5 backup and want to go back to 1.5 because I can’t get 2.0 to work.

    A backup is comprised of two pieces:
    1) Your php files
    2) The Database data.

    Did BOTH of those get backed up and subsequently restored?
    Or was it just the files?

    I followed the WP instructions for backup. The way I did my backup was to go via the plugin for 1-click backup. I was under the impression that backed up eveything – database data and php files. But it is possible that is where the error lies. I don’t think I know how to restore the php files. If you know, please advise. Thanks!

    I should also add that I followed the WP instructions for restoring my site, and it only required uploading the datafiles through the phpAdmin. I thought that would reload the php files, too.


    I do have a backup of both. Any way to downgrade?

    sounds like you already restored the database (that’s the phpMyAdmin bit you mentioned) so now you’ll just want to restore the files.

    Can you suggest how to restore the files? I think I basically overwrote all of my previous files with 2.0, so should I just download 1.5 and re-upload its folders to overwrite the 2.0 files? What are the main files that would change? It seems that the problems lie with wp-config.php, wp-settings.php, wp-login.php and cache.php. But when I try to overwrite only those files new problems seem to pop up.

    Thanks for all your help. Hopefully this thread will help others down the line, too!

    If you backed up the files before you tried the upgrade, those are the files you want to copy back up to your site (aka restore).

    wp-config.php is THE file you do NOT want to lose track of. Make sure you don’t overwrite it with a default/dummy one.

    Thanks. The other problem I have is that those four main files I listed above (and some others) are listed in two places – under the main directory, then drilled down to the cp directory. So, I don’t know which to change/restore Uggggh! I think I’m too far gone for this to work…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal errors after restoring back-up’ is closed to new replies.