Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Feed plugin : twig template removing `</link>`

Solved by unefamilleavelo View solution

Started by unefamilleavelo 2 years ago · 6 replies · 287 views
2 years ago

Hi,

I have installed the "feed" pluging but generated rss feed is invalid. After analyzing, the twig template contains this code:

TWIG
<link>{{ page.url(true) }}</link>

The resulting output is missing the </link> string. It looks like some process is removing it. Any other string is fine, but </link> is automatically removed after some parsing. How can I fix this please ?

2 years ago

Try disabling other plugins and see if the issue is still there

2 years ago

Thanks, I have tried that, one by one, but none of the other plugins seems to impact this.

2 years ago

I would try to debug the "feed" plugin itself in such case. Or report the issue on plugins GitHub repo

2 years ago

Backlinking is always appreciated in such cases. On both sides

2 years ago Solution

I have started a brand new instance of Grav, added all plugings, set the parameters, copied all pages. Everything works fine. I still can't figure out what was wrong with the previous instance but I will close this thread.

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 7 days ago
0 117 7 days ago
General · by lynbor, 1 month ago
3 444 2 weeks ago
General · by lynbor, 3 weeks ago
7 563 2 weeks ago
General · by Harry, 2 weeks ago
0 162 2 weeks ago
General · by Old Man Umby, 1 month ago
2 309 4 weeks ago