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
Results 11 to 12 of 12
-
2008-09-11, 13:10 #11
- Join Date
- Jan 2007
- Location
- Glasgow, UK
- Posts
- 70
Help required to update Phonebook plugin again!
-
2008-09-11, 13:31 #12
- Join Date
- Apr 2005
- Posts
- 8,410
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
>
>