Are you using stock Docker compose setup? no, standalone without docker
If not, either reproduce this issue on the official demo or switch to Docker and see if the issue is resolved.
Describe the problem you’re having:
[02-Mar-2021 12:48:25 UTC] PHP Fatal error: Uncaught PDOException: could not find driver in /var/www/ttrss/vendor/j4mie/idiorm/idiorm.php:328
Stack trace:
#0 /var/www/ttrss/vendor/j4mie/idiorm/idiorm.php(328): PDO->__construct('sqlite::memory:', NULL, NULL, NULL)
#1 /var/www/ttrss/vendor/j4mie/idiorm/idiorm.php(311): ORM::_setup_db('default')
#2 /var/www/ttrss/classes/userhelper.php(168): ORM::for_table('ttrss_users')
#3 /var/www/ttrss/classes/config.php(341): UserHelper::get_login_by_id(1)
#4 /var/www/ttrss/index.php(17): Config::sanity_check()
#5 {main}
thrown in /var/www/ttrss/vendor/j4mie/idiorm/idiorm.php on line 328
Include steps to reproduce the problem:
pull to latest master and open tt-rss in the browser
tt-rss version (including git commit id):
I get the error with current HEAD commit of master: d6629ed18863f797d34ebdc65815d7af21cb8332
It stopped working since commit 127a868e4033a66c03ba18128697a8702cc484e7
So a git reset to f38be747d132d754801c46ee3df15f8c27a03762 makes tt-rss work again.
Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Debian, php 7.3, PostgreSQL 11
Please provide any additional information below:
my config.php has the following content:
<?php
putenv('TTRSS_DB_HOST=localhost');
putenv('TTRSS_DB_USER=ttrss');
putenv('TTRSS_DB_NAME=ttrss');
putenv('TTRSS_DB_PASS=pass');
putenv('TTRSS_SELF_URL_PATH=https://myurl/');
putenv('TTRSS_SINGLE_USER_MODE=true');
putenv('TTRSS_SIMPLE_UPDATE_MODE=false');
putenv('TTRSS_SMTP_FROM_ADDRESS=ttrss@myurl');
I do not know why idiorm searches for sqlite, because pgsql is the default type. Even setting DB type to pgsql does not help and i get the same error.
fox
2
this seems to be the reason.
e: a check specific to single_user_mode is invoked before ORM connection is initialized. i have a workaround that fixes it but it’s kinda hacky, a bit.
fox
3
thanks. workaround fixes the problem.
fox
5
thanks for mentioning single_user_mode, a few other reports didn’t, yours was the one that actually made the fix happen.