ww

WordPress WP-Admin Blank Page Fix

Posted on by John MacMenamin

I just had a problem logging in after doing some major theme overhauling editing work.

When I typed in alteredadvice.com/wp-admin all I got was a blank screen. I thought bad plugin or theme right? Well turns out it a whole lot easier of a fix. Basically I looked in my functions.php and found empty spaces at the top and bottom of my code. These spaces at the top or bottom of the functions.php file kill the admin dashboard.

Just thought I’d pass this little note along as one thing that can happen to wait 30 mins of your time. ;)

Found the fix here: WordPress Help



About John MacMenamin

John MacMenamin is the driving force behind alteredadvice.com a WP Development Magazine. If you'd like to keep in touch you can follow Altered on twitter or become a friend on facebook.
View all posts by John MacMenamin → This entry was posted in Tutorials and tagged , , . Bookmark the permalink.


  • http://absolutetechonline.com josh

    Thanks, I thought I was going to lose my mind! Did a quick google search and got you. This was a big help. Thanks!

    http://www.absolutetechonline.com

  • http://jilinteractive.net fano

    Thank you so much!
    I was loosing my mind for real!
    That fixed it, hoorayyyyy!

  • http://clevernest.com Derek

    You, sir, just saved my life.

  • http://www.shekobagus.com Sheko

    Wow.. It’s a great help.
    Thanks a lot

  • http://folio.cre8ivestudio.com.au Gerard

    saved my life I think.. thanks

  • http://illustratorhints.com Jesse Hamilton

    How the heck do those spaces get added? It happened to me when I changed themes – I assumed it was the theme that was bad, but they’re not writing to my admin folder are they? Is it a bug in WP that’s adding them?
    .-= Jesse Hamilton´s last blog ..Viewing your images as you move them =-.

  • http://Website Dave

    Thanks a bunch, happened to me while editing the functions file of a theme.

  • http://Website det

    thanks a lot.. you have no idea how you have helped me… :)

  • http://Website Martin Hellström

    wow, I am trying to learn wordpress, and started all over 2 times becourse of this. Thanks alot. I bookmark this, since I got this error before ;)

  • http://www.fingersofsteel.net Miikka Värri

    Thank you for this post John. You gave me the right solution how to fix that blank admin page. Now it works again.

  • http://www.imarkinteractive.com iMark Interactive

    I was about to start yelling at my webhost until I found your article. I was messing with functions.php earlier in the day, but I was still logged in admin. Once I tried on another computer, nothing. Found out it was just one space that caused it to crash. You are a life saver.

  • http://peerlesstvwallmountinfo.blogspot.com/ Jack

    Thanks mate. I had left a line wile adding a function thus mine had a blank line in the middle, which screwed it up.

  • http://wearegrassroots.com Justin Rascoe

    Yes!!!!! I’ve spent the last hour filtering through loads of complicated non-sense before coming across your post.

    I took your advice, edited my functions.php file and voila! Thanks so much for sharing.

  • http://techiechic.net Brittny Hansen

    You’re a lifesaver. Thank you so much for posting this! I was pulling my hair out trying to figure out why I couldn’t get to the admin console for my site while working under a tight deadline.

  • Umar

    Thank you so much

    This worked for me !!! Saving me a lot of headache

  • http://nickthrolson.com Nick Throlson

    Big Thanks brother this post saved my life blank spaces after my functions.php after updating to 3.0 and new theme.

  • http://toptrending.net moreno

    Wow thanks for the nice advice. Since I’ve got the same problem and go across to google and type to search “blank page on wp-admin”, then found you in first page. You save my blog. Thank you so much

  • http://www.erikportin.com/blogg ERIK

    Thanks!! saved me a lot of time.

  • dan

    THANKS! I also had a blank line in the middle of functions.php

  • http://www.jokestiltiden.dk/ Marcus

    I tried everything. Al the advice on the WordPress support page. Still blank?? Any ideas?

  • http://www.webdesigner.de webdesin

    Lovely sharp post. Never thought that it was this easy. Extolment to you!

  • http://littlestorping.co.uk/feed/ Simon Wood

    I could have been googling until the end of time if you hadn’t posted this. THANK YOU! There were two space at the end of functions.php.

  • http://www.movableid.com eko

    It works. I just remove the blank line at the end of function.php. I don’t know before a simple blank line can make wp-admin not accessible.

    Thanks, your site shows up at the first page of search result.

  • http://beyazsurat.wordpress.com Beyazsurat

    pheew. thanks.. such a detect! thanks for sharing mate.

  • W

    Thanks a million! Been tearing my haris out for two hours, trying to figure it out. Saved my day.

  • http://www.coolaffiliatemarketingguide.com Louise M.

    Oh my god man you saved me so much time!! Thank you!! :)

  • Yorick

    Very helpful. I really thought I’d broken it and wasted several hours’ work. Thanks!

  • http://Website jon

    dude – you rock. seriously.

  • http://www.mikespike.org Michael Shepherd

    Thanks!! Fixed mine!! Phew

  • http://Website Jim

    Nice! I was rewriting a plugin, and I got the blank login!

    Saved me some headache!

    Will definitely link back to you when I write a post on plugins, thanks!

  • http://chapila.com teknologi informasi

    i cannot acces wp-admin, this blank page – what i do this problem

  • http://bestdeals.pricemaniacs.com keyur shah

    Still blank page.. any help…

  • http://www.virtualidstudios.com David

    wtf? Why? Gah, it seems so illogical. Does WP parse the end of the file, or lines in the “next” one for something specific? Either way, I’m an unhappy camper :-/ Well, it’s fixed now.

  • http://denversapphirelimo.com Denver limousine

    i have the same problem but i cant find the functions.php i steel have the problem any idea…?????

  • http://secrethamilton.ca dwayne ali

    I love you.
    Really.
    Thanks so much.

  • chris

    I have three wordpress blogs affected by the blank wp-admin page!! How is it possible to get this on all three blogs? I need advice. Thanks.

    Chris

  • http://www.jmdsgn.nl Jeroen

    Thanks,
    this already costed me hours of frustration. Indeed there were some spaces in my functions.php…

  • http://www.tabelafipe.co Tabela fipe

    That’s awesome! Thanks for sharing.

  • Mat

    That was excellent info! I was all planning to reinstall and found your post at the last minute. Thanks so much. Mat

  • Jay

    You just saved my job!!! You are my new GOD!!!

  • Tyyyphon

    thank you SO MUCH !

  • Anonymous

    Sometimes adding this line to wp-config.php or wp-settings.php solve this problem too.

    define(‘WP_MEMORY_LIMIT’, ’64M’);

  • http://www.facebook.com/profile.php?id=571800019 Caroline Algotsson

    Thanks! I had the same problem, checked my functions.php and it really helped me out!

  • anna

    Thank you, this post is such a time saver.

  • Info

    Thank you!!!!

  • xiaomei201239

    wtf? Why? Gah, it seems so illogical. Does WP parse the end of the file, or lines in the “next” one for something specific? Either way, I’m an unhappy camper :-/ Well, it’s fixed now http://www.fashiontrendspos.com/

  • Tom

    I’m having a similar problem with my mulled wine site:
    http://mulledwine.org.uk

    and I still haven’t found a fix. Any ideas?

  • Sg

    Yes, this works the best

  • Pamela MacFadden

    THANKS!!!




SEO Powered By SEOPressor