Describe the problem you’re having:
I can’t add any new rss-feeds. It doesn’t matter if I try to add it from the dropdown menu, or from the preferences. It will just load endlessly.
Uncaught TypeError: Feeds::_subscribe(): Argument #2 ($cat_id) must be of type int, string given, called in /var/www/html/tt-rss/classes/feeds.php on line 1032 and defined in /var/www/html/tt-rss/classes/feeds.php:1052
Stack trace:
#0 /var/www/html/tt-rss/classes/feeds.php(1032): Feeds::_subscribe()
#1 /var/www/html/tt-rss/backend.php(136): Feeds->add()
#2 {main}
thrown
tt-rss version (including git commit id):
v21.11-0a3a464de, docker
Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Fedora 35
fox
2
i can’t reproduce this for some reason (browser-related?) but it should be force-cast to integer regardless.
https://git.tt-rss.org/fox/tt-rss/commit/2b4ba59a79aa813f8b4f9e2b600739c6efc22ce3
thanks for reporting.
Yeah it works now, thanks 
mno
4
Using the most recent version from git (9dabfbfa1163822cca7b5412e89d646b2529028f) I have a similar issue. Subscribing to a feed via App return 500 server error. Following message is logged:
Uncaught TypeError: Argument 3 passed to Feeds::_subscribe() must be of the type string, null given, called in /var/www/ttrss/classes/api.php on line 830 and defined in /var/www/ttrss/classes/feeds.php:1052
Stack trace:
#0 /var/www/ttrss/classes/api.php(830): Feeds::_subscribe('https://samcurr...', 20, NULL, NULL)
#1 /var/www/ttrss/api/index.php(55): API->subscribeToFeed()
#2 {main}
thrown
fox
5