Can't import OPML at all

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
User avatar
gmargo
Bear Rating Disaster
Bear Rating Disaster
Posts: 62
Joined: 08 Jan 2012, 22:33
Location: Silicon Valley

Re: Can't import OPML at all

Postby gmargo » 03 Jun 2012, 21:07

metronomista wrote:thanks for the patch, no problem I can apply it just taking the code :)



Get the newer version above. "Third version". I forgot the $this-> pointers.

metronomista
Bear Rating Trainee
Bear Rating Trainee
Posts: 16
Joined: 02 Jun 2012, 19:25

Re: Can't import OPML at all

Postby metronomista » 03 Jun 2012, 21:33

Thanks for your work!


For some reason, it keeps giving errors but, as i said above, it probably isn't fault of ttrss, which is working just fine on my local machine. It seems to be a bunch of inconveniences on that dreamhost server in which i'm trying to install tt-rss :)


In any case, thanks for your work, code and support :)

User avatar
gmargo
Bear Rating Disaster
Bear Rating Disaster
Posts: 62
Joined: 08 Jan 2012, 22:33
Location: Silicon Valley

Re: Can't import OPML at all

Postby gmargo » 04 Jun 2012, 19:37

I was in a big rush yesterday and missed the basic point that the after() method is not called unless the before() method returns true. So my patch here is useless.

metronomista
Bear Rating Trainee
Bear Rating Trainee
Posts: 16
Joined: 02 Jun 2012, 19:25

Re: Can't import OPML at all

Postby metronomista » 06 Jun 2012, 19:02

gmargo, :D

he he he, OK, i'm thankful you tried to help :)

By the way, I'm pretty sure that there is some problem with the specific configuration of that server, as in my local machine everything went as expected (smooth). Anyway, I got all my feeds loaded and i'm enjoying them a lot in my brand new tt-rss. A few years back, there existed a performance problem when the database got huge (several hundreds of feeds). But you guys have been working a lot and it seems to be much lighter now, even though it sports a lot more features :)



Now I'm in the process of building a small plugin that renders a button to easily add a feed item to a bookmark manager (I use Semantic Scuttle, that has a delicious-like API). I patched my former reader (RSS Lounge) to get that function on it, and i'm already missing it a lot. If I get something working, I'll let you know :-)

slavba
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 01 Apr 2013, 09:37

Re: Can't import OPML at all

Postby slavba » 01 Apr 2013, 09:57

I seem to have the same problem. Tried to apply the suggested patch with no effect.
When trying to import opml file from GReader I get the following error:

TypeError: Cannot read property 'innerHTML' of null
at opmlImportComplete (http://feedto.me/prefs.php:303:72)
at HTMLIFrameElement.onload (http://feedto.me/prefs.php:1:86)

And this one while examining the upload iframe:

Warning: Cannot modify header information - headers already sent by
(output started at /home/benarina/public_html/readcrums.com/classes/dlg.php:10) in /home/benarina/public_html/readcrums.com/classes/dlg.php on line 25


These are the relevant lines from dlg.php

Code: Select all

class Dlg extends Handler_Protected {
   private $param;
   private $dlgflag;

   function before($method) {
      if (parent::before($method)) {
         header("Content-Type: text/xml; charset=utf-8");
         $this->param = db_escape_string($this->link, $_REQUEST["param"]);
         print "<dlg>";
         $this->dlgflag = true;
         return true;
      }
      $this->dlgflag = false;
      return false;
   }

   function after() {
      if ($this->dlgflag) {
                       print "</dlg>";
              }
   }

   function importOpml() {
      header("Content-Type: text/html"); # required for iframe
...


It seems that some of the feeds do get imported eventually despite the error.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Can't import OPML at all

Postby fox » 01 Apr 2013, 10:52

I wonder if that'll help.

https://github.com/gothfox/Tiny-Tiny-RS ... dc523478f5

May require some creative applying to 1.7.5.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 12 guests