I am getting this error in relation to my FlexSlider:

Notice: Undefined index: field_image in flexslider_views_plugin_style_flexslider->render() (line 108 of C:\Sites\sites\all\modules\flexslider\flexslider_views\flexslider_views_plugin_style_flexslider.inc).

Anyone know what is causing it? I suspect it is something that I clicked or set up wrong.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Diane Bryan’s picture

A year later.. I'm getting the same error.
I have installed flex slider with views slideshow. I'm hosted on Pantheon. I have it working nicely on my live site, with code being worked up in dev then committed forward to "live". I cloned my database and files back to "dev" and "test", and that's when the error appeared.

I'm guessing that in dev and test, where the error appears, while they've received all code and files, the database is somehow not fully populating the way it would if I were initially installing on those versions of the site. Someone recently recommended somehow re-upping all the settings related to the module, or re-saving each of the nodes called in the view, to make sure the database gets fully populated.

That would be unnecessary work since it's not the live version of my site. But for you, this might be helpful.

For anybody else with this problem in the future, as a first step, be sure you've cleared your caches. But you're probably already done that.

d

Diane Bryan’s picture

Figured it out. One of the settings requires the title in order to render the slideshow. If you remove the title field, you may get this error. If you reinstate the title field the error goes away. Make sure you haven't set it to render captions. If you indicate the caption field is "title", and you don't have the title, error ensues. If you want to have a caption but don't want the double title display, you can enable the title field and uncheck the caption field in the slideshow settings for the view. This gives you only one title. Now you can style it with CSS, for instance, giving it a negative margin to overlay the image, semi-transparent background, and perhaps white text color.

Tomim’s picture

in views settings
go to FlexSlider settings under Format

edit Caption Field

(Sorry for my English)

ckoharj’s picture

Thank you for this. Had a similar issue where I created a new view from an existing one. I had removed the field that was being used for the caption and even though the caption field in format, settings was set to none I was getting the error.
I re added the title field, set the caption to use that field. Saved it.
Then I set the caption to none, removed the title field and the error disappeared.

tusharbodke’s picture

Status: Active » Needs review
FileSize
1.17 KB

Hi,

This issue we can be resolved by having extra check for caption fields, Check if caption field is set.
Please find attached patch.
@ryanwebpage, let you me know your thoughts.

Thanks

Status: Needs review » Needs work

The last submitted patch, 5: flexslider-checkforcaption-2229873-5.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: flexslider-checkforcaption-2229873-5.patch, failed testing.

tusharbodke’s picture

FileSize
1.19 KB
tusharbodke’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 9: flexslider-checkforcaption-2229873-5.patch, failed testing.

The last submitted patch, 5: flexslider-checkforcaption-2229873-5.patch, failed testing.

tusharbodke’s picture

Status: Needs work » Needs review
FileSize
1.19 KB

Status: Needs review » Needs work

The last submitted patch, 14: flexslider-checkforcaption-2229873-14.patch, failed testing.

pawel_r’s picture

I wish there was a proper solution, meanwhile must be done as #3. If 'caption field' is not needed added field: custom text which is empty and hidden, set this field as caption field in 'flexi settings'.