j1_osu has asked for the wisdom of the Perl Monks concerning the following question:

Hi I recently installed Apache-MP3-4.00 on Mac OS X Leopard. I got everything to work. However, the only problem I have is when I click on the stream or shuffle link nothing happens. I am currently running Apache/2.2.6 (Unix) mod_perl/2.0.2, and Perl version is 5.8.8 on Mac OS X Leopard. If anybody knows about Apache::MP3, please help me with this. I have been working on finding a solution but no such luck. Here is what the Apache error_log it says:
[Thu Nov 15 01:22:05 2007] -e: Use of uninitialized value in print at +/System/Library/Perl/5.8.8/darwin-thread-multi-2level/Apache/MP3.pm l +ine 598. [Thu Nov 15 01:22:07 2007] -e: Use of uninitialized value in string eq + at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/Apache/MP3. +pm line 1239. [Thu Nov 15 01:22:07 2007] -e: Use of uninitialized value in pattern m +atch (m//) at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/A +pache/MP3.pm line 1242. [Thu Nov 15 01:22:07 2007] -e: Use of uninitialized value in pattern m +atch (m//) at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/A +pache/MP3.pm line 1243. [Thu Nov 15 01:22:07 2007] -e: Use of uninitialized value in hash elem +ent at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/Apache/M +P3.pm line 1890.
Thanks Josh

Replies are listed 'Best First'.
Re: Installing Apache-MP3-4.00 on Unix
by Anonymous Monk on Nov 16, 2007 at 09:25 UTC
    lines 598-614
    print a({-href=>'./playlist.m3u?Play+All+Recursive=1'}, img({-src => $self->cd_icon($dir), $self->aleft, -alt=> $self->x('Stream All'), -border=>0})), $links, a({-href=>'./playlist.m3u?Shuffle+All+Recursive=1'}, font({-class=>'directory'}, '[', $self->x('Shuffle All'), ']' )) .' '. a({-href=>'./playlist.m3u?Play+All+Recursive=1'}, font({-class=>'directory'}, '[', $self->x('Stream All'), ']' )), br({-clear=>'ALL'}),;
    lines 1237-1243
    my $mime = $self->r->lookup_file("$dir/$d")->content_type; push(@directories,$d) if !$seen{$d}++ && $mime eq DIR_MAGIC_TYPE; # .m3u files should be configured as audio/playlist MIME types in +your apache .conf file push(@playlists,$d) if $mime =~ m!^audio/(playlist|x-mpegurl|mpegu +rl|x-scpls)$!; push(@txtfiles,$d) if $mime =~ m!^text/plain$!;
    lines 1887-1890
    sub supported_type { my $self = shift; my $type = shift; return $self->{'supported_types'}->{$type}; }
    You shouldn't worry too much about those warnings, they mostly mean $dir and some $dir derived values are undefined at some point (probably means the requested directory doesn't exist)
      Hey thanks for the help, but I still get the same errors. Josh
Re: Installing Apache-MP3-4.00 on Unix
by Anonymous Monk on Nov 16, 2007 at 07:52 UTC
    Modify Apache/MP3.pm to set DEBUG to 1
Re: Installing Apache-MP3-4.00 on Unix
by Anonymous Monk on Nov 16, 2007 at 07:48 UTC
    Where do you see links, and what do you expect to happen when you click a link? Your node doesn't seem to have anything to do with "installation".
      The shuffle and and Stream links are right next to the Album. Here is an example: http://127.0.0.1/Songs/Blink-182/playlist.m3u?Shuffle+All+Recursive=1 When I click on the link, I expect it to download "playlist.m3u" file Thanks Josh