• Resolved DaveForum

    (@daveforum)


    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 WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @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 to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator James Huff

    (@macmanx)

    Try downloading WordPress again, 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), 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

    (@daveforum)

    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

    (@macmanx)

    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

    (@daveforum)

    OK I have found the backup zip files on my host computer. What now?

    Thread Starter DaveForum

    (@daveforum)

    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

    (@macmanx)

    Don’t extract anything from the backup, none of the steps above mentioned using a backup.

    1. Download a fresh copy of WordPress: https://ww.wp.xz.cn/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://ww.wp.xz.cn/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

    (@daveforum)

    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

    (@macmanx)

    You’ll find some recommended FTP clients at the link in my previous replies.

    Thread Starter DaveForum

    (@daveforum)

    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.