Are you using stock Docker compose setup?
yes
Describe the problem you’re having:
Filters cannot be shown on fresh install after importing OPML from previous ttrss instance.
Include steps to reproduce the problem:
- fresh install based on docker-compose
- create user
- import OPML file
- enter preferences - filters
- expected behavior: filters are being listed
- actual behavior: icon with two small arrows is being shown
tt-rss version (including git commit id):
Tiny Tiny RSS v21.06-9669bb94d © 2005-2021 Andrew Dolgov
Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Debian 10.10 (Buster) with docker 20.10.7 and docker-compose 1.29.2
Introduction
In the course of replacing my old virtual private server with a new one, I thougt now is the time to switch from the traditional setup to the only currently supported setup for ttrss based on docker-compose. While I think I understand the basic concepts of docker and docker-compose, I have to say that I have never seriously used it for production, so I don’t have any experience with this technology.
I knew how to set up a reverse proxy with nginx, so that was the first thing I did. Then I used the official guide “Dockerized tt-rss using docker-compose”: git clone, copy and edit the .env file (only TTRSS_SELF_URL_PATH needs to be changed) and then “docker-compose up --build -d”. To be honest, I had various things on my mind that could have happened (gone wrong), but I was surprised to see that it just worked. It really couldn’t have been easier.
Login with the default login credentials worked and I created a separate regular user inside ttrss (preferences, uers). With that non-admin user (Access Level: user) I then imported the opml file with my 155 feeds and my settings. Feeds started to update and over time the feed icons appeared.
The issue: filters cannot be shown
When I use the non-admin user, the list of filters cannot be displayed. When I click on preferences and then filters, I only see two small arrows that are spinning around. Trying different browsers like Opera of Chromium instead of Firefox (incognito mode, without any extensions/plugins) did not help.
The ttrss UI shows the following error in its “event log”:
Uncaught TypeError: Feeds::_get_cat_title(): Argument #1 ($cat_id) must be of type int, null given, called in /var/www/html/tt-rss/classes/pref/filters.php on line 206 and defined in /var/www/html/tt-rss/classes/feeds.php:1247
Stack trace:
#0 /var/www/html/tt-rss/classes/pref/filters.php(206): Feeds::_get_cat_title()
#1 /var/www/html/tt-rss/classes/pref/filters.php(295): Pref_Filters->_get_rules_list()
#2 /var/www/html/tt-rss/backend.php(133): Pref_Filters->getfiltertree()
#3 {main}
thrown
Any advice on how to get my usual filters back to work?