[5.0] 500 error when 404 and debug on [BLOCKER]#41880
[5.0] 500 error when 404 and debug on [BLOCKER]#41880brianteeman wants to merge 1 commit intojoomla:5.0-devfrom
Conversation
Enable debug and then trigger a 404 on the frontend Instead of the regular 404 page we get a 404 and a 500 This is caused by the line commented out in this PR. That line was added by joomla#35655 Sorry I can't contribute a _real_ solution as I don't understand the code. I was just able to locate the source
|
So I understand right that this PR is not a fix but just for demonstrating the issue? If yes: Maybe it would have been safer to use an issue and describe the code change for the test in that issue? |
|
@brianteeman Please remove these 2 lines, and we will call it a fix, and please make it to joomla-cms/plugins/system/debug/src/Extension/Debug.php Lines 308 to 309 in d5ead74 |
|
@brianteeman I will take a look in 1h, we close the session in debug plugin in order to collect the queries related to session close. |
|
@Denitz plugin should not close session, it is wrong to me |
|
@brianteeman @Fedik If we don't close the session, we won't see the queries from the session handler. I've create PR for 4.4-dev, please check #41893 |
Enable debug and then trigger a 404 on the frontend
Instead of the regular 404 page we get a 404 and a 500
This is caused by the line commented out in this PR.
That line was added by #35655
Sorry I can't contribute a real solution as I don't understand the code. I was just able to locate the source and provide this PR to showcase the problem