Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Member
    Join Date
    Jan 2007
    Location
    Glasgow, UK
    Posts
    64

    Help required to update Phonebook plugin again!

    Stopped working after upgrade to 7.2.

    Here are the error messages:-
    Slim:isplay::Graphics::render (106) Error: bad lines function - non hash based display formats are depreciated
    Slim::Buttons::Common:ushMode (2007) Error: Couldn't push into new mode: [Plugins::PhoneBook::Plugin] !: Can't use string ("2") as a HASH ref while "strict refs" in use at C:/Program Files/SqueezeCenter/server/Slim/Display/Graphics.pm line 169.
    Slim:isplay::Graphics::render (106) Error: bad lines function - non hash based display formats are depreciated
    Slim::Control::Request::execute (1800) Error: While trying to run function coderef [Slim::Control::Commands::buttonCommand]: [Can't use string ("2") as a HASH ref while "strict refs" in use at C:/Program Files/SqueezeCenter/server/Slim/Display/Graphics.pm line 169.
    ]

    I think this is the code causing the problem:-
    sub lines
    {
    my $client = shift;

    if (scalar(@phone_list)) {
    return @{$phone_list[$context{$client} || 0]};

    }
    return (string('PLUGIN_PHONEBOOK_EMPTY'),'');
    }

    Any help appreciated.
    Thanks
    Steve

  2. #12
    Senior Member
    Join Date
    Apr 2005
    Posts
    8,207

    Help required to update Phonebook plugin

    Yes the code may need changing to support 7.2 (which removed backwards
    compatibility with a very old API for the display functions)

    Are you the author of this plugin? If so you need change the lines function
    to return a hash in the format defined in the display api docs:

    return {
    line => [ 'stuff to put on line 1', 'stuff to put on line 2' ],
    overlay => ['stuff to put in overlay 1', 'stuff to put in overlay 2'],
    };

    ----- Original Message -----
    From: "skind56" <skind56.3flamz1221164101 (AT) no-mx (DOT) forums.slimdevices.com>
    To: <developers (AT) lists (DOT) slimdevices.com>
    Sent: Thursday, September 11, 2008 9:10 PM
    Subject: Re: [Developers] Help required to update Phonebook plugin


    >
    > Stopped working after upgrade to 7.2.
    >
    > Here are the error messages:-
    > Slim:isplay::Graphics::render (106) Error: bad lines function - non
    > hash based display formats are depreciated
    > Slim::Buttons::Common:ushMode (2007) Error: Couldn't push into new
    > mode: [Plugins::PhoneBook::Plugin] !: Can't use string ("2") as a HASH
    > ref while "strict refs" in use at C:/Program
    > Files/SqueezeCenter/server/Slim/Display/Graphics.pm line 169.
    > Slim:isplay::Graphics::render (106) Error: bad lines function - non
    > hash based display formats are depreciated
    > Slim::Control::Request::execute (1800) Error: While trying to run
    > function coderef [Slim::Control::Commands::buttonCommand]: [Can't use
    > string ("2") as a HASH ref while "strict refs" in use at C:/Program
    > Files/SqueezeCenter/server/Slim/Display/Graphics.pm line 169.
    > ]
    >
    > I think this is the code causing the problem:-
    > sub lines
    > {
    > my $client = shift;
    >
    > if (scalar(@phone_list)) {
    > return @{$phone_list[$context{$client} || 0]};
    >
    > }
    > return (string('PLUGIN_PHONEBOOK_EMPTY'),'');
    > }
    >
    > Any help appreciated.
    > Thanks
    > Steve
    >
    >
    > --
    > skind56
    > ------------------------------------------------------------------------
    > skind56's Profile: http://forums.slimdevices.com/member.php?userid=9792
    > View this thread: http://forums.slimdevices.com/showthread.php?t=47003
    >
    >

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •