* 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.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | audiofield.zip | 15.64 KB | atchijov |
| #6 | full tar of the module | 85.09 KB | atchijov |
| #6 | patch against 7.x-1.x | 24.34 KB | atchijov |
| #3 | Full tar of the module | 80.92 KB | atchijov |
| #3 | patch against 7.x-1.x | 24.17 KB | atchijov |
Comments
Comment #1
atchijov commentedAttached 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.
Comment #2
micheas commentedI 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.
Comment #3
atchijov commentedAttached 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.
Comment #4
micheas commentedYou 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.
Comment #5
micheas commentedI 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.
Comment #6
atchijov commentedOk, 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)
Comment #7
micheas commentedI 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.
Comment #8
atchijov commentedNOTE: As of now, the way it is configured, jplayer will only work with MP3.
Comment #9
micheas commentedI updated the status to needs review.
It is working on two test sites with the jplayer media player.
Comment #10
veleiro commentedI 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
Comment #11
veleiro commentedNevermind. Reviewed and working. I had problems with the flash audio player and not the module
Comment #12
prettylines commentedI 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!
Comment #13
atchijov commentedI 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.
Comment #14
atchijov commentedThis version should fix error message #10
Comment #15
prettylines commentedThank you for your help! =)
Comment #16
atchijov commentedDoes it mean that it did fix the problem?
Comment #17
prettylines commentedyes it did!
Comment #18
prettylines commentedOh 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..
Comment #19
micheas commentedThe 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.
Comment #20
will_in_wi commentedAre the changes in #14 going to be committed to master? (still working out the new git terminology) They fix quite a few issues.
Comment #21
prettylines commentedHi 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..?
Comment #22
dartdev commentedHi, 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).
Comment #23
micheas commentedWith 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.
Comment #24
micheas commentedI 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.)
Comment #25
handokozhang commentedIt works! Thank you very much.
Comment #26
tamerzg commentedVersion from #14 is now included in dev snapshot.
Comment #27
prettylines commentedI 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...?
Comment #28
drzraf commentedI 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
$opparameter ofaudiofield_get_playeris 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)ofaudiofield_get_player().Comment #29
tamerzg commentedCurrently 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.