Title: Getting 404 error message for wp-admin.php on localhost
Last modified: March 29, 2024

---

# Getting 404 error message for wp-admin.php on localhost

 *  Resolved [panflat2694](https://wordpress.org/support/users/panflat2694/)
 * (@panflat2694)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/)
 * Hi there,
 * I’ve migrated by blog to my localhost using Updraft Plus. It worked flawlessly,
   but now I can’t access my WP-admin page.
 * After entering my log in credentials I get a 404 error message (page not found).
 * I’m using ApacheFriends XAMPP Version 8.2.12 on Windows 10.
 * How can I fix this?
 * Please note, my live site is currently offline, since I will be moving to a new
   webhost.
 * Thank you for your help.

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

 *  [pbevanudp](https://wordpress.org/support/users/pbevanudp/)
 * (@pbevanudp)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/#post-17538468)
 * Hello,
 * Rename the** wp-content / plugins** folder and the folder for the theme you are
   using to revert to the default theme. You could also check your _.htaccess_ file
   in the root of your site and try restoring the WordPress default [version](https://developer.wordpress.org/advanced-administration/server/web-server/httpd/)
   in case there is an issue with it.
 *  Thread Starter [panflat2694](https://wordpress.org/support/users/panflat2694/)
 * (@panflat2694)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/#post-17538525)
 * Thank you for your quick reply.
 * I’ve followed your instructions:
 * “Rename the** wp-content / plugins** folder and the folder for the theme you 
   are using to revert to the default theme.”
 * But then I got a password error (I didn’t change my password).
   I went to wordpress.
   org and followed the instructions for resetting passwords through phpMyAdmin.
 * > [Reset Your Password](https://wordpress.org/documentation/article/reset-your-password/)
 * But then this error message appeared:
 * **Fatal error**: Uncaught Error: Call to undefined function get_network() in 
   C:\xampp\htdocs\soundsandcolors\wp-admin\admin-header.php:43 Stack trace: #0 
   C:\xampp\htdocs\soundsandcolors\wp-admin\index.php(137): require_once() #1 {main}
   thrown in **C:\xampp\htdocs\soundsandcolors\wp-admin\admin-header.php** on line**
   43**
 * There has been a critical error on this website. Please check your site admin
   email inbox for instructions.
 * Where do I go from here …
 *  Thread Starter [panflat2694](https://wordpress.org/support/users/panflat2694/)
 * (@panflat2694)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/#post-17538627)
 * In the meantime I’ve changed my theme (Divi) back to default (twentytwentyfour)
   following the instructions of this post
 * [https://help.one.com/hc/en-us/articles/115005585909-Change-your-WordPress-theme-from-the-database#step-2](https://help.one.com/hc/en-us/articles/115005585909-Change-your-WordPress-theme-from-the-database#step-2)
 * But after logging in I keep on getting this error message under [http://localhost/soundsandcolors/wp-admin/](http://localhost/soundsandcolors/wp-admin/)
 * **Fatal error**: Uncaught Error: Call to undefined function get_network() in 
   C:\xampp\htdocs\soundsandcolors\wp-admin\admin-header.php:43 Stack trace: #0 
   C:\xampp\htdocs\soundsandcolors\wp-admin\index.php(137): require_once() #1 {main}
   thrown in **C:\xampp\htdocs\soundsandcolors\wp-admin\admin-header.php** on line**
   43**
 * There has been a critical error on this website. Please check your site admin
   email inbox for instructions.
 *  [pbevanudp](https://wordpress.org/support/users/pbevanudp/)
 * (@pbevanudp)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/#post-17542627)
 * Hello,
 * Are you restoring the core files as part of a multisite restoration?
 *  Thread Starter [panflat2694](https://wordpress.org/support/users/panflat2694/)
 * (@panflat2694)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/#post-17543453)
 * Hello,
 * no it’s a simple blog site.
 *  [pbevanudp](https://wordpress.org/support/users/pbevanudp/)
 * (@pbevanudp)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/#post-17545535)
 * Hello.
   I would suggest restoring it on a new local WordPress instance, there 
   could be some missing or corrupt core files.
 *  Thread Starter [panflat2694](https://wordpress.org/support/users/panflat2694/)
 * (@panflat2694)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/#post-17546590)
 * Hello,
 * I did it. First installed WordPress from WordPress.org to get a basic WP site.
 * Then used the restore function from Updraft Plus (dowloading the six back up 
   files from my Google Drive to my desktop and uploading all of them to my localhost
   site.
 * From the outside everything looks nice and works, but still I can’t enter my 
   new “house” (WP dashboard). And that’s frustrating.
 *  Thread Starter [panflat2694](https://wordpress.org/support/users/panflat2694/)
 * (@panflat2694)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/#post-17546631)
 * I’ve fixed it. In phpmyadmin I deleted the password value in the ‘user_pass’ 
   field and replaced it basically with the same password.
 * BUT under the ‘Function’ column, I selected ‘MD5’ from the drop-down menu and
   then it worked.
 * I’m not a developper, but maybe it was just that the MD5 setting was not correct,
   IDK.
 * Now, I can enjoy my blog again from the outside AND inside.
 * Thank you for your assistance on this matter.
 * CORRECTION:
 * It was the SiteGround security plugin causing the issue. I forgot that I deactivated
   the security plugins while trying to fix the problem. After reactivating SGS 
   the issue reappeared.
    -  This reply was modified 2 years, 2 months ago by [panflat2694](https://wordpress.org/support/users/panflat2694/).

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

The topic ‘Getting 404 error message for wp-admin.php on localhost’ is closed to
new replies.

 * ![](https://ps.w.org/updraftplus/assets/icon-256x256.jpg?rev=1686200)
 * [UpdraftPlus: WP Backup & Migration Plugin](https://wordpress.org/plugins/updraftplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/updraftplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/updraftplus/)
 * [Active Topics](https://wordpress.org/support/plugin/updraftplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/updraftplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/updraftplus/reviews/)

## Tags

 * [404 error message](https://wordpress.org/support/topic-tag/404-error-message/)
 * [xampp](https://wordpress.org/support/topic-tag/xampp/)

 * 8 replies
 * 2 participants
 * Last reply from: [panflat2694](https://wordpress.org/support/users/panflat2694/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/getting-404-error-message-for-wp-admin-php-on-localhost/#post-17546631)
 * Status: resolved