-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Protostar - Error page lacks needed elements in the head #7349
Comments
Error pages are rendered by I know that's not very helpful, but the long and short is Joomla's error handling (and the core itself) needs a major overhaul to support more than just HTML pages without hacky workarounds. |
This being the case, I think it would be better if we don't load any module in error.php... |
I don't know if there's a good "right" answer for the core templates. It's totally feasible to render modules on the error page if you handle calling the renderer manually AND put all the needed references into the Maybe that's a viable short term option. But really, fixing the error handler needs to be on someone's radar for improvement and not just swept under the rug because it's too difficult or too inconvenient for someone to take on. |
Fixing the "Language Switcher" is quite easy: it is enough to load mod_languages's template.css and that would not hurt even mono-lingual sites that do not publish the switcher. Problem is that the switcher doesn't have a dedicated position: it normally shares Other positions currently published in Protostar All of the above is of course feasible only if deemed non B/C breaking... |
Steps to reproduce the issue
Expected result
Actual result
Additional comments
This is due to the lack of the
<jdoc:include type="head" />
directive in Protostarerror.php
and hence the lack of various CSS and JS dependencies.Unhappily using
<jdoc:include type="head" />
in error.php seems to be impossible, so I think we should either:<jdoc:include type="head" />
(or something equivalent...) to work in error.php tooThe text was updated successfully, but these errors were encountered: