Solution for Wordpress blank admin page

Wednesday, May 7th, 2008     (leia em Português)    (leer el texto en Español)

Recently I had to do the upgrade from Wordpress 2.2.3 to 2.5.1 in my Granadeiros Azulinos blog. After following all the steps of the detailed upgrade process - backups, disable plugins, copy new files, update and reactivate plugins, reapply customization of themes, etc.., the blog worked well in the new version! Great!

However, one strange problem: after creating new posts in the administration panel (Wordpress dashboard), or after leaving comments in the blog posts, I got a completely blank page. Afterwards, the problem got worse: the Wordpress admin panel became totally blank, nothing worked!

After a full day’s search, I had already tried several solutions and suggestions, but nothing … Changing themes, deactivating and uninstalling all plugins, physically deleting the plugins from their directory, even making changes in the Wordpress database. I was already tired, thinking that the problem could be related to PHP’s memory use. I was thinking about contacting my hosting provider to see how PHP was configured.

Suddenly I found, lost amid a tech blog’s comments, a simple suggestion that was crucial to solve my problem: to check whether my wp-config.php file had any blank lines in the end!

Unbelievable, but this was the problem: when doing the upgrade, I had some things changed in my wp-config.php, including the introduction of the new SECRET_KEY option. After the upgrade the file, I had left some white lines in the end, and those lines were responsible for the file not being loaded correctly by Wordpress PHP scripts…

So, the only thing I had to fix was, to remove the blank lines from the end of the file and GOTCHA! Everything was back in order again! Nice one!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • Digg
  • linkk
  • Meneame
  • TwitThis

Rate this post:

1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 4.33 out of 5)
Loading ... Loading ...

18 Responses to “Solution for Wordpress blank admin page”

  1. Beto via Rec6 Says:

    Solução para painel de administração do Wordpress em branco…

    Uma solução para quando o painel de administração do Wordpress fica em branco devido à migração para a versão 2.5 …

  2. ms nasty Says:

    [...] [...]

  3. Nicolas Says:

    Thank you, you just saved me countless hours of struggling with this issue!

  4. Beto Boullosa Says:

    Nicolas, you’re welcome! :)

  5. Lisa Irby Says:

    You are a lifesaver!! I was just about to disable all my plugins and reinstall WP and it was 2 blank lines causing the problem. THANK YOU!!!!

  6. 10 Tips How To Fix Wordpress Blank Page « WPNoise.com Says:

    [...] You can read more about it: Solution for Wordpress blank admin page [...]

  7. Brian Says:

    Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!

  8. Beto Boullosa Says:

    You’re welcome, Brian! :)

  9. michael Says:

    thanks for the info. i’m getting the blank screen only on published pages after hitting update. if i hit the back button and refresh, the updates go through.

    i’m going to check the config file to see if your fix applies. thanks a bunch.

    my error only showed up after running an update of wordpress version…

  10. Shae Says:

    Thank you! This almost fixed everything - I had to go delete all the blank lines from my funtions.php file too. Perfect now.

  11. pratik Says:

    GENIUS!!!!!

    Thaank You!!!

  12. Maysa Says:

    Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!

    Regards from Brazilllllllll!!!!!!!!!!!!

    Maysa

  13. ZackShinra Says:

    Infelizmente comigo não resolveu.

  14. ZackShinra Says:

    Opa, parece que deu certo sim, só tive que aguardar alguns minutos depois da modificação. E fazendo um adendo, não somente retirei o espaço em branco, mas fechei a tag do php.

  15. Charles Says:

    Hi,
    It’s a strange setup really when other cms systems always seem to have a debuging tool available that can tell you where the program is erroring. Zikula, Zencart and Joomla all have very effective debuging tools available which can save days of tracking is something goes wrong.
    It seems that Wordpress is the only cms system that does not have a system debugger available.

  16. WordPres Themes Says:

    Thanks for sharing info.

    It really works.

  17. Jens Says:

    I replaced functions.php with the original theme file and it solved the problem!

    Thanks.

  18. actv6 Says:

    Si señor, despues de buscar y ya estar a punto de desistir,..aquí he encontrado la solucion, volver a editar el wp-config.php , que lo habia retocado por instalar un plugin, subirlo de nuevo y paffff todo funcionaba, gracias……

Leave a Reply