?
avatar PhilETaylor
PhilETaylor
4 Jul 2020

Steps to reproduce the issue

install Joomla 4
once installed turn off the mysql server (or make a new typo in the mysql credentials in /configuration.php)

Expected result

In Joomla 3 we just got white screen of death with "Error" on it.

In Joomla 4 we have the opportunity to make the generic error page beautiful - or at least allow the text to be translated/edited by Super Admins

Actual result

The default Symfony error page is displayed

Screenshot 2020-07-04 at 15 48 03

avatar PhilETaylor PhilETaylor - open - 4 Jul 2020
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jul 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Jul 2020
avatar PhilETaylor PhilETaylor - change - 4 Jul 2020
Title
[4.0] Generic error message too techie...
[4.0] Replace Generic error message with a shiny one.
avatar PhilETaylor PhilETaylor - edited - 4 Jul 2020
avatar PhilETaylor PhilETaylor - change - 4 Jul 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 4 Jul 2020
avatar PhilETaylor PhilETaylor - change - 4 Jul 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 4 Jul 2020
avatar PhilETaylor
PhilETaylor - comment - 4 Jul 2020

Ok looks like its not possible to overwrite the default Symfony error page just yet as its hard coded into the symfony/error-handler, I'll work on that upstream first so that its possible in the future.

avatar PhilETaylor PhilETaylor - change - 4 Jul 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-07-04 14:59:20
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 4 Jul 2020
avatar PhilETaylor
PhilETaylor - comment - 4 Jul 2020

Upstream Submitted. symfony/symfony#37492

avatar PhilETaylor
PhilETaylor - comment - 6 Jul 2020

Upstream PR Approved and awaiting merging.... will be released with Symfony 5.2 in November, before that I'll PR for Joomla to use that new feature of the symfony/error-handler to display a customised and translatable error page instead of the Symfony default.

avatar PhilETaylor PhilETaylor - change - 7 Jul 2020
Status Closed New
Closed_Date 2020-07-04 14:59:20
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - reopen - 7 Jul 2020
avatar PhilETaylor
PhilETaylor - comment - 7 Jul 2020

This has now been merged upstream for inclusion in Symfony 5.2 - this means Joomla can now have a customisable, translatable error page ??

avatar ReLater
ReLater - comment - 7 Jul 2020

The question for me is "How?". Or will you provide a pr then?

avatar PhilETaylor
PhilETaylor - comment - 7 Jul 2020

Well between now and November we need to add one single line to joomla (as per my example in the readme of the upstream pr) next to the line enabling the symfony error handler and point that to a custom system template that contains very little logic in it (based on views/error.twig.html), and some way of translating it without assuming anything is loaded - as this template is only ever used when something drastic is wrong and therefore cannot assume anything is booted.

It would be nice if this could also be customised without losing changes on joomla upgrade - maybe check for a custom version first and fall back to joomla provided version of the template?

For look and fee I was thinking to just copy the template used when you checkout from git without building your assets and just make it more red than blue.

We could ship joomla 4 with the dev-master release of symfony/error-handler to get this feature now or else we would need to wait for symfony 5.2 to be released in November

Sent from my iPhone

On 7 Jul 2020, at 15:22, ReLater notifications@github.com wrote:


The question for me is "How?". Or will you provide a pr then?


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.

avatar PhilETaylor PhilETaylor - change - 8 Jul 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-07-08 13:21:21
Closed_By PhilETaylor
avatar PhilETaylor
PhilETaylor - comment - 8 Jul 2020

PR #30056

avatar PhilETaylor PhilETaylor - close - 8 Jul 2020

Add a Comment

Login with GitHub to post a comment