Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Backtrace does not give source of error #16241

Closed
Hackwar opened this issue May 24, 2017 · 1 comment
Closed

Debug Backtrace does not give source of error #16241

Hackwar opened this issue May 24, 2017 · 1 comment

Comments

@Hackwar
Copy link
Member

Hackwar commented May 24, 2017

Steps to reproduce the issue

Create a PHP error in the backend, have debugging enabled.

Expected result

error.php of isis template displays error message with file and line number of the error and backtrace.

Actual result

file and line number are missing. The actual backtrace does not contain the file that actually created the error, but starts one file up.

System information (as much as possible)

Joomla 3.7.1, PHP 7.0

Additional comments

Something like this could be included in /administrator/templates/isis/error.php line 227.

						<?php if ($this->debug) : ?>
							<?php echo htmlspecialchars(' on line ' . $this->error->getLine() . ' in ' . $this->error->getFile(), ENT_QUOTES, 'UTF-8');?>
						<?php endif; ?>

However, the code above is not really translated or anything and I'm unsure what the right solution would be in terms of translated error messages?

@mbabker
Copy link
Contributor

mbabker commented May 24, 2017

See #11675

@mbabker mbabker closed this as completed May 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants