Package: tt-rss
Version: 21~git20210204.b4cbc79+dfsg-1
Severity: serious
Since upgrade from php packages 7.4 to 8.1, tt-rss is unusable. Logs
contain several occurrences of:
[Sat Nov 20 17:11:06.950555 2021] [php:error] [pid 2895803] [client
127.0.0.1:40988] PHP Fatal error: Uncaught ValueError:
mb_convert_encoding(): Argument #2 ($to_encoding) must be a valid
encoding, "" given in
/usr/share/php/php-php-gettext/gettext.inc:181\nStack trace:\n#0
/usr/share/php/php-php-gettext/gettext.inc(181):
mb_convert_encoding()\n#1
/usr/share/php/php-php-gettext/gettext.inc(278): _encode()\n#2
/usr/share/php/php-php-gettext/gettext.inc(285): _gettext()\n#3
/usr/share/tt-rss/www/include/functions.php(102): __()\n#4
/usr/share/tt-rss/www/include/functions.php(141): get_translations()\n#5
/usr/share/tt-rss/www/classes/userhelper.php(124): startup_gettext()\n#6
/usr/share/tt-rss/www/index.php(31): UserHelper::login_sequence()\n#7
{main}\n thrown in /usr/share/php/php-php-gettext/gettext.inc on line 181
I'm not sure if the culprit is tt-rss or php-php-gettext package.
On https://www.php.net/manual/en/function.mb-convert-encoding.php:
8.0.0 mb_convert_encoding() will now throw a ValueError when
to_encoding is passed an invalid encoding.
So, it really is a misusage of mb_convert_encoding() either by tt-rss or
by php-php-gettext.
php-php-gettext: 1.0.12-4