Log entry on trying to toggle un/read status
Code: Select all
E_USER_ERROR (256) classes/db/pgsql.php:47 Query SELECT DISTINCT feed_id FROM ttrss_user_entries WHERE (ref_id = 'undefined') AND owner_uid = 2 failed: ERROR: invalid input syntax for integer: "undefined" LINE 2: WHERE (ref_id = 'undefined') AND owner_uid = 2 ^
1. classes/db/pgsql.php(47): user_error(Query SELECT DISTINCT feed_id FROM ttrss_user_entries
WHERE (ref_id = 'undefined') AND owner_uid = 2 failed: ERROR: invalid input syntax for integer: "undefined"
LINE 2: WHERE (ref_id = 'undefined') AND owner_uid = 2
^, 256)
2. classes/db.php(66): query(SELECT DISTINCT feed_id FROM ttrss_user_entries
WHERE (ref_id = 'undefined') AND owner_uid = 2, 1)
3. include/db.php(8): query(SELECT DISTINCT feed_id FROM ttrss_user_entries
WHERE (ref_id = 'undefined') AND owner_uid = 2, 1)
4. include/functions2.php(1122): db_query(SELECT DISTINCT feed_id FROM ttrss_user_entries
WHERE (ref_id = 'undefined') AND owner_uid = 2)
5. classes/rpc.php(314): catchupArticlesById(Array, 2)
6. backend.php(123): catchupSelected()
This is interspersed with the following, happening less often (not yet sure what causes it).
Related log entries (less often)
Code: Select all
E_WARNING (2) classes/db/pgsql.php:53 pg_fetch_assoc() expects parameter 1 to be resource, boolean given
1. classes/db/pgsql.php(53): pg_fetch_assoc()
2. classes/db.php(70): fetch_assoc()
3. include/db.php(12): fetch_assoc()
4. include/functions2.php(1124): db_fetch_assoc()
5. classes/rpc.php(314): catchupArticlesById(Array, 2)
6. backend.php(123): catchupSelected()
I've tried running git bisect with refreshing the page and testing each time, which results in the following:
Code: Select all
[...]$ git bisect start a3b5f3817e810257256e74b1116cf8da2e91e1b7 3891782cf5fc20dc70e17c8665866aef6392233e
Bisecting: 10 revisions left to test after this (roughly 3 steps)
[093d463320a86b14ebc182da2e1499c47a3edb91] af_zz_imgproxy: truncate url in error png
[...]$ git bisect good
Bisecting: 5 revisions left to test after this (roughly 3 steps)
[79ec2f3efd9a4675e58a96171aa5ae01e54afe2c] set error report url to https
[...]$ git bisect good
Bisecting: 2 revisions left to test after this (roughly 2 steps)
[f75cf64673a9db014244b524e32664b1a07cada8] Merge branch 'german-translation' into 'master'
[...]$ git bisect good
Bisecting: 0 revisions left to test after this (roughly 1 step)
[c8919d630e4e4c9bc663f5db95fd01e17d09f7f4] Merge branch 'master' of git.tt-rss.org:fox/tt-rss
[...]$ git bisect bad
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[c55fb22bcdca061146403af2462b73945c61d563] af_zz_imgproxy: rewrite to absolute url; add on-parse article filter hook to handle redirect situation in case frontend has open_basedir (disabled currently)
[...]$ git bisect good
c8919d630e4e4c9bc663f5db95fd01e17d09f7f4 is the first bad commit
It doesn't make sense to me for a merge commit to cause the issue. I might've not run git bisect correctly.
I can reliably reproduce this and easily test it. If there's any further steps I should take to troubleshoot, let me know!
System details
- TinyTiny-RSS 3102a1b3 (git from tt-rss.org GitLab)
- nginx 1.10.0-0ubuntu0.16.04.4
- PostgreSQL 9.5.5-0ubuntu0.16.04
- PHP 7.0.13-0ubuntu0.16.04.1
- Ubuntu 16.04 x86_64, Intel
nginx logs
Nothing seemingly relevant shows up; it's the same for success and failure, just different lengths.
Code: Select all
192.168.0.11 - - [16/Feb/2017:11:09:19 -0600] "POST /rw/tt-rss/backend.php HTTP/2.0" 200 22652 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"