如何在 Joomla 3 中显示 PHP/SQL 错误 [英] How to display PHP / SQL errors in Joomla 3

查看:9
本文介绍了如何在 Joomla 3 中显示 PHP/SQL 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽我所能,我无法在 Joomla 3.1.5 中获得正确的错误消息.无论我做什么,我都会被重定向到一个不错的错误 0"页面,该页面没有告诉我发生了什么.我尝试在管理控制台中将错误报告设置为最大值和开发人员,并打开开发人员模式.有没有办法在 Joomla 3.1.5 中获得正确的错误消息而不是友好的错误消息?

Try as I might, I can't get proper error messages in Joomla 3.1.5. No matter what I do, I get redirected to a nice "Error 0" page which doesn't tell me what happened where. I've tried setting error reporting to both maximum and developer in the admin console, and turning on developer mode. Is there any way to get proper error messages instead of friendly error messages to display in Joomla 3.1.5?

推荐答案

想通了——调用 restore_exception_handler() 摆脱了棘手的 Joomla 页面,让我阅读错误文本.

Figured it out -- calling restore_exception_handler() gets rid of the poxy Joomla page and lets me read the text of the error.

这篇关于如何在 Joomla 3 中显示 PHP/SQL 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆