Closed (fixed)
Project:
jPlayer
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
29 May 2011 at 09:48 UTC
Updated:
4 Jan 2014 at 00:53 UTC
Jump to comment: Most recent
Hi, when i do not put any files in jplayer i get the under mentioned notice:
Notice: Undefined variable: player_type in jplayer_sort_files() (line 187 of C:\wamp\www\cms2\sites\all\modules\jplayer\includes\jplayer.theme.inc)..
Here is line 187
return array('files' => $files, 'extensions' => implode(',', $extensions), 'playlist' => $playlist, 'type' => $player_type);
However when i put in a audio file it disappears.
Can you please advise?
Regards,
Colin
Comments
Comment #1
fedik commentedin line 150 before foreach ($media as $file) { add this $player_type = 'audio';
Comment #2
shane birley commentedI am getting this error as well and #1 doesn't fix the problem for me.
Comment #3
swapna.m commentedcheck this link: http://drupal.org/node/1111510
Comment #4
colinstables commented