Name Mon Lu

Love jQuery/CSS

Blog about Webdev

Twitter supawaza

RSS Twitter Flickr

What I am up to:


Posts Tagged ‘blank page’

I had the plea­sure to expe­ri­ence that last night… again!  Last time it was a plu­gin…  this time is not.  After doing hours of search­ing… peo­ple said that some files maybe infected or the blog could be hacked. Well… that might not be the case. For mine, I recently did an upgrade to the lat­est ver­sion of wod­press, then come back days later the admin sec­tion is all blank – no mat­ter which url I typed.  Here are the symptoms:

  • The blog’s front-end is still work­ing fine, noth­ing seems out of place or broken
  • I got to the login screen, but as soon as I logged in, it was com­pletely blank
  • I could not access any of page in the admin such as by typ­ing: /wp-admin/plugins.php – all blank
Before going into crazy mode on try­ing to fig­ure out what’s going on with what I went through below… If you have sim­i­lar symp­toms like mine, just go to wor­press, down­load a new copy, down­load the bad /wp-admin/ copy, and upload the entire /wp-admin/.  Fixed it for me instantly.  But if you want to know what I had to went through before fig­ur­ing that easy solution…
Oh and before doing this, like I men­tioned above… instead of keep­ing your admin down and mess­ing with it live, I sug­gest down­load the bad copy of the /wp-admin/ locally, upload the brand new copy down­loaded from word­press and con­tinue the diag­no­sis locally.  If the new upload didn’t fix your word­press admin, then it prob­a­bly isn’t the same prob­lem. The rest of this won’t help you.
  1. I checked blog’s front-end and was still run­ning fine – checked if any page is bro­ken or funky stuff show­ing up on the pages.  A bro­ken plu­gin might have be the cul­prit or you sim­ply got hacked
  2. So far so good, noth­ing seems bro­ken or out of place. Login, page goes blank. I run the plu­gin Login Lock­down, so I FTP in and deleted the folder to see if that’s the cul­prit – nope. Put it back in.
  3. Checked the error log and see what threw error(s) recently – did the same thing above. No go.
  4. Found some peo­ple said that empty returns on functions.php or wp-config.php  in your theme can cause that – make sure no blank space on top or bottom…
  5. Some said check files for weird stuff got append on top of some php files – checked all files inside wp-admin folder – nope
  6. Fast for­ward 3 hours later – finally re-uploaded a new copy of the /wp-admin/ – fixed!  Son of a…
Final note:  if it got fixed, but you should at least try to find out which files and what caused it by going through Step 4 or 5 – you never know, you might have been infected.  I wasn’t, just a bad upgrade.
Hope that helps.