Forums

Desperate!!! Can't get site to work after reinstalling DB backup (7 posts)

  1. c3lt1957
    Member
    Posted 3 years ago #

    Ok my site went down 2 days ago, so I decided it was a perfect opertunity to switch hosts. The new host instructed me to backup my database & my home directory, which I did. Unfortunately I later discover that the home directory backup is corrupt and useless ! and like an idiot I had already deleted it from the old host. Anyway I think to myself (wrongly perhaps) no probs, I'll just do a new install of WP and then try to reinstall the DB backup ! Now I have tried using the backup wizard in cpanel & it will not do it, just flashes up loads of red errors at the end of the transfer. So I tried importing from within PH myadmin, this worked ! or at least the posts were there which is the most important as far as I am concerned. However when I then try to go to my website / blog it says page cannot be found...?
    I then try going to config.php, delete the DB & password & put in the original DB & password from the original DB. But then instead of getting page not found, I'm getting the error below.

    Warning: Cannot modify header information - headers already sent by (output started at /home/my-domain/public_html/blog/wp-config.php:153) in /home/my-domain/public_html/blog/wp-includes/pluggable.php on line 850

    and on line 850 is;

    header("Location: $location");

    Now being a complete newcomer to WP & PHP I have not got a clue what is going on here ! The data I want is still on the old host, and getting a backup of it is not a problem, but how on earth do I then get it installed and used in a new install of WP. Obviously, due to the corrupt home directory, my site can easily be rebuilt, but there is now way on earth I could ever remember all the posts and replace them.

    Can someone please help me out here and tell me what the hell I am doing wrong...? I mean what is the point in having a backup facility if then you cannot reinstall and get it working again...???
    This is driving me crazy & my site has already been down for 2 days !!!

    Help Please Guys, Girls, Anybody !!!

    Taffy

  2. Mark
    Member
    Posted 3 years ago #

    Something in your site is sending output to the browser BEFORE WordPress has a chance to send formal HTTP headers. That could be caused by a plugin or faulty theme code. First switch to the default WP theme and see if the problem disappears - if so then it's your theme obviously. If it doesn't then deactivate all your plugins and try again. If it's gone then start activating plugins one at a time, checking your site after activating each one until you find the one that causes the problem.

  3. c3lt1957
    Member
    Posted 3 years ago #

    Hi, thanks for the quick response !
    However I don't think I explained myself properly, my site on the old host is gone & I cannot get it back because the backup I did turned out to be corrupted ! So am thinking that if I can at least get access to the database, I could at least retrieve the posts that were on the site.
    I have tried dozens of times to do a new install of WP (so no plugins or theme) & then to switch to the old database as that is still there and intact on the old host ! But no matter what I try I cannot get a fresh install of WP to work with the old database. I have tried "Restoring" the DB & have even tried importing over the top of the 2nd DB, but whatever I try I still get the same errors mentioned previously.

    I need some method of installing wordpress to read my old database and thereby allowing me to copy the posts to my comp ready to rebuild the site !

    Regards Taffy

  4. iridiax
    Member
    Posted 3 years ago #

  5. c3lt1957
    Member
    Posted 3 years ago #

    Hi iridiax,

    Tried that mate and after removing two blank lines, it just went to page cannot be displayed !

    So I just had a thought that maybe there is a difference between installing WP from within cpanel & installing manually...? I could be talking utter garbage, but i'll try anything just to get access to my posts in the database. I know the original was a manual install, so at least this way I can tell it at the start what the database is & the user name & password.
    Anyway am busy uploading WP 2.7 to give it a go, will let you know soon if it sorts the problem.

    Regards Taffy

  6. c3lt1957
    Member
    Posted 3 years ago #

    Hahaha,

    I take back everything I said, I am in fact a bloody genius !!!

    The idea I dreamed up, mentioned above worked perfectly. Everything is back including all images etc no errors and all fully functioning hahaha

    Thanks anyway guys.

    Now to try for the 2nd time to switch hosts & at the same time change domain name...???
    Oh hell I bet this is going to hurt !!!

  7. Trinity7
    Member
    Posted 2 years ago #

    good job

Topic Closed

This topic has been closed to new replies.

About this Topic