我如何理解可湿性粉剂死亡的原因(白屏)?

时间:2012-06-17 作者:Shimon S

我在管理方面有一些问题:
当我尝试根据任何类别筛选帖子时,或者当我发布帖子时,我看到一个白色的WP death屏幕
的内容debug.log 是:

    [17-Jun-2012 11:49:55 UTC] PHP Warning:  include(/home/dinorg/public_html/wp-content/advanced-cache.php) [<a href=\'function.include\'>function.include</a>]: failed to open stream: No such file or directory in /home/dinorg/public_html/wp-settings.php on line 62
    [17-Jun-2012 11:49:55 UTC] PHP Warning:  include() [<a href=\'function.include\'>function.include</a>]: Failed opening \'/home/dinorg/public_html/wp-content/advanced-cache.php\' for inclusion (include_path=\'.:/usr/lib/php:/usr/local/lib/php\') in /home/dinorg/public_html/wp-settings.php on line 62
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  Constant BLOGUPLOADDIR already defined in /home/dinorg/public_html/wp-includes/ms-default-constants.php on line 28
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  wp_enqueue_script נקרא <strong>בצורה לא תקינה</strong>. סקריפטים וסגנונות לא צריכים להרשם או להיטען לפני ווים <code>wp_enqueue_scripts</code>,<code>admin_enqueue_scripts</code>, או <code>init</code>. כנסו ל-<a href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> למידע נוסך. (הודעה זו נוספה בגרסה 3.3.) in /home/dinorg/public_html/wp-includes/functions.php on line 3587
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  define() was called with an argument that is <strong>deprecated</strong> since version 3.0. The constant <code>VHOST</code> <strong>is deprecated</strong>. Use the boolean constant <code>SUBDOMAIN_INSTALL</code> in wp-config.php to enable a subdomain configuration. Use is_subdomain_install() to check whether a subdomain configuration is enabled in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0. Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dinorg/public_html/wp-includes/functions.php on line 3551
    [17-Jun-2012 11:49:55 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/dinorg/public_html/wp-content/themes/din/admin/qa_db.php:1) in /home/dinorg/public_html/wp-includes/pluggable.php on line 866
最后一行(Cannot modify header information - headers already sent) 指出关键问题,但我不清楚这意味着什么。这真的是关键问题吗<谢谢你的帮助!

1 个回复
最合适的回答,由SO网友:HungryCoder 整理而成

在您的/home/dinorg/public_html/wp-content/themes/din/admin/qa_db.php 出了点问题。除非打开php标记(或php shorttag)并将一些代码放在同一行中,否则脚本的第一行将打印一些内容是不寻常的。所以我猜这个文件可能有类似于BOM的东西。请打开文件,看看你是否注意到任何奇怪的字符。

如果您在服务器(终端)上,则可以使用vi(或vim)使用该文件。或者,如果您有任何控制面板(如cpanel、plesk等),也可以使用文件浏览器打开它。您还可以下载文件并上传到文件共享网站,并在评论中附加链接,以便我们查看文件是否有错误(如果文件可公开共享)。

要获取错误详细信息而不是死白页面,请在/home/dinorg/public_html/wp-config.php.

ini_set(\'display_errors\', true) ;
define(\'WP_DEBUG\', true);
请让我们知道结果。

结束

相关推荐

How do you debug plugins?

我对插件创作还很陌生,调试也很困难。我用了很多echo,它又脏又丑。我确信有更好的方法可以做到这一点,也许是一个带有调试器的IDE,我可以在其中运行整个站点,包括插件?