在 Joomla 中跟踪 WSoD

发布于 2024-09-11 19:00:21 字数 165 浏览 3 评论 0原文

如果在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

网白 2024-09-18 19:00:21

您需要在您的环境中启用错误报告。出于安全考虑,它默认处于禁用状态。我认为最简单的方法是将以下代码行放在 joomla 安装的 index.php 文件的开头:

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

完成调试后,不要忘记删除或注释掉这两行。

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:

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

After you are done debugging do not forget to remove or comment out those two lines.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文