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

Error templates #992

Closed
1 of 3 tasks
ghost opened this issue Jan 7, 2024 · 1 comment · Fixed by #993
Closed
1 of 3 tasks

Error templates #992

ghost opened this issue Jan 7, 2024 · 1 comment · Fixed by #993
Milestone

Comments

@ghost
Copy link

ghost commented Jan 7, 2024

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Application Skeleton Version: 5.0.4.

What happened

Error templates use $error->params which are protected. It would be better to use $error->errorInfo maybe...

templates/Error/error400.php line 27, 29
templates/Error/error400.php line 27, 29

@dereuromark
Copy link
Member

See #970 also

@markstory markstory added this to the 5.x milestone Jan 8, 2024
ADmad added a commit that referenced this issue Feb 21, 2024
With debug enabled the WebExceptionRenderer switches the template to pdo_error.php,
so having checks for SQL query related stuff in debug mode is redundant.

Refs #970, closes #992.
ADmad added a commit that referenced this issue Feb 21, 2024
With debug enabled the WebExceptionRenderer switches the template to pdo_error.php,
so having checks for SQL query related stuff in debug mode is redundant.

Refs #970, closes #992.
ADmad added a commit that referenced this issue Feb 21, 2024
With debug enabled the WebExceptionRenderer switches the template to pdo_error.php in case
of a PDOException, so having checks for SQL query related stuff in debug mode is redundant.

Refs #970, closes #992.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants