HI,
Just installed nivo slider module and unfortunately I got this error message:
Warning : Invalid argument supplied for foreach() dans nivo_slider_block_view() (ligne 225 dans /homez.467/bridgena/www/sites/all/modules/nivo_slider/nivo_slider.module).
Warning : Invalid argument supplied for foreach() dans nivo_slider_block_view() (ligne 225 dans /homez.467/bridgena/www/sites/all/modules/nivo_slider/nivo_slider.module).
Warning : Invalid argument supplied for foreach() dans nivo_slider_block_view() (ligne 225 dans /homez.467/bridgena/www/sites/all/modules/nivo_slider/nivo_slider.module).
Warning : Invalid argument supplied for foreach() dans nivo_slider_block_view() (ligne 250 dans /homez.467/bridgena/www/sites/all/modules/nivo_slider/nivo_slider.module).
Also i'm trying to resize the slider. I changed the image resize settings but the slider stays at 940 pixels. I don't want more than 900 pixels...
Please check this screenshot http://www.bridgenarbonne.com/Capture%20d%E2%80%99%C3%A9cran%202011-11-24%20%C3%A0%2012.37.24.png
Any help would be appreciated.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | add-api-checks-1351536-8.patch | 4.07 KB | devin carlson |
| #5 | 1351536-add-css-js-override-fix.patch | 1.25 KB | alphasupremicus |
Comments
Comment #1
tom@lostcowboysathome.be commentedHello,
I have a similar problem with nivo-slider. Look at my output below.
Though, managed to hide the error messages by commenting out the lines reffered to but then still the slider won't appear!
Solved your problem yet?
Greetz
Notice: Undefined index: override in nivo_slider_block_view() (line 209 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: override in nivo_slider_block_view() (line 210 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: override in nivo_slider_block_view() (line 211 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: js in nivo_slider_block_view() (line 224 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Warning: Invalid argument supplied for foreach() in nivo_slider_block_view() (line 225 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: override in nivo_slider_block_view() (line 209 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: override in nivo_slider_block_view() (line 210 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: override in nivo_slider_block_view() (line 211 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: js in nivo_slider_block_view() (line 224 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Warning: Invalid argument supplied for foreach() in nivo_slider_block_view() (line 225 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: override in nivo_slider_block_view() (line 209 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: override in nivo_slider_block_view() (line 210 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: override in nivo_slider_block_view() (line 211 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Notice: Undefined index: js in nivo_slider_block_view() (line 224 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Warning: Invalid argument supplied for foreach() in nivo_slider_block_view() (line 225 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Warning: Invalid argument supplied for foreach() in nivo_slider_block_view() (line 250 of /home/ivme/domains/ivme.eu/public_html/samw/sites/all/modules/nivo_slider/nivo_slider.module).
Comment #2
alphasupremicus commentedMe too. I'm running Drupal 7.9 and I get these same errors as reported in the Issue Summary and the slideshow still shows and is too large for the block region I placed the slideshow in (so it overextends it's area). But just wanna fix the errors first then worry about the size of the slideshow second. Any ideas?
Comment #3
intrafusionOK I was having the same problem, but I managed to fix it by changing the function nivo_slider_nivo_slider_theme in nivo_slider.module by changing:
to
If I could create patches I would create one for this
Comment #4
gandhi commentedvery good it works!
Comment #5
alphasupremicus commentedSupplying patch file that implements this fix.
Comment #6
aeroweb340 commentedthanks for the patch guys. Stil looking on how to resize the slider... not working at all.
Any idea ?
Comment #7
alphasupremicus commentedYeah, I manually edited line 127 of nivo_slider.module and changed the width from 940 to something that worked for my theme and where I placed this block. For me width of 735 was the right value. I presume this sort of thing needs to be auto-calculated by the module (i.e. how large) or use CSS auto-sizing (if possible) or just have an option in the user interface to tweak the width. For now, this manual update works for me.
Comment #8
devin carlson commentedSorry guys, I thought I was receiving emails for issue queue updates but I wasn't.
Thanks for the error reports everyone and the patch alphasupremicus. It helped track down the cause of the issue.
As for everyone looking for how to adjust the slider's width. You should be able to override the "nivo_slider_slide" image style and do whatever you want with it (change dimensions, add different image effects). You can administer image styles at admin/config/media/image-styles. If that functionality isn't working for you, please create a separate issue.
Additional documentation will be written shortly.
Attached is a patch that corrects the problem outlined in this issue by using only options defined by each Nivo Slider theme (instead of trying to use an option that was never defined).
Comment #9
devin carlson commentedCommitted to 7.x-1.x-dev.
I've tagged a new release (beta 2) which should be released shortly.
Please reopen this issue if you are still experiencing problems.
Comment #10
alphasupremicus commentedThanks for the info on how to update the image size. I totally didn't expect it to be there! Great!