Invalid argument supplied for foreach() on line 69

IncrediBody.com - October 16, 2009 - 05:15
Project:Jquery Slideshow
Version:6.x-1.2
Component:Miscellaneous
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

I am wondering whether this module can be used to create a slideshow using only one field inside of a view? I am attempting to transition between two images inside of a field within views, while allowing the other fields of that view to remain constant. So, for example, several fields of one node would be shown, and one of those fields containing multiple images would have a slideshow effect to transition between these images.

Currently, I am successfully using the Views Slideshow module to alternate between various nodes inside of a block, showing specific fields from these nodes every several seconds, but I also want to turn one specific field into a slideshow so I can cycle between two images, as I wish to replace my animated GIFs with JPG for higher quality, and wish to achieve this through a slideshow inside of a field. I'd store the two images in one field, and cycle through the two with a slideshow module. I've been searching for information on how to accomplish this goal, but I have not been able to determine if this is possible with Views Slideshow, or if this Jquery Slideshow module is instead what I should aim for.

Thanks in advance for your help!

#1

IncrediBody.com - October 16, 2009 - 08:58
Title:Appropriate For Creating A Slideshow Within One Field?» Invalid argument supplied for foreach() on line 69

I successfully installed the Jquery Slideshow module to accomplish what I indicated in the first post, but I receive the error "warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\drupal\sites\all\modules\jquery_slideshow\jquery_slideshow.module on line 69" on nodes where the image field used for Jquery Slideshow is empty.

Is there a way for me to prevent this message from displaying on nodes where the image field used for Jquery Slideshow is empty? Also, could I be mistaken, and is this error actually linked to some other issue other than an empty Jquery Slideshow image field?

Thanks for your assistance!

#2

basicmagic.net - October 18, 2009 - 12:54

hi and thanks

wondering can you please post any code changes or what you did to accomplish this-
your #1, above

and-
did you see the other posts / fixes that deal with empty imagefields, for this module?

vincent, in buffalo
http://basicmagic.net

#3

IncrediBody.com - October 20, 2009 - 10:45

Hi Vincent! Please see issue http://drupal.org/node/599190 where you will learn the latest regarding my situation.

#4

swortis - November 15, 2009 - 13:51

I was wondering if there were any updates to resolving this error message (invalid argument supplied for foreach() on line 69)? I'm receiving the error with an 'out of the box' set up.

 
 

Drupal is a registered trademark of Dries Buytaert.