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

查看:42
本文介绍了如何在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()摆脱了Poxy 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天全站免登陆