This message came up when i tried to edit the style settings

Warning: Invalid argument supplied for foreach() in /home/dulcethe/public_html/drupal/sites/all/modules/views_nivo_slider/views-nivo-slider-view.tpl.php on line 40.

How to fix it?

CommentFileSizeAuthor
#18 views-nivo-slider-view.txt1.81 KBbomarmonk
#4 1135958.patch619 bytesburgs
#3 1135958.patch692 bytesgiorgosk

Comments

saratt’s picture

Carlitta87, were you able to overcome the warning?

ejohnson’s picture

Along with this warning, Views Nivo does not work at all in Firefox 3 & 4.

Drupal core 6.20
jQuery UI 6.x-1.4
jQuery Update 6.x-2.x-dev
Views 6.x-2.12
Views Nivo Slider 6.x-2.x-dev

This fix for Drupal 7 works in Drupal 6:

http://drupal.org/node/1129444#comment-4365702

giorgosk’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new692 bytes

fix on drupal 7 version works
and here is a simple patch for drupal 6

burgs’s picture

StatusFileSize
new619 bytes

I can confirm that this patch will break your titles if you have them set. Also, there are some non-standard comments in it.
I've made a small change to remove the comments, and check properly for captions. Feel free to review, feedback and commit.

burgs’s picture

Status: Reviewed & tested by the community » Needs review

And this should be back in review.

jamiehollern’s picture

Patch in #4 works.

burgs’s picture

Status: Needs review » Reviewed & tested by the community

Updating the status on this.

majdi’s picture

Patch in #4 works for me.

edvanleeuwen’s picture

giorgosk’s picture

Title: Error found in views » Warning: Invalid argument supplied for foreach() in views_nivo_slider/views-nivo-slider-view.tpl.php on line 40.

patch works great

making title more descriptive

burgs’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Ok, let's get this committed.

giorgosk’s picture

wasn't "reviewed & tested by the community" the right status to get this committed ?

tigron’s picture

Just wanted to add once more that the patch worked out great. This community is the greatest !!

pgough’s picture

Ok. I just don't understand the applying the patch side of things. Can anyone supply me with a patched version of this module?

ckng’s picture

Status: Patch (to be ported) » Closed (duplicate)
tigron’s picture

Thanks for the patch, looks to be working right now. It did however break my centered slider, I'll have to figure out why.

bomarmonk’s picture

I'm still getting this error with the latest development release. Any ideas? I tried the patch above, but it does not apply to Views Nivo Slider 6.x-2.x-dev (2011-Nov-12).

bomarmonk’s picture

StatusFileSize
new1.81 KB

I used the above patch and did it by hand (since things moved around in the dev file). It worked. Here is the patched views-nivo-slider-view.tpl.php for Views Nivo Slider 6.x-2.x-dev (2011-Nov-12). Just be sure to add back in the .tpl.php extension for the file.