Fixed Rss feed parser produces errors on items without the title tag


Affected version
Hello, it appears the XF feed parser has issues with entries that do not include title tags: documents that either title or description must be present. The problematic entries have description though. Here is the error that is being reported:

Exception: Error posting feed entry for feed 7: Please enter a valid title. src/XF/Service/Feed/Feeder.php:128
Generated by: Unknown account Dec 5, 2021 at 2:23 PM
Stack trace
#0 src/XF.php(618): XF\Service\Feed\Feeder->XF\Service\Feed\{closure}()
#1 src/XF/Service/Feed/Feeder.php(143): XF::asVisitor(Object(XF\Entity\User), Object(Closure))
#2 src/XF/Service/Feed/Feeder.php(113): XF\Service\Feed\Feeder->importEntry(Array)
#3 src/XF/Job/Feeder.php(44): XF\Service\Feed\Feeder->importEntries()
#4 src/XF/Job/Manager.php(260): XF\Job\Feeder->run(8)
#5 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#6 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#7 job.php(43): XF\Job\Manager->runQueue(false, 8)
#8 {main}
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.9).

Change log:
Allow feed reader entries without a title to fallback to the description, and vice-versa
There may be a delay before changes are rolled out to the XenForo Community.
Top Bottom