Getting these errors when i go to edit a profile for flvmediaplayer:

# warning: Missing argument 2 for xspf_playlist_flvmediaplayer_file_use() in /srv/www/targetmultimedia/sites/all/modules/xspf_playlist/xspf_playlist.module on line 264.
# warning: Missing argument 3 for xspf_playlist_flvmediaplayer_file_use() in /srv/www/targetmultimedia/sites/all/modules/xspf_playlist/xspf_playlist.module on line 264.

The line in the module refers to this function:

/**
 * integrate XSPF with the flvmediaplayer module to provide urls
 */
function xspf_playlist_flvmediaplayer_file_use($op, $node, $config) {
  switch ($op) {
    case 'define':
      return array('xspf_playlist--1' => t('XSPF Playlist for each node'));
    break;
    case 'file':
      // only send path if there are files
       if (count(xspf_playlist_node_items($node))) {
        return xspf_playlist_url('xspf/node/'. $node->nid);
      }
  }   
}

We had it working perfectly before... Using the xspf playlist as Media file in the settings, it is set to grab a cck field with the file in it for songs and videos content types.

On normal node display we don't see any errors, but the player doesn't show up.

We are using cck-5.x-1.9, xspf_playlist-5.x-0.12, and version 4.2 of the player.

The site itself is here http://targetmultimedia.addplus.eu/ - not in production yet.

Anyone else seen this? Any clues as to what's going on? I've got a feeling this isnt a bug but rather a configuration error on our part, though I could be wrong. Any pointers highly welcomed!

Comments

edanlee’s picture

i'm recieving the same issues. any help on this matter would be great... on thought though i didnt upgrade anything. i'm going froma new install so it may be the newest release that has the issue, not sure. and not only am i recieving just the missing argument but when i view the node with this inplace i also recieve these errors:

warning: Invalid argument supplied for foreach() in /public_html/learn/modules/flvmediaplayer/flvmediaplayer.module on line 721.
on this line i'm finding this snippet:

// now go through the remaing items and add them on to the flashvars
  foreach($config as $id => $value) {
  	if (isset($value)) {
  		$flashvars[$id] = $value;
  	}
  }   

and to be specific line 721 is:

foreach($config as $id => $value) {

hope we can resolve these issues cause it does seem like a nice module

edanlee

aterchin’s picture

same, except i'm using version 3.16 of jw mediaplayer. also getting

warning: strstr() [function.strstr]: Empty delimiter in /Users/adamterchin/Sites/hdslideshows/sites/all/modules/flvmediaplayer/flvmediaplayer.module on line 306.

on individual node page.

manuel garcia’s picture

Category: support » bug

Looks like we might have found a bug ... changing category

Thanks to all who are adding info to this issue. I hope it's not everyone getting it, it could be a critical issue....

edanlee’s picture

Priority: Normal » Critical
arthurf’s picture

I'll be releasing a new version of this later today which should resolve this

manuel garcia’s picture

Great news arthurf! Looking forward to it, will let you know how it works out.

Thanks!

arthurf’s picture

Project: FLV Media Player » XSPF Playlist
Version: 5.x-4.0-alpha5 » 5.x-1.14
Assigned: Unassigned » arthurf

There is a new version of XSPF forthcoming that fixes the XSPF issue, and the refactoring that I've done to FLVMediaplayer will fix the other peices. Should be out shortly

manuel garcia’s picture

OK, I have upgraded to:
flvmediaplayer-5.x-4.0-alpha6
xspf_playlist-5.x-1.20-alpha1

And I stil dont see the player showing up. I see no errors on editing profile page though.

In that page (profile edit) I can only choose in Media file: Use file parameter. We are using filefield btw.

Dont know what else could be wrong realy, has anything changed ? Anyone else upgraded yet? please post your feedback!

arthurf’s picture

Have you enabled the xspf_playlist_node module? Nedjo and I moved all the content stuff there to make it easier to add new functionality in.

manuel garcia’s picture

OK, that i didnt know heh.

OK i enabled all the modules i saw that are new (including the one for views, wich is on the views section (i think it'd b better if you kept all in the same section, but perhaps its just me).

So i can select XSPF Play list for each node as teh source of the file in the flvmediaplayer profiles, tahts some progress (duh). However, the player stil doesnt show up.

Also if I go to /admin/settings/xspf-playlist I see the following php error:

Fatal error: Call to undefined function xspf_playlist_content_fields() in /srv/www/targetmultimedia/sites/all/modules/xspf_playlist/xspf_playlist_node/xspf_playlist_node.module on line 386

Do you think i should open another issue for this error or?

Thanks for all the work you guys do!

arthurf’s picture

Yeah, it's not super obvious. I need to work on the hand book page to really show how things work.

As per the views thing- I'm not sure what the convention is- in someways I agree with you, however, it's nice to have all the views functionality together, all the CCK functionality together... this way you don't need a section per module, but it's not easy to find if you don't know what to look for.

As per the xspf error on the settings page: that's a miss named function. I'll fix it now and submit it to CVS. You can fix it yourself for the mean time by changing that line to look for xspf_playlist_node_content_fields() rather than xspf_playlist_content_fields() if you don't want to fish the changes out of CVS.

Thanks for your bug reports- very helpful!

manuel garcia’s picture

ill open another issue for this (edited out)

arthurf’s picture

Status: Active » Closed (fixed)

This should be resolved now. If it isn't please feel free to reopen.