* Notice: Undefined index: render element in theme() (line 811 of /var/www/includes/theme.inc).
* Notice: Trying to get property of non-object in theme_file_link() (line 701 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in theme_file_icon() (line 739 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 781 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_map() (line 823 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 796 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 796 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 796 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 796 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in theme_file_link() (line 708 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in theme_file_link() (line 708 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in theme_file_link() (line 714 of /var/www/modules/file/file.module).
* Notice: Undefined index: render element in theme() (line 811 of /var/www/includes/theme.inc).
* Notice: Trying to get property of non-object in theme_file_link() (line 701 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in theme_file_icon() (line 739 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 781 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_map() (line 823 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 796 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 796 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 796 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in file_icon_path() (line 796 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in theme_file_link() (line 708 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in theme_file_link() (line 708 of /var/www/modules/file/file.module).
* Notice: Trying to get property of non-object in theme_file_link() (line 714 of /var/www/modules/file/file.module).

Getting these notice errors when loading my default front page which does not have any audio fields.

Happens in other places too with different messages.

Comments

atchijov’s picture

StatusFileSize
new12.76 KB

Attached version fixes this bug (and few others), add support for jPlayer (jQuery based HTML5 player : http://www.jplayer.org/ ) and fixes all instanced of deviation from Drupal Coding Standards.

I will convert it in form of patch as soon as Git migration will be complete.

If you want to use jPlayer, create sites/all/libraries/player/jplayer folder and copy jquery.jplayer.min.js and your skin css file (along with all necessary support files) into this folder. Rename you skin css file to jplayer.css. Select jQuery as default player on Audiofield admin page.

micheas’s picture

I found that this version does fix many problems.

However the jplayer plugin, as I have it installed, has a few problems.

Issue one is that sites/all/libraries/player/jplayer/jplayer.css is not loading.

The second issue is that if there is more than one audio field on a page they are all playing the first audio file.

I am using jQuery.jPlayer.2.0.0 and minimized it using yuicompressor.

atchijov’s picture

StatusFileSize
new24.17 KB
new80.92 KB

Attached version should fix problem with multiple jplayers
Not sure what is your problem with jplayer.css, it most certainly works form me. Take a look at http://theanatomyoffrank.com/music
If you provide URL where you having an issue, I may be able to figure it out.

micheas’s picture

You can see the problem at http://home.micheas.com/audio

I have installed audiofield.02.25.2011.tar_.gz

I am probably doing something very stupid, that I can no longer see because I have been looking at it so much.

micheas’s picture

I don't know what I was doing wrong, but I reinstalled it and the player shows up fine now.

I now have a different problem with multiple players on the screen.

Only the first play button causes anything to happen.

When the play button is pressed, all of the audio files on the page play at the same time.

I suspect that I am doing something wrong, but if you someone else could either give a "works for me" or confirm that my problem is a bug in the module I would appreciate it.

atchijov’s picture

StatusFileSize
new24.34 KB
new85.09 KB

Ok, it was all my fault. I neglect to use cssSelectorAncestor - and you have to use it if you are having multiple jPlayers on the same page.

Also, attached fix works on browsers which do not support tag properly (it will fallback to flash version, as soon as you have Jplayer.swf in your jplayer folder)

micheas’s picture

I would flag this as reviewed and tested by the community, except I think at least one other person should verify that it works for them.

I have only tested MP3s.

I have had success on chrome, and firefox on linux and osx I have also had success with galeon on linux.

Thank you everyone.

atchijov’s picture

NOTE: As of now, the way it is configured, jplayer will only work with MP3.

micheas’s picture

Status: Active » Needs review

I updated the status to needs review.

It is working on two test sites with the jplayer media player.

veleiro’s picture

I am getting the following error
Notice: Undefined offset: 0 in audiofield_get_player_def() (line 131 of ... sites/all/modules/audiofield/audiofield.module).

sometimes it says offset: 1

I am using the Feb 27th full archive posted above

veleiro’s picture

Nevermind. Reviewed and working. I had problems with the flash audio player and not the module

prettylines’s picture

I am facing this problem too!

I installed the 27th Feb version but I kept getting the error msg. Can you let me know how you managed to resolve it? thanks!

atchijov’s picture

I think I can see the problem. However, it should go away as soon as you choose default player type. I will try to provide fixed version tomorrow.

atchijov’s picture

StatusFileSize
new15.64 KB

This version should fix error message #10

prettylines’s picture

Thank you for your help! =)

atchijov’s picture

Does it mean that it did fix the problem?

prettylines’s picture

yes it did!

prettylines’s picture

Oh no I'm facing another issue - I installed three players (the jplayer, the pb single player, and the pb mini player) but only the pb mini player is able to play the mp3 file that I uploaded.. the only two players wouldn't play the file..

I installed the players according to how it was stated in the documentation. I'm wondering if someone can help me with this..

micheas’s picture

The thing that bit me was making sure that the path was relative to the web root.

sites/all/libraries/player is the path that I have (note the lack of initial slash)

Also with jplayer make sure that you have the flash player installed. Firefox and, IIRC, IE both need the flash file to play the audio file.

will_in_wi’s picture

Are the changes in #14 going to be committed to master? (still working out the new git terminology) They fix quite a few issues.

prettylines’s picture

Hi Micheas, thanks for responding!

I have placed the players in the following paths:

For the PB single track player:
sites/all/libraries/player/playerSinglePackage/playerSingle.swf

For the PB single track thin player:
sites/all/libraries/player/OriginalThinMusicPlayer.swf

For the Jplayer:
sites/all/libraries/player/jplayer (with the skin, the swf, and the js inside this folder)

But only the PB single track player is able to play the track that I uploaded.. I'm wondering is it because the other two players are placed in a further subdirectory so the music file cannot be located by the player..?

dartdev’s picture

Hi, I've installed the module from #3 (full tar), no errors but Description field isn't working (I type the text in desc fields for multiple files, save and nothing saves).

micheas’s picture

With the version from #14, which I would strongly recommend. The Description field works from, but isn't actually used, as far as I can tell.

micheas’s picture

I just realized that the sample players are not loading for me.

but I have jPlayer, WordPress Audio Player, and XSPF Slim Player working.

You might try creating a node, and then changing players. That's what I did. (not a bug fix, but it worked.)

handokozhang’s picture

It works! Thank you very much.

tamerzg’s picture

Version from #14 is now included in dev snapshot.

prettylines’s picture

I have installed an update of audiofield and these are the errors that I have received:

Notice: Undefined property: stdClass::$uri in theme_audiofield_formatter_audiofield_embedded() (line 14 of /home/thecrook/public_html/sites/all/modules/audiofield/audiofield_formatter.inc).
Notice: Undefined index: nanogong in audiofield_get_player() (line 161 of /home/thecrook/public_html/sites/all/modules/audiofield/audiofield.module).
Notice: Undefined property: stdClass::$uid in theme_audiofield_formatter_audiofield_embedded() (line 20 of /home/thecrook/public_html/sites/all/modules/audiofield/audiofield_formatter.inc).
Notice: Undefined property: stdClass::$uri in theme_file_link() (line 701 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filemime in theme_file_icon() (line 739 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filemime in file_icon_path() (line 781 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filemime in file_icon_map() (line 823 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filemime in file_icon_path() (line 796 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filemime in file_icon_path() (line 796 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filemime in file_icon_path() (line 796 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filemime in file_icon_path() (line 796 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filemime in theme_file_link() (line 708 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filesize in theme_file_link() (line 708 of /home/thecrook/public_html/modules/file/file.module).
Notice: Undefined property: stdClass::$filename in theme_file_link() (line 714 of /home/thecrook/public_html/modules/file/file.module).

Wonder if anyone can help me with this...?

drzraf’s picture

I can speak about
Notice: Undefined index: nanogong in audiofield_get_player() (line 161 of /home/thecrook/public_html/sites/all/modules/audiofield/audiofield.module). :

It seems like by default the selected audioplayer works for mp3 only and fallbacks on nanogong for ogg, ...
No GUI offers this but "audiofield_audioplayer_" should do the trick like in:
variable_set('audiofield_audioplayer_ogg', "jplayer");
(I guess its based on extension but the $op parameter of audiofield_get_player is not quite clear.

As this parameter can not be set by the GUI I suggest that the default player applies for every format,
roughly, make "mp3" the "default:" case in the switch($op) of audiofield_get_player().

tamerzg’s picture

Status: Needs review » Fixed

Currently players with this module supports mp3 and wav files only. If any player supports other filetypes it should add it under 'filetypes' property and you will be able to select default player for that type of file.
Also the code is now updated to display tags for filetypes which don't have set player.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.