bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
12 Oct 2025

Pull Request for Issue # .

Summary of Changes

Our error page contains modules, however the module renderer will crash when error happen before the Application initialization is completed. This leads to mixed error report by Symfony error handler.

Testing Instructions

Apply patch.
Add throw new \Exception('Test error'); around here

$this->createExtensionNamespaceMap();
// Perform application routines.
$this->doExecute();

But before $this->doExecute();

And then visit the site and the administration area.

Actual result BEFORE applying this Pull Request

You will get a red page of Symfony error handler.

If you have debug enabled it will show unrelated error (something about access to undefined method or kind of that) and 2 exception traces.

Expected result AFTER applying this Pull Request

You will get Joomla error page.

If you have debug enabled it also will show the error trace.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:
  • No documentation changes for docs.joomla.org needed
  • Pull Request link for manual.joomla.org:
  • No documentation changes for manual.joomla.org needed
avatar Fedik Fedik - open - 12 Oct 2025
avatar Fedik Fedik - change - 12 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Oct 2025
Category Administration Templates (admin) Libraries Front End Templates (site)
47d79c6 12 Oct 2025 avatar Fedik phpcs
avatar Fedik Fedik - change - 12 Oct 2025
Labels Added: bug PR-5.4-dev
6ba485a 12 Oct 2025 avatar Fedik typo
avatar Fedik Fedik - change - 12 Oct 2025
The description was changed
avatar Fedik Fedik - edited - 12 Oct 2025
avatar brianteeman
brianteeman - comment - 12 Oct 2025

As far as I can tell a module assigned to error-500 is still not displayed

I forced the error page with throw new \Exception('Test error', 500); and had a module published in the position error-500

avatar Fedik
Fedik - comment - 12 Oct 2025

Did you placed the Exception in the place as in the test description, before doExecute method or after?
If it was "after" then you will not see any difference.

avatar brianteeman
brianteeman - comment - 12 Oct 2025

Yes. I see the correct error page but not with the error-500 module

avatar Fedik
Fedik - comment - 12 Oct 2025

Ah sorry, I read your comment incorrectly.

Yes that is correct, there will be no error-500 module. The idea of the PR is do not render any module in such situations.
Because it is not possible at that stage of the Application, the module renderrer will throw another error because the application initialization is incomplete.

Add a Comment

Login with GitHub to post a comment