I ported my Drupal 6 site locally to Drupal 7. But the Drupal 7 Version of Views Nivo Slider does not seem to work for me. The image urls of the rendered html is wrong:

<a rel="1" class="nivo-control views-ajax-processed-processed">
    <img alt="" src="http://www.my-site.com/files/styles/slider-thumb/public">
</a>

Tested a bit arround and i think this is not working in the views_nivo_slider.module

$image_url = $field_output = $row->{$field_image_name}[0]['uri'];

because $row is empty.

I am using the latest dev of all involed modules and PHP 5.3.6

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

XerraX’s picture

Title: Wrong image Patch » Wrong image Path
bmac1980’s picture

I am getting strange behavior setting up my View as well. I am able to get through almost all of the View Edit setup, until I have to set the Row Type as "Views Nivo Slider". Once that is set (saved) with all the fields are mapped, I get an "HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request" error.

Unfortunately, this error shows up ANYTIME I try to go back and Edit the View. However, when I'm back on the View page, I see the following errors...

Undefined property: stdClass::$field_data_field_slideshow_image_node_values in template_preprocess_views_nivo_slider_view_nivo_sliderfields() (line 123 of C:\wamp\www\bgsa\sites\all\modules\views_nivo_slider\views_nivo_slider.module).

Line 123 is the same line you're having problems with, I believe. I thought this was because on my Custom Content Type I set the machine name for the image as field_slideshow_image instead of field_image (this was already taken). I changed the name, but that doesn't seem to help either.

Views 7.x-3.x-dev
Views Nivo Slider 7.x-2.x-dev

nihilo’s picture

I got this error too. But then i swapped the image field above the link field and the error disappeared. I have no clue why. Captions does still not work however.

kylebcooke’s picture

I got this error when upgrading from views 7.x-3.0-beta3 to views 7.x-3.0-rc1 . Unfortunately I need the new version of views to fix a different problem I had with my calendar or I would go back to beta3 :(

kylebcooke’s picture

Since my turn around time is limited, I decided to swap out the views-nivo-slider module with the view-slideshow module (http://drupal.org/project/views_slideshow) installed 7.x-3.x-dev (2011-Jun-27) a 10 minute change that did the job! Only thing to keep in mind if you are linking your banner somewhere you will need to add the destination link field and the banner image field. Exclude the link field from display and rewrite the banner image field to output as a link using the destination link field.

pixelmord’s picture

I also had this issue with incomplete image urls and also with only one caption for the last image
I'm using the latest Views 7.x-3.x with the actual Views Nivo Slider 7.x-2.x-dev

I created a quick patch addressing these issues (caused by wrong naming for the image field variable and wrongful resetting of caption array-variable)

asauterChicago’s picture

Damn, unfortunately this patch doesn't work either for me, it actually crashes my whole site when applied :-/.

pixelmord’s picture

@asauterChicago:
Did you get an error message?
The above patch is just a quick fix, tailored for the last dev versions of views and nivo and the settings in my view display.
Your setup may require another solution or some other part of the code is also broken.
A hint would help.....

ckng’s picture