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
Strange side effects of 5.0.7 #17655
Comments
Looking into what those extra logs are it seems super weird ones:
I did create the actual templates in |
So the issue was already there before, just not visible without the logs being written. If we allow Admin/ ones to be looked for first, the fallback should still be the former ones (normal, without prefix) I imagine. |
A similar weird issue exists if you use the FormProtection Component in the initialize() method.
my error controller looks like:
I solved this by changing the ErrorController to:
and my AppController to:
Is there a better to solve this or is this the only solution if I want to use my custom AppController? |
There isn't a significantly better solution. If you have class ErrorController extends AppController
{
public function initialize(): void
{
parent::initialize();
$this->components()->unload('FormProtection')
}
public function beforeRender($event)
{
$this->viewBuilder()->setTemplatePath('Error');
}
} I prefer this solution as it doesn't introduce additional global state. |
Description
https://github.com/dereuromark/CakePHP-DatabaseLog/actions/runs/8582848427/job/23521405236
Those started to fail with the release of 5.0.7 now
Nothing changed, it also only seems to happen for SQlite
From the changes I cannot directly see how this makes sense.
5.0.6...5.0.7
But it seems there is some unintended side effect here in the changes.
CakePHP Version
5.0.7
PHP Version
8.2
The text was updated successfully, but these errors were encountered: