解决博客打开什么都不显示问题

1月 10, 2014 by     6 Comments    Posted under: WordPress    4,550 views    分享()

遇到问题

上月10号左右,突然发现博客打开什么都不显示,只是一个空白页。

好久没有更新博客了( WordPress 和 插件本身一直在更新),对 WordPress 感觉好陌生。遇到问题时脑子里和页面显示一样——一片空白。

给 Bluehost 提交了一个 support ticket(话说刚刚打开 Bluehost,主页改版了呢,果然是新年新气象)如下:

Please help me!

Why my site lionshuang.com couldn’t be open, just display a blank page?

I didn’t do anything about it.

解决问题

我大 Bluehost 当天就回复了邮件如下:

Hello,

This is typically are result of a broken/corrupt theme or plugin.

Most of the time, one of these troubleshooting solutions resolves this:
(All of which you can do with FTP access, SSH or through File Manager)

1) Check your Error Logs. You can usually see your error logs by adding /error_log to the end of your domain name. This usually gives you a good idea of where the issue is that is causing the white screen. I already checked this for you and I found this error:
[17-Dec-2013 13:28:12 UTC] PHP Fatal error:  Call-time pass-by-reference has been removed in /home2/lionshua/public_html/Blog/wp-content/plugins/instapress/instagram.php on line 306
This plugin is causing the white screen. You will want to disable this plugin by renaming the folder for the plugin.

2) Check the .htaccess file

.htaccess can be tricky. The easiest way to see if your .htaccess is the cause of this error is to rename the file. Rename .htaccess to .htaccess_old

After renaming your .htaccess file, clear your browser cache, and then check the site.

If this resolves the issue, then you know where the problem is. You can modify the .htaccess code, or just create a new one.
If it does not resolve the issue, then rename the file back to .htaccess.

3) rename the wp-content/plugins folder

If this resolves the problem, you know it was one of your plugins. You will have to re-activate the plugins one by one to determine which one cased the problem. Once it is found, you should see about installing a new version, consulting the plugin developer/vendor, or just not using it.

If it does not resolve the issue, then rename the folder back to wp-content/plugins

4) rename the wp-content/themes folder or use phpmyadmin to change the theme you are using

If this resolves the problem, you know it was your theme. In this case, you should install a new version of that theme, consult with the theme developer, or pick a different one.

If it does not resolve the issue, then rename the folder back to wp-content/themes.

More info can be found at these links or all over the internet if you choose to search for it:
http://en.wikipedia.org/wiki/White_screen_of_death
http://wordpress.org/tags/wsod

How did we do? Please help us improve the support that we offer you
by filling out this online survey:
http://www.surveygizmo.com/s3/1248462/bluehost

Thank you,
Caitlin
Web Advisor
BlueHost.com
888.401.4678

Most questions can be answered by articles in our forum, knowledgebase, and video tutorials:

Forum:               http://www.bluehostforum.com
Knowledgebase:       https://www.bluehost.com/cgi/help
Tutorials:           http://www.bluehost.com/tutorials/
Server Status:       http://serverstatus.bluehost.com/

New to Bluehost? Make your website a success. Get help from our Professional Services:  https://my.bluehost.com/cgi/services

When you have a new question or issue, please open a new support ticket.

问题原因

解决问题的办法,就是上面的第三条,将插件目录改名后,博客恢复了正常。试着逐一启动插件,奇怪的是,问题没有再现。

岁数大了脑子就是慢,其实我在给 Bluehost 写信之前试过第四条,也就是修改主题文件夹名,没效果,居然就忘了再试试可能性更大的插件文件夹,自嘲一下吧。

最后要说,失去了才知道珍惜这话说的没错。虽然很久不更新,不过在互联网上有一块自己的阵地,感觉真好!