Reputation: 3429
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?
Upvotes: 2
Views: 2319
Reputation: 9330
If you're not seeing the errors it's likely that you have an extension installed that is calling set_exception_handler()
, while I don't have an STS 3.1 version anywhere to test the 3.2's we do have don't have any issues with reporting errors. (And as far back as I can remember, I don't believe Joomla core calls set_exception_handler()
.
We write Joomla extensions for clients as our primary business and I can tell you that the error reporting works. We have found in the past that some more dodgy extensions install their own exception handlers to hide issues in their code which is why we always develop and test on clear default Joomla installations.
Just saw your answer…
If that work's it means something is definitely calling set_exception_handler()
which I don't believe is Joomla, I don't have have STS 3.1 installation but my current 1.5, 2.5 and 3.2's do not call .set_exception_handler()
in the Joomla core
Upvotes: 1
Reputation: 3429
Figured it out -- calling restore_exception_handler() gets rid of the poxy Joomla page and lets me read the text of the error.
Upvotes: 0
Reputation: 988
Few thoughts:
code:
<?php
ini_set('display_errors', 'on');
ini_set('error_reporting', E_ALL & ~E_NOTICE);
?>
Upvotes: 0