? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
26 May 2017

Pull Request for Issue #16266.

Summary of Changes

Ensure b/c and ensure mime type is set on XML Stylesheets in RSS Feeds without PHP undefined index error.

Steps to replicate,

  • Edit /libraries/joomla/document/feed.php
  • On Line 206 (or anywhere in the render function, this is just to break it) add code:
// 3/4 style with no options or attribs
$this->addStyleSheet('/media/system/css/modal.css');

or

// 3 with mime specified
$this->addStyleSheet('/media/system/css/modal.css','text/css');

or

// Joomla 4 with type specified
$this->addStyleSheet('/media/system/css/modal.css',array(),array('type'=>'text/css'));
  • View any RSS feed created by your Joomla site (mine: E.g.: index.php?option=com_content&view=featured&Itemid=109&format=feed&type=rss)

  • see error message in the RSS of:

screen shot 2017-05-26 at 22 18 05

Then Apply this PR,

Expected result

No error

@810

avatar PhilETaylor PhilETaylor - open - 26 May 2017
avatar PhilETaylor PhilETaylor - change - 26 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 May 2017
Category Libraries
avatar PhilETaylor PhilETaylor - change - 26 May 2017
The description was changed
avatar PhilETaylor PhilETaylor - edited - 26 May 2017
avatar brianteeman
brianteeman - comment - 26 May 2017

what change in 3.7 introduced this "error"? Surely we should be reviewing what broke things before coding solutions. Perhaps the thing thhat broke this broke something else as well which hasnt been reported yet

avatar PhilETaylor PhilETaylor - change - 26 May 2017
Labels Added: ?
avatar PhilETaylor
PhilETaylor - comment - 26 May 2017
avatar PhilETaylor
PhilETaylor - comment - 26 May 2017

The whole method signature changed in Joomla 3.0

If @810 is actually complaining the Kunena does this, then maybe they should also change their method calls to addStyleSheet making sure they pass the correct parameters for the correct signature in Joomla 3 +

avatar PhilETaylor
PhilETaylor - comment - 26 May 2017

In fact looking at the comments:

* @deprecated 4.0  The (url, mime, media, attribs) method signature is deprecated, use (url, options, attributes) instead.
avatar PhilETaylor PhilETaylor - change - 26 May 2017
The description was changed
avatar PhilETaylor PhilETaylor - edited - 26 May 2017
avatar 810
810 - comment - 26 May 2017

I have tested this item successfully on 3593f5c


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

avatar 810 810 - test_item - 26 May 2017 - Tested successfully
avatar 810
810 - comment - 26 May 2017

We will change it before J4.

thnx for the fix

avatar PhilETaylor
PhilETaylor - comment - 26 May 2017

Actually I have changed this PR to a different approach to fix the logic in the change for b/c made last year. This works better as it only effects the b/c block and not two different files.

avatar PhilETaylor PhilETaylor - change - 26 May 2017
The description was changed
avatar PhilETaylor PhilETaylor - edited - 26 May 2017
avatar PhilETaylor PhilETaylor - change - 26 May 2017
The description was changed
avatar PhilETaylor PhilETaylor - edited - 26 May 2017
avatar 810
810 - comment - 26 May 2017

I have tested this item successfully on f6008d9


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

avatar 810 810 - test_item - 26 May 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 May 2017

I have tested this item successfully on f6008d9


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 27 May 2017 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 May 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 May 2017

RTC after two successful tests.

avatar rdeutz rdeutz - change - 27 May 2017
Labels Added: ?
avatar rdeutz rdeutz - change - 27 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-27 17:48:49
Closed_By rdeutz
avatar rdeutz rdeutz - close - 27 May 2017
avatar rdeutz rdeutz - merge - 27 May 2017

Add a Comment

Login with GitHub to post a comment