"Show as Feed" Returns an Empty Page

  • [ ] I’m using stock docker compose setup, unmodified.
  • [ ] I’m using docker compose setup, with modifications (modified .yml files, third party plugins/themes, etc.) - if so, describe your modifications in your post. Before reporting, see if your issue can be reproduced on the unmodified setup.
  • [ ] I’m not using docker on my primary instance, but my issue can be reproduced on the aforementioned docker setup and/or official demo.

None of the above. My hosting provider does not allow docker containers under my current plan, and I do not have the means to run docker elsewhere at the moment (although I hope to soon). When I try to run the official demo, I get an error about SELF_URL_PATH not being set correctly.


When creating a URL via the “Show as feed” function, what I get back is just a page with the word “Error”, as shown in the image below. This occurs regardless of which feed (or combination of feeds) I want to make the new feed from.

Screenshot_2022-07-29_15-40-10

The rest of TT-RSS appears to be working without issue.

  1. Open up TT-RSS and select any feed or category.
  2. Click the “Show as feed” button.
  3. Open the generated URL in a new browser window. This happens in any browser.
  • Tiny Tiny RSS version (including git commit id): v21.01-cba3137
  • Platform (i.e. Linux distro, Docker, PHP, PostgreSQL, etc) versions:
    Not sure about the Linux distro. Whatever Bluehost uses. I think it’s CentOS or Red Hat. Most of the commands used to determine Linux distros don’t work on my share. The best I was able to do was get this result from cat /proc/version:

Linux version 4.19.150-76.ELK.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)) #1 SMP Wed Oct 7 01:33:43 CDT 2020

PHP is 8.0.16. MySQL database is 5.7.23-23 - Percona Server (GPL), Release 23, Revision 500fcf5.

you need to either curl this page or view source it because a screenshot that says “Error” doesn’t give any information to go on.

also, check tt-rss event log. if there’s nothing there, you’ll need to get to httpd/php error logs somehow.

oh, didn’t notice your mentioning the demo being broken. i’ll try to fix it today.

e: the demo should be working now.

Thanks! The demo is working, and the issue is not reproducible on the demo. “Show as feed” there seems to be working fine.

A “view source” on the error page just returns the word “Error”:
Screenshot_2022-07-30_20-14-24

There’s an error_log file that contains nothing new when I refresh the erroneous webpage. I’m still pretty green, so I’m not sure if that’s the tt-rss event log or the PHP error log. I found the web server error logs for my share, but nothing appears there, either, when I refresh the page.

tt-rss event log is in preferences → system.

Ah, okay. Here’s what the event log shows when I pull up one of the generated feeds:

MiniTemplator error: Template not valid.
1. lib/MiniTemplator.class.php(912): trigger_error(MiniTemplator error: Template not valid.)
2. lib/MiniTemplator.class.php(707): triggerError(Template not valid.)
3. lib/MiniTemplator.class.php(698): generateOutputPage()
4. classes/handler/public.php(175): generateOutputToString(Error)
5. classes/handler/public.php(351): generate_syndicated_feed(-3, , , atom, , , )
6. public.php(50): rss()

Remote IP: 47.14.227.46
Request URI: /tt-rss/public.php?op=rss&id=-3&is_cat=0&q=&key=g6jbcc62e4375f00b4c
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0

This error gets generated a LOT with some variations:

MiniTemplator error: Template not valid.
1. lib/MiniTemplator.class.php(912): trigger_error(MiniTemplator error: Template not valid.)
2. lib/MiniTemplator.class.php(606): triggerError(Template not valid.)
3. classes/handler/public.php(174): addBlock(feed)
4. classes/handler/public.php(351): generate_syndicated_feed(-3, , , atom, , , )
5. public.php(50): rss()

Remote IP: 47.14.227.46
Request URI: /tt-rss/public.php?op=rss&id=-3&is_cat=0&q=&key=g6jbcc62e4375f00b4c
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0

MiniTemplator error: Template not valid.
1. lib/MiniTemplator.class.php(912): trigger_error(MiniTemplator error: Template not valid.)
2. lib/MiniTemplator.class.php(552): triggerError(Template not valid.)
3. classes/handler/public.php(167): setVariable(ARTICLE_OG_IMAGE, )
4. classes/handler/public.php(351): generate_syndicated_feed(-3, , , atom, , , )
5. public.php(50): rss()

Remote IP: 47.14.227.46
Request URI: /tt-rss/public.php?op=rss&id=-3&is_cat=0&q=&key=g6jbcc62e4375f00b4c
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0

MiniTemplator error: Template not valid.
1. lib/MiniTemplator.class.php(912): trigger_error(MiniTemplator error: Template not valid.)
2. lib/MiniTemplator.class.php(552): triggerError(Template not valid.)
3. classes/handler/public.php(162): setVariable(ARTICLE_ENCLOSURE_LENGTH, )
4. classes/handler/public.php(351): generate_syndicated_feed(-3, , , atom, , , )
5. public.php(50): rss()

Remote IP: 47.14.227.46
Request URI: /tt-rss/public.php?op=rss&id=-3&is_cat=0&q=&key=g6jbcc62e4375f00b4c
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0

And so on. Here’s the one at the bottom of the event_log (FYI, I cleared the log right before refreshing the feed page):

MiniTemplator error: Undefined block name "feed" in $EndBlock command in template at offset 1305.
1. lib/MiniTemplator.class.php(912): trigger_error(MiniTemplator error: Undefined block name "feed" in $EndBlock command in template at offset 1305.)
2. lib/MiniTemplator.class.php(357): triggerError(Undefined block name "feed" in $EndBlock command in template at offset 1305.)
3. lib/MiniTemplator.class.php(303): processEndBlockCmd( feed )
4. lib/MiniTemplator.class.php(282): processTemplateCommand( $EndBlock feed )
5. lib/MiniTemplator.class.php(217): parseTemplateCommands()
6. lib/MiniTemplator.class.php(190): parseTemplate()
7. lib/MiniTemplator.class.php(178): setTemplateString(nBlock feed -->
<feed xmlns="http://www.w3.org/2005/Atom">
<title>${FEED_TITLE}</title>
<generator uri="http://tt-rss.org/">Tiny Tiny RSS/${VERSION}</generator>
<updated>${ARTICLE_UPDATED_ATOM}</updated>
<id>${FEED_URL}</id>
<link href="${FEED_URL}" rel="s...)
8. classes/templator.php(15): readTemplateFromFile(templates/generated_feed.txt)
9. classes/handler/public.php(84): readTemplateFromFile(generated_feed.txt)
10. classes/handler/public.php(351): generate_syndicated_feed(-3, , , atom, , , )
11. public.php(50): rss()

Remote IP: 47.14.227.46
Request URI: /tt-rss/public.php?op=rss&id=-3&is_cat=0&q=&key=g6jbcc62e4375f00b4c
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0

Assuming you’re using a tt-rss version from the past ~2 years, You might want to double-check that templates/generated_feed.txt matches tt-rss/generated_feed.txt at master - tt-rss - Tiny Tiny RSS .

AHA! That file was the problem. It is the latest version, but the first one-and-a-half lines of the file had been deleted, which was creating a syntax error. No clue how that happened (I don’t recall making any edits to that file recently), but filling in the missing code fixed the problem.

Thanks to everybody who helped! I greatly appreciate it! :grin: