I think it’s time to finally drop PHP 5.6 and start requiring PHP 7 (released 2015). Working around PHP 8 E_WARNING changes in a readable manner is a good enough excuse for me.
First changeset with PHP8 changes is available for testing here:
Many leftover warnings are likely there still but their amount shouldn’t be overwhelming anymore. I’ve also fixed several minor bugs while I was at it, largely thanks to new and improved warnings.
One note that al2gt() and in general accept-to-gettext.php is frankly a pile of shit. I don’t really want to rewrite the entirety of it, so translation language guessing is currently limited to PHP7.
Unless there are major problems, expect this being merged soon™. If you’re still using PHP 5, well, too bad.
[10:08:56/10] Spawned child process with PID 24 for task 0.
sh: /usr/bin/php: not found
[10:08:56/10] Spawned child process with PID 26 for task 1.
sh: /usr/bin/php: not found
deleting config.php (and letting it regenerate during next startup) solved the problem.
updated to latest php8 docker, i get these warning and feeds stopped updating
web:
?08/Feb/2021:14:58:02 +0000 [ERROR 0 /tt-rss/backend.php] PHP message: PHP Warning: Array to string conversion in /var/www/html/tt-rss/include/errorhandler.php on line 24PHP message:
updater:
PHP Warning: Array to string conversion in /var/www/html/tt-rss/include/errorhandler.php on line 24
PHP Warning: Undefined array key "uid" in /var/www/html/tt-rss/classes/logger/sql.php on line 13
[15:02:56/13] Received SIGCHLD, 0 active tasks left.
[15:03:50/13] 0 active tasks, next spawn at 60 sec.
app:
[14:44:15/1723] Database schema is already at latest version.
PHP Warning: Undefined variable $_SESSION in /var/www/html/tt-rss/classes/logger/sql.php on line 13
PHP Warning: Trying to access array offset on value of type null in /var/www/html/tt-rss/classes/logger/sql.php on line 13
PHP Warning: Undefined variable $_SESSION in /var/www/html/tt-rss/classes/logger/sql.php on line 13
PHP Warning: Trying to access array offset on value of type null in /var/www/html/tt-rss/classes/logger/sql.php on line 13
id: unknown user app,
192.168.xx.xx:5432 - accepting connections,
[15:21:32/13] Spawn interval: 120 sec,
[15:21:32/13] Installing shutdown handlers,
[15:21:32/13] Spawned child process with PID 15 for task 0.,
[15:21:32/13] Spawned child process with PID 17 for task 1.,
sh: /usr/bin/php: not found,
sh: /usr/bin/php: not found,
[15:21:33/13] Child process with PID 15 seems active but lockfile is unlocked.,
[15:21:33/13] Child process with PID 17 reaped.,
[15:21:33/13] Received SIGCHLD, 0 active tasks left.,
[15:21:33/13] Received SIGCHLD, 0 active tasks left.,
now it says Incorrect username or password, cant login
app log:
[15:54:31/1725] Lock: update.lock
[15:54:31/1725] Checking for updates (pgsql)...
[15:54:31/1725] Database schema is already at latest version.
PHP Warning: Undefined variable $_SESSION in /var/www/html/tt-rss/classes/logger/sql.php on line 13
PHP Warning: Trying to access array offset on value of type null in /var/www/html/tt-rss/classes/logger/sql.php on line 13
PHP Warning: Undefined variable $_SESSION in /var/www/html/tt-rss/classes/logger/sql.php on line 13
PHP Warning: Trying to access array offset on value of type null in /var/www/html/tt-rss/classes/logger/sql.php on line 13
* branch master -> FETCH_HEAD
Already up to date.
NOTICE: extension "pg_trgm" already exists, skipping
schema_version
----------------
140
(1 row)
PHP Warning: Undefined array key 8 in /var/www/html/tt-rss/classes/pluginhost.php on line 143
PHP Warning: Undefined array key 50 in /var/www/html/tt-rss/classes/pluginhost.php on line 147
PHP Warning: Undefined array key 1 in /var/www/html/tt-rss/classes/pluginhost.php on line 143
PHP Warning: Undefined array key 50 in /var/www/html/tt-rss/classes/pluginhost.php on line 147
PHP Warning: Undefined array key 37 in /var/www/html/tt-rss/classes/pluginhost.php on line 143
PHP Warning: Undefined array key 50 in /var/www/html/tt-rss/classes/pluginhost.php on line 147
[15:54:31/1725] Lock: update.lock
[15:54:31/1725] Checking for updates (pgsql)...
[15:54:31/1725] Database schema is already at latest version.
PHP Warning: Undefined variable $_SESSION in /var/www/html/tt-rss/classes/logger/sql.php on line 13
PHP Warning: Trying to access array offset on value of type null in /var/www/html/tt-rss/classes/logger/sql.php on line 13
PHP Warning: Undefined variable $_SESSION in /var/www/html/tt-rss/classes/logger/sql.php on line 13
PHP Warning: Trying to access array offset on value of type null in /var/www/html/tt-rss/classes/logger/sql.php on line 13
[08-Feb-2021 15:54:31] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[08-Feb-2021 15:54:31] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
stopped containers
From https://git.tt-rss.org/fox/ttrss-docker-compose
* branch dynamic-php8 -> FETCH_HEAD
Already up to date.
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
but in app container log i see this, which i posted earlier
updating tt-rss source in /var/www/html/tt-rss from https://git.tt-rss.org/fox/tt-rss.git...
From https://git.tt-rss.org/fox/tt-rss
* branch master -> FETCH_HEAD
Updating 983a874dd..20b56b5b2
I am seeing PHP warnings. (shown under preferences → system, indicated by a yellow triangle with an exclamation mark on the homepage)
Fehler Dateiname Meldung Benutzer Datum
E_WARNING (2) lib/jimIcon.php:107 imagecreatefromstring(): Data is not in a recognized format 19:47
E_WARNING (2) lib/jimIcon.php:107 imagecreatefromstring(): Data is not in a recognized format 19:29
yeah i’m afraid GD is “special” in that it absolutely ignores all error controls in php and just shits out its useless warning which is impossible to hide. i’m honestly not sure what to do about it.
e: the warning is generated when favicon image can’t be loaded so it’s nothing to worry about.