The embedded soundcloud player does not appear in PHP 5.3. This seems to be the usual issue with call_user_func_array($func, $args), where $func() must NOT expect any arguments to be passed by reference.
Because emaudio_soundcloud_preview() does not modify the &$node - or indeed refer to it at all, as it just calls a theme() function with the other args - then the reference ampersand can be removed.
Please find attached a simple patch to do this. ewills reported this on #1166760-1: Supported features do not seem to work but I'm spinning it out into a separate issue for clarity.
(PS re: 5.3 support - I know, I know; but this is a quick fix and has no impact elsewhere.)
Comments
Comment #1
joachim commentedThanks!
Issue #1174018 by jp.stacey: Fixed PHP 5.3 pass-by-reference warning.
Committed and will shortly be available in the dev release.
Comment #3
victoriachan commentedThere's another of these pass by reference ampersand in the
emaudio_soundcloud_audio($embed, $width, $height, $field, $item, &$node, $autoplay)function.I'm submitting a modified version of the patch above to remove both instances of the pass by reference ampersand.
Thanks!
Comment #4
joachim commentedCould you file that as a new bug, and a fresh patch please? The patch has already been committed (hence 'fixed') so your patch will not apply.
Comment #5
joachim commentedHas been filed and fixed over at http://drupal.org/node/1035178