Solution for Wordpress blank admin page
Wednesday, May 7th, 2008Recently 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!








(6 votes, average: 4.33 out of 5)
Email subscribe
May 7th, 2008 at 21:02
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 …
May 11th, 2008 at 7:12
[...] [...]
June 9th, 2008 at 18:35
Thank you, you just saved me countless hours of struggling with this issue!
June 9th, 2008 at 19:00
Nicolas, you’re welcome!
August 20th, 2009 at 10:45
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!!!!
November 5th, 2009 at 17:12
[...] You can read more about it: Solution for Wordpress blank admin page [...]
November 23rd, 2009 at 19:52
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!
November 24th, 2009 at 11:45
You’re welcome, Brian!
January 17th, 2010 at 19:54
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…
January 19th, 2010 at 21:26
Thank you! This almost fixed everything - I had to go delete all the blank lines from my funtions.php file too. Perfect now.
January 20th, 2010 at 7:00
GENIUS!!!!!
Thaank You!!!
February 1st, 2010 at 20:59
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
February 3rd, 2010 at 16:05
Infelizmente comigo não resolveu.
February 3rd, 2010 at 16:48
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.
March 28th, 2010 at 18:19
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.
April 10th, 2010 at 2:27
Thanks for sharing info.
It really works.
April 29th, 2010 at 4:30
I replaced functions.php with the original theme file and it solved the problem!
Thanks.
June 17th, 2010 at 20:52
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……