No Code Attached Yet
avatar conseilgouz
conseilgouz
20 Jul 2022

Steps to reproduce the issue

Create a Feed display module.
Enter https://www.joomla.org/announcements.feed?type=rss in Feed URL parameter
Enter Sidebar-right as position (using cassiopeia template)

Expected result

Display Feed infos.

Actual result

Feed display module shows "Feed not found" error in all cases.

System information (as much as possible)

Joomla 4.2 RC1
PHP 8.1

Additional comments

Seems to be related to fix #38095
Librairies/src/Feed/Parser/RssParser.php : line 355 makes RSS reader point to far in RSS file.

avatar conseilgouz conseilgouz - open - 20 Jul 2022
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jul 2022
avatar conseilgouz
conseilgouz - comment - 20 Jul 2022

maybe same issue in AtomParser.php

avatar conseilgouz
conseilgouz - comment - 20 Jul 2022

Nope : Atom is OK

avatar richard67
richard67 - comment - 20 Jul 2022

Seems to be related to fix #38095
Librairies/src/Feed/Parser/RssParser.php : line 355 makes RSS reader point to far in RSS file.

@wilsonge Could you have a look?

avatar conseilgouz
conseilgouz - comment - 20 Jul 2022

Atom Parser seemed to be ok, but it is not : $this->stream->getAttribute('version') is always empty.

In RssParser.php and AtomParser.php, when calling initialise function, XML reader is already on rss or feed record due to feedfactory.php lines 68 to 77 (skip ahead to the root node).
In both cases, $this->moveToNextElement() is pointing to next element, so $this->stream->getAttribute('version') is always empty.
In RssParser.php, calling $this->moveToNextElement('channel') moves XML reader to end of the file, causing empty file message.
In AtomParser.php, moveToNextElement being done earlier (line 194), everything seemed to be ok (except $this->version).

avatar richard67
richard67 - comment - 20 Jul 2022

Closing as having a pull request. See #38312

avatar richard67 richard67 - change - 20 Jul 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-07-20 17:14:37
Closed_By richard67
avatar richard67 richard67 - close - 20 Jul 2022

Add a Comment

Login with GitHub to post a comment