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?
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | views-nivo-slider-view.txt | 1.81 KB | bomarmonk |
| #4 | 1135958.patch | 619 bytes | burgs |
| #3 | 1135958.patch | 692 bytes | giorgosk |
Comments
Comment #1
saratt commentedCarlitta87, were you able to overcome the warning?
Comment #2
ejohnson commentedAlong 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
Comment #3
giorgoskfix on drupal 7 version works
and here is a simple patch for drupal 6
Comment #4
burgs commentedI 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.
Comment #5
burgs commentedAnd this should be back in review.
Comment #6
jamiehollernPatch in #4 works.
Comment #7
burgs commentedUpdating the status on this.
Comment #8
majdi commentedPatch in #4 works for me.
Comment #9
edvanleeuwenSee also http://drupal.org/node/1182272
Comment #10
giorgoskpatch works great
making title more descriptive
Comment #11
burgs commentedOk, let's get this committed.
Comment #12
giorgoskwasn't "reviewed & tested by the community" the right status to get this committed ?
Comment #13
tigron commentedJust wanted to add once more that the patch worked out great. This community is the greatest !!
Comment #14
pgough commentedOk. I just don't understand the applying the patch side of things. Can anyone supply me with a patched version of this module?
Comment #15
ckngMarking as duplicate of #1129444: I get this error. view::$_vns_captions in include() (line 45 And the editing modes are not stable.
Just get the latest dev for both D6 & D7
Comment #16
tigron commentedThanks for the patch, looks to be working right now. It did however break my centered slider, I'll have to figure out why.
Comment #17
bomarmonk commentedI'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).
Comment #18
bomarmonk commentedI 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.