Closed (fixed)
Project:
CDN2 Video
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Aug 2009 at 20:35 UTC
Updated:
15 Aug 2009 at 21:50 UTC
I named my added field when I created my cdn2 video content type "cdn2_video" instead of just "video" so I got this error
when displaying my video:
"Invalid argument supplied for foreach() in
.../cdn2/players/cdn2_flowplayer/cdn2_flowplayer.module on line 48."
The code:
$assets = $node->field_video[0][assets];
foreach($assets as $new_asset) {
I put in a change for my code to read:
$assets = $node->field_cdn2_bvideo[0][assets];
this fixes the problem and now I can see my assets. A fix is needed that will get the field name the user created instead of
expecting they will name it merely "video"
Comments
Comment #1
marita93 commentedI fat fingered my fix:
change :
$assets = $node->field_cdn2_bvideo[0][assets];
to :
$assets = $node->field_cdn2_video[0][assets];
Comment #2
IncrediblyKenzi commentedAnd here I was sitting on a fix to this for about a day.. Take a look at version 6.x-1.9 once it's built. This should resolve your issue.