在进行 drupal 6 到 7 升级时,我收到了不太有用的消息
“网站遇到意外错误,请稍后再试。”每次我去某些页面。
例如)/管理员/配置
找出导致 fatal error 的原因以便我修复它的最佳方法是什么?
我现在能想到的就是开始禁用贡献的模块,直到该页面正常工作或查看日志。
谢谢。
最佳答案
如果 dlog/watchdog 和 php 错误日志不起作用,试试这个:
继续/includes/error.inc
注释行第 245 行
print theme('maintenance_page', array('content' => t('The website encountered an unexpected error. Please try again later.')));
把这个
print theme('maintenance_page', array('content' => t('The website encountered an unexpected error. Please try again later.'.$fatal.' '.var_export($error,true))));
非常相似,您将 var_export($error,true)) 放在错误末尾
关于drupal - 找出导致可怕的 "The website encountered an unexpected error. Please try again later."消息的原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4737768/