news icon indicating copy to clipboard operation
news copied to clipboard

RSS feed not working in version 11

Open emileblume opened this issue 1 year ago • 4 comments

Bug Report

Current Behaviour The page that should show the XML-feed (/rss.xml) stays empty

Expected behaviour/output The RSS feed should show

Environment

  • TYPO3 version(s): 11.5.33 / 11.5.34
  • news version: 11.2.0 / 11.3.0
  • PHP 7.4 / 8.2
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: Sonoma 14.3

Possible Solution

Additional context When I downgrade news to version 10.0.3 the RSS feed re-appears

emileblume avatar Jan 30 '24 09:01 emileblume

Hello

I came here because i stumbled upon the same behavior after updating my version of news

After some search i noticed the issue came from my TypoScript

I was previously using the default configuration from the documentation here https://docs.typo3.org/p/georgringer/news/10.0/en-us/Tutorials/BestPractice/Rss/Index.html#id3

It appears that with news version 10.0.x plugins are still using the list_type value of the tt_content to define the plugin pageNewsRSS.10.select.where = colPos=0 AND list_type = "news_pi1"

However with news version > 11.x.x plugins are now using the CType instead Thus, the TypoScript needs to be slightly updated pageNewsRSS.10.select.where = colPos=0 AND CType = "news_pi1"

My plugins were updated, but not my TypoScript template, and the change was so small i didn't see it. By just changing this part my RSS feeds started working again (Also make sure you have the Generic.html template instead of List.html in the fluid_styled_content templates folder)

I've checked the documentation, the example given in the documentation for version 11.0 is incorrect, tho it's fixed in the version 11.1 and onwards

Hope this is clear enough and can help you if your problem is the same as mine

marvinm96 avatar Jan 30 '24 11:01 marvinm96

@marvinm96 Thanks for the pointer. Completely forgot about this change. I managed to restore my feeds by calling the new plugin in a slightly different way though. Would be good if the documentation for this was updated

emileblume avatar Jan 30 '24 12:01 emileblume

but is fine in the docs, https://docs.typo3.org/p/georgringer/news/11.3/en-us/Tutorials/BestPractice/Rss/Index.html#automatic-rss-feeds-based-on-plugins isnt it?

georgringer avatar Jan 31 '24 10:01 georgringer

@georgringer Based on the suggestion from @marvinm96 it should be but for me this isn't working. I will keep using my solution

emileblume avatar Jan 31 '24 10:01 emileblume