I sometimes (exactly when this appears in influenced by caching) get the following message multiple times on nodes containing a mediafront field. ( The warning then also appears once when visiting pages that do not contain a media field, but only after visiting an error-generating page)
Warning: Invalid argument supplied for foreach() in drupal_array_merge_deep_array() (line 2045 of /[sitedirectory]/includes/bootstrap.inc)
drupal_get_js() calls damda() with An array with all JavaScript code. This is supposed to be an array of arrays. The error is generated multiple times because multiple components of the array passed to damda() are not arrays.
Using devel / krumo I found that one of the components is s string starting with:
jQuery(function() { setTimeout( function() {var mediafront_middel =
It seems javascript is not being added correctly by mediafront? Or am I barking up the wrong tree here?
That is why I am posting this in this issue queue. Feel free to move it to a more appropiate queue.
By the way, the videos play fine in the teaser and full node view. It is just strange that the errors show up. Wondering why. So setting this to minor priority.
Using Drupal 7.12, Mediafront 7.x-1.5, media 7.x-1.0 and Media: YouTube 7.x-1.0-beta3
Comments
Comment #1
firfin commentedI found a solution, not optimal but errors are gone. Disabling caching on the views showing a contenttype that has an 'media asset' field. Specifically the 'Rendered output' caching should be set to 'Never cache'
It appears the errors are triggered by enabling caching on a view that displays teasers. Luckily I don't have this problem on a high-traffic site. ;-)