? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
21 Jun 2019

Pull Request for Issue #25286 .

Summary of Changes

load user.css

Testing Instructions

create a user.css in the css folder of protostar
generate a 404

Expected result

page loads user.css

Actual result

no reference to user.css

Documentation Changes Required

none

avatar brianteeman brianteeman - open - 21 Jun 2019
avatar brianteeman brianteeman - change - 21 Jun 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jun 2019
Category Front End Templates (site)
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Jun 2019

guess its for #25286

avatar brianteeman brianteeman - change - 21 Jun 2019
The description was changed
avatar brianteeman brianteeman - edited - 21 Jun 2019
avatar brianteeman
brianteeman - comment - 21 Jun 2019

@franz-wohlkoenig yes - I updated op. created the pr from my phone so easy to mistype

avatar Giuse69
Giuse69 - comment - 21 Jun 2019

Maybe adding a check if user.css exists before including it?

avatar brianteeman
brianteeman - comment - 26 Jun 2019

Updated branch to make drone run

avatar brianteeman brianteeman - change - 26 Jun 2019
Labels Added: ?
avatar uGE70 uGE70 - test_item - 30 Jun 2019 - Tested successfully
avatar uGE70
uGE70 - comment - 30 Jun 2019

I have tested this item successfully on 774be4f

user.css is included in 404 error page after applying patch. Thanks.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25289.

avatar richard67 richard67 - test_item - 2 Jul 2019 - Tested unsuccessfully
avatar richard67
richard67 - comment - 2 Jul 2019

I have tested this item ? unsuccessfully on 774be4f

With this PR applied, I get a 404 for the user.css when watching network traffic in developer tools of browser. It needs a check if the file exists before including it. This is different to the index.php and the offline.php, where JHtml::_('stylesheet', 'user.css' ... is used, which does that job for us.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25289.

avatar uGE70
uGE70 - comment - 2 Jul 2019

I am a new to these testings, so I might have missed the mark, be patient, but I confirm the user.css is loaded after applying the patch and the site-title class rule I defined as an example is changing the font-size on the 404 error page.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25289.

avatar richard67
richard67 - comment - 2 Jul 2019

And what if the user.css does not exist, which is the case on a standard Joomla 3.9.x? In this case you get an additional 404.

avatar uGE70
uGE70 - comment - 2 Jul 2019

Understood. I also get a second 404 when user.css is not included.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25289.

avatar brianteeman
brianteeman - comment - 2 Jul 2019

made a small change - please retest

avatar richard67 richard67 - test_item - 2 Jul 2019 - Tested successfully
avatar richard67
richard67 - comment - 2 Jul 2019

I have tested this item successfully on c51af2a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25289.

avatar richard67
richard67 - comment - 2 Jul 2019

I have tested this item successfully on c51af2a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25289.

avatar uGE70 uGE70 - test_item - 2 Jul 2019 - Tested successfully
avatar uGE70
uGE70 - comment - 2 Jul 2019

I have tested this item successfully on c51af2a

If user.css is included, the css rules are successfully added to the 404 page.
If user.css is missing, it doesn't generate another 404 error code.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25289.

avatar viocassel viocassel - test_item - 2 Jul 2019 - Tested successfully
avatar viocassel
viocassel - comment - 2 Jul 2019

I have tested this item successfully on c51af2a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25289.

avatar alikon alikon - change - 2 Jul 2019
Status Pending Ready to Commit
avatar alikon
alikon - comment - 2 Jul 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25289.

avatar richard67
richard67 - comment - 3 Jul 2019

@Quy The other pages use JHTML to add head links while error.php adds them directly. JHTML seems to include a check if the file exists, therefore there no extra check.

avatar richard67
richard67 - comment - 3 Jul 2019

I think it is by design that the error page doesn’t use JHTML.

avatar HLeithner
HLeithner - comment - 3 Jul 2019

For consistency please use file_exists

avatar brianteeman brianteeman - change - 3 Jul 2019
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2019-07-03 13:04:39
Closed_By brianteeman
Labels Added: ?
avatar brianteeman brianteeman - close - 3 Jul 2019

Add a Comment

Login with GitHub to post a comment