在 Joomla 中跟踪 WSoD
如果在 Joomla 上完成的网站出现死机白屏,我如何找出发生错误的代码部分?
我什至知道哪个模块失败,以及在什么条件下失败(它是一个幻灯片模块,当要显示的项目之一是视频类型时它会失败),但我想检查代码中的哪个位置失败了,在希望自己能够纠正这个问题(我不是最初的开发人员,而且我还不太精通 PHP)。
How do I find out which code section an error occurs in, if the site done on Joomla gives me a White Screen of Death?
I even know which module fails, and under what condition (it is a slideshow module, and it fails when one of the items to display are of video type), but I would like to check what place in the code it fails in, in the hope of perhaps correcting the problem myself (I am not the original developer, and I am not fluent in PHP yet).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在您的环境中启用错误报告。出于安全考虑,它默认处于禁用状态。我认为最简单的方法是将以下代码行放在 joomla 安装的 index.php 文件的开头:
完成调试后,不要忘记删除或注释掉这两行。
You need to enable error reporting in your environment. It is disabled by default due to security concerns. I think the easiest way would be to put the following lines of code in the beginning of your joomla installation's index.php file:
After you are done debugging do not forget to remove or comment out those two lines.