dov11020 2017-05-23 15:27
浏览 49

为什么错误报告不能用于drupal(6)?

In my settings.php file (located in /sites/default/), I have:

ini_set('error_reporting',          E_ALL);
ini_set('display_errors',           'stdout');

However, they are not showing on the screen.

For example, I had a problem where I was missing $ when referencing a variable and it would've been nice to have this displayed.

This has to be in the settings.php file because I have a test site and a live site and only the test site should display the PHP errors, so putting this in a php.ini file at the server level is not an option)

  • 写回答

1条回答 默认 最新

  • doujuncuo9339 2017-05-24 06:54
    关注

    Go to Error reporting page (/admin/settings/error-reporting) and check that error reporting parameter. Is it set just to log errors or to log and display on screen?

    If that doesn't help then run phpinfo() (http://php.net/manual/en/function.phpinfo.php) function and see is error display allowed. If it's not check the location of used php.ini file (again be looking at phpinfo() output), edit it to allow error displaying (restart web server) and error should appear.

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么