Bugzilla – Bug 8556
TrackInfo shouldn't require a client object, as it can be called when browsing music without a player
Last modified: 2009-07-31 10:23:18 UTC
Should we add something like the following to Slim::Utils::Strings: sub clientString my $client = shift; if ($client) { $client->string(@_); } else { string(@_); } }
while working on the trackinfo page I often got lots of [08-06-25 09:16:44.0618] Slim::Menu::TrackInfo::__ANON__ (297) TrackInfo menu item "playtrack" failed: Can't call method "string" on an undefined value at /Users/mh/Documents/workspace/unstable/server/Slim/Menu/TrackInfo.pm line 551. [08-06-25 09:16:44.0625] Slim::Menu::TrackInfo::__ANON__ (297) TrackInfo menu item "addtrack" failed: Can't call method "string" on an undefined value at /Users/mh/Documents/workspace/unstable/server/Slim/Menu/TrackInfo.pm line 551. [08-06-25 09:16:44.0777] Slim::Menu::TrackInfo::__ANON__ (297) TrackInfo menu item "contributors" failed: Can't call method "string" on an undefined value at /Users/mh/Documents/workspace/unstable/server/Slim/Menu/TrackInfo.pm line 443. [08-06-25 09:16:44.0941] Slim::Menu::TrackInfo::__ANON__ (297) TrackInfo menu item "album" failed: Can't call method "string" on an undefined value at /Users/mh/Documents/workspace/unstable/server/Slim/Menu/TrackInfo.pm line 663. [08-06-25 09:16:44.1049] Slim::Menu::TrackInfo::__ANON__ (297) TrackInfo menu item "genres" failed: Can't call method "string" on an undefined value at /Users/mh/Documents/workspace/unstable/server/Slim/Menu/TrackInfo.pm line 735.
Yeah I should have known better...
Fixed in 7.1 change 21303.
This bug has now been fixed in the 7.1 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Reduce number of active targets for SC