warning: Invalid argument supplied for foreach() in /var/www/cbcc0437/modules/videojs/includes/videojs.theme.inc on line 18.

For the views implementation, sometimes the cck preprocess formatter doesn't receive a complete node with the media field in place.

NOTE THAT THIS IS WITH VIEWS 6.x-3.0, WHICH IS IN ALPHA.

Poor argument handling in the value iterator, doesn't check to see of the passed argument is an array, or if the field exists in the node. The missing argument is likely a result of the new views implementation, but this module should check it's arguments (good practices.)

To fix this error, the new 3.0 views implementation will have to be investigated. It is likely that a different approach will have to be taken.

BTW: I am very excited to have this module, and will investigate the fix myself to see if I can find the problem. I will also investigate trying to user cck_video multiple items to list videos in the tag, and a fall back to swftools option.

CommentFileSizeAuthor
videojs.theme_.inc_.patch556 bytesjaxxed
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jaxxed’s picture

Title: views (3.0) incompatibility produces PHP error in preprocess formatter (include/videojs.theme.inc:18) » cck video - multiple items to use as src list, to create cross browser compatibility
Category: bug » feature
heshanlk’s picture

Status: Active » Fixed

Added to dev

Status: Fixed » Closed (fixed)
Issue tags: -cck views

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