Ticket #127 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Error in functions.js

Reported by: trac-user Assigned to: fox
Priority: major Milestone:
Component: backend Version: 1.2.11
Keywords: TypeError Cc:

Description

After upgrading from 1.2.10 to 1.2.11 and trying to update the feeds, I now get the following exception:

TypeError?, reply.firstChild.getAttribute is not a function Function: refetch_callback() Location: function.js?1.2.11:704

My feeds do not update anymore, and slightly stranger, whenever I click on a previously read link it gets toggled to unread.

I've attached a screenshot of the error.

It does not seem to be caused by a faulty feed, because it also occurs if I create a new user with just the default feeds.

Attachments

ttrss_error.png (9.2 kB) - added by trac-user on 05/21/07 20:57:22.
TypeError? sceenshot
backend.php.xml (2.0 kB) - added by trac-user on 05/21/07 23:42:24.

Change History

05/21/07 20:57:22 changed by trac-user

  • attachment ttrss_error.png added.

TypeError? sceenshot

05/21/07 21:17:19 changed by fox

Try opening backend.php?op=rpc&subop=getAllCounters in Firefox and check if that returns valid XML.

05/21/07 23:42:24 changed by trac-user

  • attachment backend.php.xml added.

05/21/07 23:43:10 changed by trac-user

It looks like valid Xml - I've added an attachment of the output from firefox.

05/21/07 23:50:18 changed by fox

Well, I'm stuck. It looks normal to me. Can you e-mail me location/password/etc to your tt-rss installation so I could take a look? cthulhoo-at-gmail.com.

Also, what browser are you using? Can you try it in a different one?

05/22/07 00:26:14 changed by trac-user

Hi,

I just sent the info to you.

Cheers again,

Andy

05/22/07 12:49:55 changed by fox

I think I know what's that about - you are using generic feed update method which subsequently timeouts and doesn't return proper XML when needed. The only way to fix that is to update feeds in crontab or run update daemon (which is a preferred way, please see FAQ). I'll mention this in the wiki.

Don't know about the articles turning unread, could you elaborate on that?

05/22/07 14:23:33 changed by trac-user

Thanks - I'll try altering the feed update method and see what happens (it'll be a few hours before I can get access).

For articles turnning unread - to reproduce: 1) log in using the user & pwd I sent to you. 2) click on a feed (e.g. Tiny Tiny RSS: New Releases) 3) click on a "marked as read" article title (e.g. Milestone 1.2.11 completed) The article status then gets changed to unread.

05/23/07 00:28:36 changed by anonymous

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

Seem to have sorted it out. I think it was down to two problems:

1) I had the TMP_DIRECTORY set wrong in config.php

2) I hadn't set the execute permissions on backend.php / update_feeds.php scripts.

Thanks for all your help & keep up the good work.