I have Views 7.33, Drupal 7.14, php 5.2.17, and after configuration of Views Nivo Slider, and using as a block , this problem occurred:
Notice: Undefined offset: 0 w template_preprocess_views_nivo_slider_view_nivo_sliderfields() (line 122 of /Users/me/Sites/mysite/sites/all/modules/views_nivo_slider/views_nivo_slider.module).
wrapping it like alexbern suggested in another post in this way:
if (!empty($image_url)){
$image_url = $field_output = $row->{$field_image_name}[0]['raw']['uri'];
}
doesn't help and causes another problem. Images disappeared and another problem occurred:
template_preprocess_views_nivo_slider_view_nivo_sliderfields() (line 168 of /Users/me/Sites/mysite/sites/all/modules/views_nivo_slider/views_nivo_slider.module).
pleas help. urgent!
Comment | File | Size | Author |
---|---|---|---|
#7 | Screen Shot 2012-12-14 at 15.22.25.PNG | 47.31 KB | mrded |
#7 | views_nivo_slider-1593942-7.patch | 945 bytes | mrded |
Comments
Comment #1
ckngWhere is this alexbern post you are referring to?
The error could only mean your image field is empty?
Comment #2
wojcieszek CreditAttribution: wojcieszek commentedhttp://drupal.org/node/1200112 #10. Images are showing but also popped up this problem ,so, i think that image fields are not emptyv:)
Comment #3
ckngHave you tried 3.x-dev?
Comment #4
wojcieszek CreditAttribution: wojcieszek commentednot yet. i was using ;
version = "7.x-2.x-dev"
core = "7.x"
project = "views_nivo_slider"
datestamp = "1321102057"
It was almost month ago, so i used another module, but there is another project, so i'll try to check 3.x-dev and i give you a feedback asap.
Comment #5
markosaurus CreditAttribution: markosaurus commentedI'm getting the same thing actually. Just installed it, never used Nivo before although I have some exposure to Drupal from 4.7, 6,7.
I installed as expected, tried 2.7 and now 3.1 and I get the same error.
When I inspect the front-end output I can see that my image is not being rendered out as expected. Instead, I see a broken image, so Nivo is trying to render it properly and being stopped somewhere else.
Obviously that's not going to work as the image name is not being passed from drupal. Looking into it now, but I would guess it's our views setup that's at fault. If I set the view to click through to original article I can see the title, link and image no problem, all have titles associated with them too.
I would think this is just something silly to do with views. Hope this info helps wojcieszek to troubleshoot their problem. I'm going to delve in deeper now.
Comment #6
Yoran Scholiers CreditAttribution: Yoran Scholiers commentedJust letting you know that I had the same error when I tried to make a block with Nivo.
The "problem" was that I forgot to set a contextual filter in the view...
So it tried to load the other nodes as well, and some of these don't have slides in them, thus displaying the broken image.
Comment #7
mrded CreditAttribution: mrded commentedI got same notice. Please, check my patch.
Comment #8
mrded CreditAttribution: mrded commentedComment #9
Rafix CreditAttribution: Rafix commentedHi mrded.
I get the same problem, even the same line you refer in your attached png (line 134) and I would like to know how to use your patch. Do I have to paste it in that file, in which line... ?
I would be very gratefull for your help.
Comment #10
mrded CreditAttribution: mrded commented@Rafix, you can check this page http://drupal.org/patch/apply
I hope it will help you.
Comment #11
nasinandes CreditAttribution: nasinandes commentedHello,
I have the same problem. After apply your patch, it resolve it.
Great!!
Thanks!
Comment #12
podarokbot reset
Comment #13
podarokbot!
Comment #14
podarok#7 commited pushed to 7.x-3.x
Thanks!!!