Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#14 | flexslider-checkforcaption-2229873-14.patch | 1.19 KB | tusharbodke |
Comments
Comment #1
Diane Bryan CreditAttribution: Diane Bryan commentedA 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
Comment #2
Diane Bryan CreditAttribution: Diane Bryan commentedFigured 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.
Comment #3
Tomim CreditAttribution: Tomim commentedin views settings
go to FlexSlider settings under Format
edit Caption Field
(Sorry for my English)
Comment #4
ckoharj CreditAttribution: ckoharj commentedThank 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.
Comment #5
tusharbodke CreditAttribution: tusharbodke as a volunteer and at Faichi Solutions Pvt Ltd commentedHi,
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
Comment #9
tusharbodke CreditAttribution: tusharbodke as a volunteer and at Faichi Solutions Pvt Ltd commentedComment #10
tusharbodke CreditAttribution: tusharbodke as a volunteer and at Faichi Solutions Pvt Ltd commentedComment #14
tusharbodke CreditAttribution: tusharbodke as a volunteer and at Faichi Solutions Pvt Ltd commentedComment #16
pawel_r CreditAttribution: pawel_r commentedI 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'.