If i use the swftools_playlist_from_image_gallery function i get the following errors:

warning: Invalid argument supplied for foreach() in sitepath/swftools.module on line 808.
warning: Invalid argument supplied for foreach() in sitepath/swftools.module on line 831.
warning: Invalid argument supplied for foreach() in sitepath/swftools.module on line 875.

does someone know a solution for this?

Comments

zach harkey’s picture

Ditto. Ever since security update and updated image module.

oscott’s picture

same for me also.

benjackson’s picture

me to.
I've tried it with the recommended version and the dev version but still no joy.
I'm running with Apache 2.2.3, PHP 5.21 and MySQL 5.038. The rest of content that i have used the swftools module for still runs fine.

mtndan’s picture

I'm experiencing the exact same errors. Any ideas?

Thanks

mtndan’s picture

Priority: Normal » Critical

Has anyone found a solution to this issue? Thanks!

designbysoil’s picture

<?php 
	$playlist = swftools_playlist_from_image_gallery(65, 'preview'); 
	print swf_list($playlist, SWFDEFAULT, array('transition'=>'fade','width'=>'668','height'=>'414', 'rotatetime'=>'5'));
?>

I have tried the above code inside my node template file and as php code inside a CCK node field. It worked fine. But now I am having trouble with the latest xml file -- generated from a image gallery -- replacing all the other playlists (So I am seeing images only from one gallery, rather than the one being passed as value "65" in the above example).

Any suggestions?

Stuart Greenfield’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

This issue is two years old, and being honest I haven't looked at SWF Tools 5.x in a long time now. The 6.x series is so different, and with 7.x on the horizon, I won't go back and resolve integration issues I'm afraid.

Setting to closed as part of the issue queue tidy up.