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!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ckng’s picture

Status: Active » Postponed (maintainer needs more info)

Where is this alexbern post you are referring to?
The error could only mean your image field is empty?

wojcieszek’s picture

http://drupal.org/node/1200112 #10. Images are showing but also popped up this problem ,so, i think that image fields are not emptyv:)

ckng’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev

Have you tried 3.x-dev?

wojcieszek’s picture

Version: 7.x-3.x-dev » 7.x-2.x-dev

not 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.

markosaurus’s picture

I'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.

Only local images are allowed.

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.

Yoran Scholiers’s picture

Just 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.

mrded’s picture

I got same notice. Please, check my patch.

mrded’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
Status: Postponed (maintainer needs more info) » Needs review
Rafix’s picture

Hi 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.

mrded’s picture

@Rafix, you can check this page http://drupal.org/patch/apply
I hope it will help you.

nasinandes’s picture

Hello,

I have the same problem. After apply your patch, it resolve it.

Great!!

Thanks!

podarok’s picture

Status: Needs review » Active

bot reset

podarok’s picture

Status: Active » Needs review

bot!

podarok’s picture

Assigned: wojcieszek » Unassigned
Status: Needs review » Fixed

#7 commited pushed to 7.x-3.x
Thanks!!!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.