Bugzilla – Bug 1930
slimserver dies with "Can't call method "namesort" on an undefined value"
Last modified: 2008-09-15 14:36:01 UTC
I'm using slimserver (SVN 3855) on Linux. The server dies with "Can't call method "namesort" on an undefined value at .../Slim/DataStores/DBI/DBIStore.pm line 1502, <GEN28> line 1.", with both mysql and a SQLite backends. I have attached the file that demonstrates this problem.
Created attachment 696 [details] Zager & Evans - In The Year 2525.mp3 This file causes the described problem.
bouncing this to Dan. I get this same problem myself. workaround is to change DBIStore.pm line 1502 to: my $primary_contributor = defined($contributors->[0]) ? $contributors->[0]->namesort : ((defined($albumObj) && defined($albumObj->contributor)) ? $albumObj->contributor->namesort : ''); The sample file seems to come up as No Album, which I expect is the same fo the files of mine that cause this. I would expect that a "no album" would still be a defined $albumObj, without any defined contributors.
This should be fixed as of subversion change 3861.