Hi, I‘ve had my RSS feed implemented & running without changes for many years. It recently stopped working and I noticed that there is no <?xml ?> tag anymore.
Anything in the PHP error logs? Couldn’t spot anything that directly looks off. On getkirby.com we are setting headers rather via $kirby->response()->header() but I also don’t think your way should be necessarily wrong.
Have you tried moving the <?xml> part from the echo to just after ?> as regular XML? Since the <rss> part seems to end up in the output somehow.
Hi & thanks for your help! I checked the error log for PHP and Apache as well as the access log. There is nothing wrong in there.
I tried moving the XML part to after the PHP, but it is not shown there either. I guess because of the short tags of the <?xml>.
In my feedreader, the last working entry was just before I upgraded from Kirby 4.4.1 to 4.5.0., so that seems to be the upgrade that introduced this error.
As I was digging through the commit with the Kirby upgrade, I realized that I installed kirby-minify-html at the same time – after removing it, it seems to work. At least I see the header and the <?xml> again.
Will open an issue in that project and live without it for now.