Hello Guys!

I found a little bit bug in the module.
When you set the "Link field" in the views, and you click on the image link, the PHP throw fatal error: "Fatal error: [] operator not supported for strings"
It give a string instead of array.

The solution:

views_nivo_slider.module row 214.:
original code:
$img = l($img, $link, array('html' => TRUE, 'attributes' => array('class' => 'views-processed')));

correct code:
$img = l($img, $link, array('html' => TRUE, 'attributes' => array('class' => array('views-processed'))));

Regards!

Balint

Comments

junkuncz’s picture

Issue summary: View changes
junkuncz’s picture

Priority: Normal » Major
podarok’s picture

Status: Needs review » Fixed

thanks, fixed

  • podarok committed 6d851a8 on 7.x-3.x
    Issue #2331973 by junkuncz: Fatal error: [] operator not supported for...
dd 85’s picture

Numerous errors after upgrade from 7.x-3.0-alpha1 to 7.x-3.0.

Notice: Undefined property: stdClass::$field_data_field_image_slide_mini_node_values в функции template_preprocess_views_nivo_slider_view_nivo_sliderfields() (строка 179 в файле /sites/all/modules/views_nivo_slider/views_nivo_slider.module).

dd 85’s picture

I remembered that it used
https://www.drupal.org/node/2336865
https://www.drupal.org/node/2260039#comment-8752479

It would be useful to make these corrections!

Status: Fixed » Closed (fixed)

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