btagga;153570 Wrote: 
> Output of --d_plugins. server crashes when I click on the XM radio,
> under plugins on th main screen - - --
> 
> 
> C:\Program Files\SlimServer\server>slim --d_plugins
> --cut---
> 2006-11-08 23:16:34.1060 Undefined subroutine
> &Plugins::XMRadio::Plugin::handleI
> ndex called at /PerlApp/Slim/Web/HTTP.pm line 811.
> ()

That's interesting.  handleIndex is actually defined in
Plugins::XMRadio::WebPages.  Not sure why it's not being picked up (the
'use Plugins::XMRadio::WebPages' statement is there and handleIndex is
exported from that module).

Could you try replacing webPages method in Plugins::XMRadio::Plugin
with the following:

Code:
--------------------
    
  sub webPages {
        msg( __PACKAGE__ . ".webPages()\n" ) if $::d_plugins;
  
        my %pages = (
                "index\.(?:htm|xml)"    => 
\&Plugins::XMRadio::WebPages::handleIndex,
                "browse\.(?:htm|xml)"   => 
\&Plugins::XMRadio::WebPages::handleBrowse,
                "info\.(?:htm|xml)"     => 
\&Plugins::XMRadio::WebPages::handleInfo,
                "tune\.(?:htm|xml)"     => 
\&Plugins::XMRadio::WebPages::handleWebTune,
                "loginout\.(?:htm|xml)" => 
\&Plugins::XMRadio::WebPages::handleLogin
        );
  
        return ( \%pages, "index.html?autologin=1" );
  }
  
--------------------


This will fully qualify the page handler methods.  Not sure why it's
not resolving them correctly.  (I'm actually running SS 6.3.1 on SuSE
v10, Perl v5.8.7 and haven't had any problems with the web pages.)

Let me know if that helps.


-- 
Joe Bob
------------------------------------------------------------------------
Joe Bob's Profile: http://forums.slimdevices.com/member.php?userid=7361
View this thread: http://forums.slimdevices.com/showthread.php?t=29510

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to