Tiny Tiny RSS: Community

Digest not work after upgrade ubuntu os


#1

Hallo all,
after upgrade my Ubuntu 18.04.1 LTS digest not working with follows errors from log

|E_STRICT (2048)|classes/digest.php:145|Only variables should be passed by reference1. classes/digest.php(145): ttrss_error_handler(2048, Only variables should be passed by reference, /var/www/ttr/classes/digest.php, 145, Array)
2. classes/digest.php(49): prepare_headlines_digest(2, 1, 1000)
3. classes/rssutils.php(220): send_headlines_digests()
4. update.php(209): update_daemon_common(50)

|E_STRICT (2048)|classes/digest.php:144|Only variables should be passed by reference1. classes/digest.php(144): ttrss_error_handler(2048, Only variables should be passed by reference, /var/www/ttr/classes/digest.php, 144, Array)
2. classes/digest.php(49): prepare_headlines_digest(2, 1, 1000)
3. classes/rssutils.php(220): send_headlines_digests()
4. update.php(209): update_daemon_common(50)

If i try send feed as email, then this work perfectly

Apache/2.4.29 (Ubuntu)
mysql Ver 14.14 Distrib 5.7.24, for Linux (x86_64)
PHP 5.6.39-1+ubuntu14.04.1+deb.sury.org+1 (cli)
[Tiny Tiny RSS] v18.12 (dee210e)

regards
David Ruzicka


#2

should be fixed now

that’s what i get for accepting other peoples PRs, random bullshit like passing constants by reference for whatever unknown reason

see: 09be7cdd7


#3

upgrade to Tiny Tiny RSS v18.12 (54c9703) but still same error, i was paste all logs from same time 6:57. Maybe i was try something wrong?..

E_ERROR (1) classes/logger/sql.php:18 Uncaught exception ‘PDOException’ with message ‘SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column ‘errstr’ at row 1’ in /var/www/ttr/classes/logger/sql.php:18 Stack trace: #0 /var/www/ttr/classes/logger/sql.php(18): PDOStatement->execute(Array) #1 /var/www/ttr/classes/logger.php(35): Logger_SQL->log_error(1024, ‘Sending mail fr…’, ‘’, 0, ‘’) #2 /var/www/ttr/classes/mailer.php(22): Logger->log(‘Sending mail fr…’) #3 /var/www/ttr/classes/digest.php(65): Mailer->mail(Array) #4 /var/www/ttr/classes/rssutils.php(220): Digest::send_headlines_digests() #5 /var/www/ttr/update.php(209): RSSUtils::update_daemon_common(50) #6 {main} thrown 6:57

E_STRICT (2048) classes/digest.php:145 Only variables should be passed by reference1. classes/digest.php(145): ttrss_error_handler(2048, Only variables should be passed by reference, /var/www/ttr/classes/digest.php, 145, Array)
2. classes/digest.php(49): prepare_headlines_digest(2, 1, 1000)
3. classes/rssutils.php(220): send_headlines_digests()
4. update.php(209): update_daemon_common(50)
6:57

E_STRICT (2048) classes/digest.php:144 Only variables should be passed by reference1. classes/digest.php(144): ttrss_error_handler(2048, Only variables should be passed by reference, /var/www/ttr/classes/digest.php, 144, Array)
2. classes/digest.php(49): prepare_headlines_digest(2, 1, 1000)
3. classes/rssutils.php(220): send_headlines_digests()
4. update.php(209): update_daemon_common(50)
6:57

E_ERROR (1) classes/logger/sql.php:18 Uncaught exception ‘PDOException’ with message ‘SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column ‘errstr’ at row 1’ in /var/www/ttr/classes/logger/sql.php:18 Stack trace: #0 /var/www/ttr/classes/logger/sql.php(18): PDOStatement->execute(Array) #1 /var/www/ttr/classes/logger.php(35): Logger_SQL->log_error(1024, ‘Sending mail fr…’, ‘’, 0, ‘’) #2 /var/www/ttr/classes/mailer.php(22): Logger->log(‘Sending mail fr…’) #3 /var/www/ttr/classes/digest.php(65): Mailer->mail(Array) #4 /var/www/ttr/classes/rssutils.php(220): Digest::send_headlines_digests() #5 /var/www/ttr/update.php(209): RSSUtils::update_daemon_common(50) #6 {main} thrown 6:57

E_STRICT (2048) classes/digest.php:145 Only variables should be passed by reference1. classes/digest.php(145): ttrss_error_handler(2048, Only variables should be passed by reference, /var/www/ttr/classes/digest.php, 145, Array)
2. classes/digest.php(49): prepare_headlines_digest(2, 1, 1000)
3. classes/rssutils.php(220): send_headlines_digests()
4. update.php(209): update_daemon_common(50)
6:57

E_STRICT (2048) classes/digest.php:144 Only variables should be passed by reference1. classes/digest.php(144): ttrss_error_handler(2048, Only variables should be passed by reference, /var/www/ttr/classes/digest.php, 144, Array)
2. classes/digest.php(49): prepare_headlines_digest(2, 1, 1000)
3. classes/rssutils.php(220): send_headlines_digests()
4. update.php(209): update_daemon_common(50)
6:57

E_ERROR (1) classes/logger/sql.php:18 Uncaught exception ‘PDOException’ with message ‘SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column ‘errstr’ at row 1’ in /var/www/ttr/classes/logger/sql.php:18 Stack trace: #0 /var/www/ttr/classes/logger/sql.php(18): PDOStatement->execute(Array) #1 /var/www/ttr/classes/logger.php(35): Logger_SQL->log_error(1024, ‘Sending mail fr…’, ‘’, 0, ‘’) #2 /var/www/ttr/classes/mailer.php(22): Logger->log(‘Sending mail fr…’) #3 /var/www/ttr/classes/digest.php(65): Mailer->mail(Array) #4 /var/www/ttr/classes/rssutils.php(220): Digest::send_headlines_digests() #5 /var/www/ttr/update.php(209): RSSUtils::update_daemon_common(50) #6 {main} thrown

thank you very much for your time and great work

David


#4

i’m not sure what you’re doing but no parameters are being passed by reference there in current trunk
check that you’ve updated everything properly

\PDO:: should be replaced with PDO:: at classes/digest.php lines 144,145.


#5

upgrade by git pull origin master. i was checke lines in classes/digest.php

            $sth->bindParam(':user_id', intval($user_id, 10), PDO::PARAM_INT);
            $sth->bindParam(':limit', intval($limit, 10), PDO::PARAM_INT);

may i need restart some other services? Apache was restarted…