dsasd12314 2014-05-04 17:33
浏览 63
已采纳

如何在自定义主题wordpress白屏死机上显示错误?

Such a generic problem would obviously have numerous solutions on the Web, right?

My company uses a custom purchased wordpress template, which worked fine till yesterday, for unknown reasons.

I am perfectly assured this is a template related WSOD, which is problematic, because they still wish to use the same template.

I'd be glad to finally solve the problem, but without error output it is only a wild guess what had happened.

How to hit the nail of the head without the following:

define('WP_DEBUG', true);

or reading the error_log in the root of a host? Because both failed to show anything, with latter being empty.

What are the other commands to force WP to show the error output?

  • 写回答

1条回答 默认 最新

  • doufei0933 2014-05-04 17:37
    关注

    The configuration of your server will be preventing the errors from being shown even with WP_DEBUG on.

    Try this in wp-config.php:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    

    This will log the errors to a file inside wp-content titled debug.log.

    Further reading: http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Logging

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败