Forums

[resolved] localhost wp-admin suddenly blank (8 posts)

  1. edwinbradford
    Member
    Posted 1 year ago #

    Hi,

    Yesterday evening whilst doing some development work in localhost I inadvertently exited XAMPP instead of just closing the window. Since then my localhost wp-admin login is just a blank white page, "view source" has no code in it.

    I reinstalled WordPress and it didn't fix it. Tried repairing and analysing the MySQL database and it made no difference. My localhost website is accessible with no problems, its the admin interface I can't access. I tried removing all plugins and themes other than the default Twenty Ten but no good :(

    Any suggestions?

    E.

  2. edwinbradford
    Member
    Posted 1 year ago #

    OK I have it working, I deleted the entire WordPress folder and reinstalled a new one. I thought I did that last night by deleting entire sub-directories in WordPress but I must have missed something.

    I'll add the old files gradually, if I find the cause I'll post back.

  3. edwinbradford
    Member
    Posted 1 year ago #

    OK, I think I solved this, and it must be happening to other users too. There was nothing wrong with my original WordPress installation. And the re-install above only appeared to fix it because I manually entered the url.

    Somehow, when I switched off XAMPP while WordPress was running it appears to have affected the URL of wp-admin.

    This original localhost bookmark stopped working:
    http://localhost/edwinbradford/wordpress/wp-admin/

    But this one works:
    http://192.168.0.2/edwinbradford/wordpress/wp-admin/

    I can't say whether my original bookmark was "...localhost..." or "...192.168.0.2...", however I bookmarked my local wordpress *site* (not the admin) at the same time some months back and that one says "...192.168.0.2...", the IP address.

    My guess therefore is that disabling XAMPP caused the bookmark to get overwritten to "...localhost..." which never worked for wp-admin although it works fine for the local site. Incidentally my other Virtual Machines won't see "...localhost...", they have to have the IP address.

    If it makes any difference I'm using Chrome.

  4. edwinbradford
    Member
    Posted 1 year ago #

    Well it was working all day yesterday then the problem returned again today when I logged in for the first time. This time I appear to have fixed it by removing trailing white spaces after the closing php statement in functions.php in the child theme, not the parent theme.

    It appears to be working, if I don't post back it fixed it.

  5. Leftie
    Member
    Posted 1 year ago #

    I had the same problem today. I removed white spaces after the closing php statement in functions.php in my theme and now I see my dashboard again. Thanks!

  6. edwinbradford
    Member
    Posted 1 year ago #

    Glad it worked for you two, I've not had a problem since.

  7. komiska
    Member
    Posted 4 months ago #

    Have just experienced the same problem with MAMP.

    Already freaking out, when I've read about those white space deleting tricks in functions.php in the Theme, and the wp-config.php at the end of the document.

    Weird! But it worked!

  8. edwinbradford
    Member
    Posted 4 months ago #

    That's three of us, must be a bug in the code.

Topic Closed

This topic has been closed to new replies.

About this Topic