Ticket #113 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

JavaScript error in backend_sanity_check_callback()

Reported by: Blair Zajac <blair@orcaware.com> Assigned to: fox
Priority: major Milestone:
Component: backend Version: 1.2.4
Keywords: Cc:

Description

I upgraded from 1.2.2 to 1.2.4 today by moving aside my tt-rss directory, unpacking a fresh 1.2.4 and then copying the 1.2.2 config file in and doing a diff between the 1.2.2 config.php and the 1.2.4 config.php-dist and hand mering the new changes.

When I loaded the site in Firefox on my Ubuntu box, I got this error:

Exception: TypeError?, reply.getAttribute is not a function Function: backend_sanity_check_callback() Location: tt-rss.js?1.2.4:123

Regards, Blair

Change History

10/20/06 08:38:24 changed by fox

Check this call: backend.php?op=rpc&subop=sanityCheck and see if it returns valid XML.

There also was some discussion on the forum regarding similar problem.

10/20/06 21:38:22 changed by Blair Zajac <blair@orcaware.com>

Yes, here's the output as it appears in Firefox:

XML Parsing Error: no element found
Location: http://www.orcaware.com/tiny-tiny-rss/backend.php?op=rpc&subop=sanityCheck
Line Number 1, Column 455:<rpc-reply><error error-code="0"/><init-params><param key="toolbar_limit" value="30"/><param key="toolbar_view_mode" value="adaptive"/><param key="daemon_enabled" value=""/><param key="feeds_frame_refresh" value="60"/><param key="daemon_refresh_only" value="1"/><param key="on_catchup_show_next_feed" value=""/><param key="hide_read_feeds" value="0"/><param key="feeds_sort_by_unread" value="0"/>Fatal error, unknown preferences key: CONFIRM_FEED_CATCHUP
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

10/20/06 21:43:47 changed by fox

Check your schema. This parameter was added in 1.2.3, you need to run ALL update scripts if you are updating between several versions.

10/20/06 21:46:21 changed by Blair Zajac <blair@orcaware.com>

I did. I unpacked 1.2.3 and ran the upgrade-1.2.2-1.2.3-pgsql.sql and then unpacked 1.2.4 and ran upgrade-1.2.3-1.2.4-pgsql.sql.

Regards, Blair

10/20/06 21:56:30 changed by Blair Zajac <blair@orcaware.com>

Here's the commands I used to upgrade my Postgresql schema. Could this be specific to the Postgresql upgrade?

tiny-tiny-rss=> select * from ttrss_version;
 schema_version
----------------
              9
(1 row)

tiny-tiny-rss=> \q
blair@orca3:~/tmp/tt-rss$ psql -U tiny-tiny-rss tiny-tiny-rss
Password for user tiny-tiny-rss:
Welcome to psql 8.1.4, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

tiny-tiny-rss=> select * from ttrss_version;
 schema_version
----------------
              9
(1 row)

tiny-tiny-rss=> \q
blair@orca3:~/tmp/tt-rss$ psql -U tiny-tiny-rss tiny-tiny-rss < tt-rss-1.2.3/schema/upgrade-1.2.2-1.2.3-pgsql.sql
Password for user tiny-tiny-rss:
BEGIN
INSERT 0 1
ALTER TABLE
UPDATE 55
ALTER TABLE
ALTER TABLE
INSERT 0 1
UPDATE 1
COMMIT
blair@orca3:~/tmp/tt-rss$ psql -U tiny-tiny-rss tiny-tiny-rss Password for user tiny-tiny-rss:
Welcome to psql 8.1.4, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

tiny-tiny-rss=> select * from ttrss_version;
 schema_version
----------------
             10
(1 row)

tiny-tiny-rss=> \q
blair@orca3:~/tmp/tt-rss$ psql -U tiny-tiny-rss tiny-tiny-rss < tt-rss-1.2.4/schema/upgrade-1.2.3-1.2.4-pgsql.sql
Password for user tiny-tiny-rss:
BEGIN
DELETE 2
DELETE 2
DELETE 2
DELETE 2
DELETE 1
DELETE 1
DELETE 1
DELETE 1
INSERT 0 1
INSERT 0 1
UPDATE 1
COMMIT
blair@orca3:~/tmp/tt-rss$ psql -U tiny-tiny-rss tiny-tiny-rss Password for user tiny-tiny-rss:
Welcome to psql 8.1.4, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

tiny-tiny-rss=> select * from ttrss_version;
 schema_version
----------------
             11
(1 row)

tiny-tiny-rss=> \q

Regards, Blair

10/20/06 22:04:36 changed by fox

Hmmm.. can you check if the key is actually in ttrss_prefs database? Also, try logging off and on (in single user mode just open logoff.php) - preferences are cached, something could have stuck in the cache.

10/20/06 22:48:38 changed by Blair Zajac <blair@orcaware.com>

  • status changed from new to closed.
  • resolution set to fixed.

Thanks, I had to log out and back in for it to work.

Regards, Blair