warning: Missing argument 1 for views_bonus_audio_player() in /home/un/public_html/demo/drupal5/sites/all/modules/views_bonus/views_bonus.module on line 687.
warning: Missing argument 2 for views_bonus_audio_player() in /home/un/public_html/demo/drupal5/sites/all/modules/views_bonus/views_bonus.module on line 687.
warning: Missing argument 3 for views_bonus_audio_player() in /home/un/public_html/demo/drupal5/sites/all/modules/views_bonus/views_bonus.module on line 687.
warning: Invalid argument supplied for foreach() in /home/un/public_html/demo/drupal5/sites/all/modules/audio/audio.module on line 1296
Just installed the 0.2 release of the audio module. The above errors show when selecting the "players" tab in audio settings.
views_bonus 1.0 installed. I don't see a newer public release. Should I be using the dev version of views_bonus ?
Comments
Comment #1
drewish commentedi think this is an issue with the views bonus pack
Comment #2
vm commenteddisabled view_bonus for the time being, error removed.
Comment #3
merlinofchaos commentedAww nuts. audio.module went and invented a hook and I happen to have a function by that name, I think. That function will have to be renamed.
Comment #4
drewish commentedsorry about that. i'm thinking about adding the following code to the audio.module if it'd make your life easier:
<?php
/**
* Build HTML to play an XSPF playlist.
*
* @param $url
* URL of the playlist
* @param $playername
* Optional, name of a player to use. See audio_get_players() for a list
* and then ensure that they return a 'theme_xspf' function.
* @return
* HTML to play the audio tracks.
*/
function audio_get_xspf_player($url, $playername = NULL) {
if (empty($playername)) {
$playername = 'xspf_extended';
}
$player = audio_get_players('name', $playername);
return theme($player['theme_xspf'], $url);
}
>?
Comment #5
merlinofchaos commentedWell. No need to do it just for me; my code needs to adapt to yours. I just gotta find the time to do it.
Comment #6
drewish commentedwell i want to centralize the xspf player code in the audio module and make it accessible to other modules and since you're one of those other modules i'd love your input.
Comment #7
bonobo commentedShort of uninstalling views_bonus, is there a workaround for this? I'm using views_bonus for a few other views on a site where I'd like to use the audio module --
I'm currently using dev branches of audio and views_bonus.
Thanks,
Bill
Comment #8
merlinofchaos commentedTwo workarounds:
1) Disable the audio plugin for the bonus pack; that'll stop it.
2) edit the audio plugin and rename the function that's colliding. What you rename it to is irrelevant, just be sure to get all the calls to it as well. They'll all be in the same file.
Comment #9
bonobo commentedSweet -- thanks
Comment #10
merlinofchaos commentedChanging title to make this a bit easier to find.
Comment #11
newdru commentedcan you be more specific.. which function name needs to be renamed?
i'm getting the same error. thanks
Comment #12
newdru commentedfigured it out:
change:
views_bonus_audio_player
to
views_bonus_audio_playerb
Comment #13
vm commentedcorrrect.
for anyone else who stumbles on this problem. here is the code to look for
in the views_bonus.module open FIND:
and REPLACE with:
I posted more code then necessary to make it easier for others to find. I've changed views_bonus_audio_player to views_bonus_audio_view in the 2 instances necessary.
When merlin gets a chance to update the module, you won't have to remember to fix this as he will have it changed.
Comment #14
lionheart8 commentedHi,
I have been having this same error resulting in the following:
It has made me drop using Views for the time being.
When I tried replacing that portion of code in the v_b_module, I still get the above error.
Apparently, there was no conflict when the original versions of both the audio + views bonus modules where introduced to Drupal 5.0. I remember using both of them.
The problem started coming up when some updates came, though I dont remember of which module and have remained ever since.
:(
Not good for someone who needs both modules.
I wonder what one could do.....
Meanwhile, going back to disabling the views module :(
Comment #15
vm commentedThe error was exactly the same ? even after the function names were changed ? That shouldn't be....
Comment #16
stefgosselin commentedExacatly, comment #14 has erred somewhere along the line, as my install from mar-30 tarball gave out the error everyone mentionned in this post.
I had already spotted the duplicate function by the time I found this thread ( thanks google).
The simple renaming of that function was the trick, and works 100% fine, as this function is not referenced anywhere else in audion module ( as per grep results.
Which brings up my own question ... how about getting the module admin to patch his code ? , although it's a trivial issue, it is a small hindrance nonethelesse. Made me lose a half-hour . ;o)
Comment #17
vm commentedit is patched in the -dev tarball. merlin just hasn't branched it yet.
Comment #18
digitalfrontiersmediaI'm taking back all the nasty things I was about to say about you. :-)
The code you listed:
is not in views_bonus/views_bonus.module. It's in views_bonus/plugins/audio_playlist.inc!!
I was getting really perturbed thinking I didn't have the right decoder ring or secret handshake or something. :-)
Comment #19
vm commentedwhen i made that post, it WAS in the views_bonus.module. it has only been recent that the dev, refactored and moved code area to create this "plugin" type system.
Comment #20
vm commentedchanging title back from unnecessary change to what the ...
Comment #21
schnizZzla commentedviews_bonus march tarball fixes this issue for me, too
Comment #22
dmitrig01 commentedFixed.
Comment #23
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.