Title: wp-blog-header.php
Last modified: June 18, 2019

---

# wp-blog-header.php

 *  Resolved [DaveForum](https://wordpress.org/support/users/daveforum/)
 * (@daveforum)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/wp-blog-header-php/)
 * When trying to access my website I am getting the following message. I can not
   access wp-admin. I do have a backup plugin (widget?) installed but as I have 
   never used it I am not sure what I might do with it, or where the backup actually
   is. I get a notification email at work saying backup has taken place but is too
   big to transmit by email. Any pointers to solving this would be very helpful.
   Thank you.
 * /** * Front to the WordPress application. This file doesn’t do anything, but 
   loads * wp-blog-header.php which does and tells WordPress to load the theme. **
   [@package](https://wordpress.org/support/users/package/) WordPress */ /** * Tells
   WordPress to load the WordPress theme and output it. * * [@var](https://wordpress.org/support/users/var/)
   bool */ define(‘WP_USE_THEMES’, true); /** Loads the WordPress Environment and
   Template */ require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-blog-header-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11650948)
 * Try [downloading WordPress](https://wordpress.org/download/) again, access your
   server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel (consult your hosting
   provider’s documentation for specifics on these), and delete then replace your
   copies of everything on the server **except** the wp-config.php file and the /
   wp-content/ directory with fresh copies from the download. This will effectively
   replace all of your core files without damaging your content and settings.
 * Some uploaders tend to be unreliable when overwriting files, so don’t forget 
   to delete the original files before replacing them.
 *  Thread Starter [DaveForum](https://wordpress.org/support/users/daveforum/)
 * (@daveforum)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11653185)
 * Excuse my ignorance but it is several years since I installed my website and 
   haven’t given it much thought since, so I am a bit rusty/clueless. Download wordpress
   to where? I can use FTP but you say to delete your copies of everything on the
   server except wp-config. and wp-content. Presumably this is only files within
   wordpress folders that I delete and replace? I then (I’m guessing) transfer across
   all wordpress files that I deleted back to the server folders except wp-content
   and w-config?
 * I did find the backup file location but I can’t get to it as the website is not
   recognised.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11654030)
 * > Download wordpress to where?
 * It’s linked to in my reply.
 * > Presumably this is only files within wordpress folders that I delete and replace?
 * No, once you’re in via FTP you’ll find several files. Delete every file _except_
   wp-config.php and the /wp-content/ directory, leave those where they are. Next,
   upload new copies of everything else from the fresh download.
 *  Thread Starter [DaveForum](https://wordpress.org/support/users/daveforum/)
 * (@daveforum)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11654152)
 * OK I have found the backup zip files on my host computer. What now?
 *  Thread Starter [DaveForum](https://wordpress.org/support/users/daveforum/)
 * (@daveforum)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11654177)
 * Sorry James I didn’t see your reply, I should have refreshed the page! OK so 
   now that I found the backup zip file, can I not extract it on my own computer
   and just upload the corrupted file (though I am not sure which file that might
   be.) I get what you are saying I am just nervous of deleting everything except
   the folder and file you mention. It sounds rather drastic. I don’t doubt what
   you are saying, but I don’t have a clear picture of what I am actually doing.
   Also, if it is a backup would I be o.k. uploading everything, given that it is
   a backup. It’s ten days old but it’s the structure I am scared of destroying 
   not the actual content as I can easily put that up to date.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11654275)
 * Don’t extract anything from the backup, none of the steps above mentioned using
   a backup.
 * 1. Download a fresh copy of WordPress: [https://wordpress.org/download/](https://wordpress.org/download/)
 * 2. Access your server via SFTP or FTP, or a file manager in your hosting account’s
   control panel (consult your hosting provider’s documentation for specifics on
   these). [https://wordpress.org/support/article/ftp-clients/](https://wordpress.org/support/article/ftp-clients/)
 * 3. On your server, delete every file **except** the wp-config.php file and the/
   wp-content/ directory.
 * 4. On your server, replace every file **except** the wp-config.php file and the/
   wp-content/ directory with fresh copies from the download in step 1.
 * Note: Some uploaders tend to be unreliable when overwriting files, so don’t forget
   to delete the original files before replacing them.
 *  Thread Starter [DaveForum](https://wordpress.org/support/users/daveforum/)
 * (@daveforum)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11654561)
 * Ok I get the idea. unfortunately the file manager isn’t working for me. I need
   to download an FTP client from somewhere.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11654642)
 * You’ll find some recommended FTP clients at the link in my previous replies.
 *  Thread Starter [DaveForum](https://wordpress.org/support/users/daveforum/)
 * (@daveforum)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11661314)
 * Hi James.
    SUCCESS!!! I am not sure what file did the trick but I did reload 
   wp-admin and wp-includes and it didn’t change. But then I uploaded all ‘loose’
   files in public-html EXCEPT! wp-config. And it came back to life. Many thanks.
   The File Manager wouldn’t work but FileZilla worked a treat. Just a footnote 
   though….Telling a novice to “delete all the files on your server” is maybe not
   what you had in mind exactly. 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘wp-blog-header.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [DaveForum](https://wordpress.org/support/users/daveforum/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/wp-blog-header-php/#post-11661314)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
