Give a general error message ("An error has occurred.") with as much information as possible.
Gives a general error message ("An error has occurred.") and the PHP error message.
If "debug" is YES, you also get the "calling stack" shown.
What is (IMHO) missing is the actual script that is crashing and the codeline.
not really relevant i belief
script to deal with this: /httpdocs/administrator/templates/.../error.php
current code:
< ? php if ($this->debug) : ? >
< div >
< ? php echo $this->renderBacktrace(); ? >
I suggest to include the following code into
< ? php if ($this->debug) : ? >
< div >
< p >Scriptfile: < ? php echo htmlspecialchars($this->error->getFile(), ENT_QUOTES, 'UTF-8'); ? >< / p >
< p >Scriptline: < ? php echo htmlspecialchars($this->error->getLine(), ENT_QUOTES, 'UTF-8'); ?>< / p >
< / div >
< div >
< ? php echo $this->renderBacktrace(); ? >
Labels |
Added:
?
|
Ok i think we can close it than here. Thanks @alikon and @schultz-it-solutions
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-15 11:07:07 |
Closed_By | ⇒ | zero-24 |
yes - please close it!
That is what you would call "parallel invention" - I am sorry...
this issue was on my mind for at least two years, but I never actually got to investigate a solution. But now I did - only to find out that three weeks ago somebody else did the very same thing.
No Problem. Thanks!
@schultz-it-solutions please send you changes as Pullrequest. agains the staging branch.
btw what about extending the renderBacktrace method in order to display the line / file?
Please also consider a translation string using JText::_() if you want to add text to the output ;)