Tags:
create new tag
view all tags

Question

Can any one let me know whether Twiki now supports Headline Plugin??? I did evrything that was said in the installation of Headline Plugin. But I coudn't find any news feeds into the HTML. Installed Headlines Plugin and called the plugin using the following.

%HEADLINES{ href="http://slashdot.org/slashdot.rdf" }%

which ideally should pull the news feed and display it but I just got

$channeltitle?

I looked at the logs but not much information in it. I'm ale to view the rdf file in a browser so don't think firewall is a problem...I coudn't figure out what is goin wrong as there are not much debug statements . Also I did read on the documentation that Headline Plugin may not be supported in future releases of Twiki as it uses undocumented Twiki: getURL() .. Please help.

  • TWiki version:Wiki tool version is 13 Jun 2002
  • Perl version: v5.8.0 built for i686-linux
  • Web server & version: Apache/1.3.27 (Unix) PHP/4.3.1 mod_perl/1.27 mod_ssl/2.8.12 OpenSSL/0.9.7a
  • Server OS: 2.4.18-6mdkenterprise #1 SMP Fri Mar 15 02:28:20 CET 2002 i686
  • Web browser & version: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
  • Client OS: WinXP? Home addition

-- VamsiKrishna - 09 Jun 2003

Answer

The HeadlinesPlugin is specifically written for TWiki, yes, TWiki does support the Plugin smile

The getURL() call is not the problem, is available in all TWiki versions since 01 Dec 2001.

Set the debug flag in the Plugins topic, see data/debug.txt if the Plugin initialized OK. You should see a - TWiki::Plugins::HeadlinesPlugin::initPlugin( Web.topic ) is OK message.

Try also other news feeds. If needed, so some TWikiDebugging.

-- PeterThoeny - 10 Jun 2003

Thx Peter, I tried out the Twiki Debugging, I think I got the problem. Basically the getUrl function for some reason is always returning empty string.

my $text = getUrl($theUrl);

for example when I use a feed http://www.ifr.us/backend.php i.e $theUrl , returned value in $text is empty . What could be the reason?? Can you please suggest.

its me again, I track down the exact problem now. getUrl function was not at all being called from HeadlinesPlugin.pm script. reason being it was called directly as below

my $text = getUrl($theUrl);

but when I specified the path of the function it did work..

my $text = &TWiki::Net::getUrl($theUrl);

but i'm getting into one more problem I get the following error...

Software error:

Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/local/lib/perl5/5.8.0/i686-linux/Socket.pm line 373.

line 373 of Socket.pm is

372: croak "usage: sin_sv = sockaddr_in(port,iaddr))" unless @_ == 2; 373: pack_sockaddr_in(@_);

i'm a novice in Perl programming and this is definetly out of my scope. Can anyone pl provide a solution??

-vamsi

The problem was due to the Web Proxy , I changed it to the correct value in TWiki.cfg . Evrything is working fine now. Thanks PeterThoeny for debugging hints.

-vamsi

-- VamsiKrishna - 31 Jul 2003

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2003-07-31 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.