-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
css-bug language switcher #7812
Comments
Looks like the specific css file for the switcher is not loaded. Looking into this |
Should have read: J 3.4.4 RC2 :: Mea Culpa On 9/4/2015 2:53 PM, infograf768 wrote:
|
Went further into this and I do not think it is specifically related to 3.4.4 rc2 we get a 403 for this menu item when not logged in with correct access and, instead of being presented with a login page, we get the error page. That, for me, is the main issue. It was the same behaviour in 2.5. Using protostar |
Fully aware of the explanation. However even if the permissions are On 9/4/2015 3:28 PM, infograf768 wrote:
|
Please test the following: line 55 We will not get any more the error page, but the message and the css for the module will be loaded. :) If that is satisfactory to you, I will make a PR. |
But it does not solve the global issue when we get a 404 for example |
So this stops indeed the error message disappear and it returns simply So a yes for me Thanks 'Opa JM' -;) On 9/4/2015 3:45 PM, infograf768 wrote:
|
We still have the global issue that a css loaded by a module (in this case mod_languages) is not loaded in the error page although the code is correct: |
No it is worse. With that code the create new article link is not On 9/4/2015 3:58 PM, infograf768 wrote:
|
@gwsdesk |
JDocumentError is a different document type than JDocumentHtml. By design it appears fully intended to be a very limited HTML error page and lacks the native renderer objects to process the Changing the error type only bypasses the "issue". The way our API works, if you really want to start rendering modules in your template's error.php file, you need to be prepared to manually include all of the relevant media too. The other option is we ignore the fact that error responses should be possible in non-HTML formats and we just code JDocumentError to have a majority of the JDocumentHtml featureset, that's a pretty bad idea too. |
Does this mean in your opinion that we have no solution in the present Your guidance is highly appreciated Michael? Leo
|
A major refactoring of the error system is needed for 4.0, yes. The "dirty man's fix" for things like this is if you are loading modules in your error.php template, you'll need to manually load the relevant media also. Even for our With the refactoring, two things should happen:
|
Thanks Michael, Will bring this to the J4.0 Working Team I recently joint. On 9/4/2015 10:42 PM, Michael Babker wrote:
|
In the mean while, I will propose a patch using enqueuemessage when the error concerns JText::_('JERROR_ALERTNOAUTHOR') in frontend. This should do it. |
Sounds like a plan to me On 9/5/2015 1:21 PM, infograf768 wrote:
|
See PR here : #7824 |
Closing as we have a PR |
Frontend: Changing JError to enqueueMessage when access is not permitted (Solves partly #7812
Steps to reproduce the issue
Bug in the css of/for the language switcher for the default templates (both)
When logged on as registered user and click on the in the user menu located link "new article" it shows the correct response (non-authorized) However on Protostar the language switcher changes to a "list" layout with flags suddenly showing vertical listed and on Beez the language switcher disappears completely
See screencast
The text was updated successfully, but these errors were encountered: