When using a view field leveraging an Entity Relationship for a slide image, the image source path for the controlNav thumbnail image is printed as "undefined" and the controlNav thumbnails are not displayed to the page. In Chrome you can see and click on the broken image links and the FlexSlider JavaScript action works, just no thumbnail image is displayed.

If you view the HTML page source, the output for the controlNav thumbnails is:

<ol class="flex-control-nav flex-control-thumbs>
<li><img src="undefined" class></li>
<li><img src="undefined" class></li>

Overview of Application:
A view of a content type (Product) contains a view Relationship of type "Entity Reference" to display related imagery (Product Colors) in a FlexSlider of type "Slider with controlNav pattern" like http://flexslider.woothemes.com/thumbnail-controlnav.html. The FlexSlider settings are correct and working as expected, just no thumbnail images.

Parts of the FlexSlider are working:
The view field for Product Color Image when used as the main slide image is successfully getting the proper data from the view Relationship and the image source for the "main" slide images work. They also work when just displaying a single slider of images, or when used creating a combination 2 FlexSliders for a main slide slider and carousel navigation combo.

Alternate configurations of image styles were tested and had the same missing image source:

  • Using an image style
  • Using a Picture module breakpoint + image style definition

Modules enabled for some background, but this has been isolated as a FlexSlider issue:

  • FlexSlider (7.x-2.x-dev) this bug also happened on 7.x-2.x-alpha1
  • FlexSlider Views Slideshow (7.x-2.x-dev)
  • FlexSlider Views Style
  • Picture - FlexSlider Picture (7.x-1.1+46-dev)
  • Picture - (7.x-1.1+46-dev)
  • Views - 7.x-3.7
  • Views Slideshow - 7.x-3.0

Patch: a developer on our team has created a patch and will post soon with a more technical explanation about the root cause and the fix.

Issue queue: I'm not sure if this should be in Flexslider Views Slideshow or for the FlexSlider views style plugin. Maintainers - please reclassify if needed.


jasonn1234’s picture

1.1 KB
None View

The issue was being caused by a conditional in flexslider_views.theme.inc which was checking for the existence of an image field in the view before going ahead and generating the thumbnail. The problem was that it was checking using $view->base_field to find the field - which probably works fine in most cases - but was not picking up the correct name of the field in the case of a field based on a views relationship. The output described in the issue was a result of the $item['thumb'] being set to ' ' rather than the thumbnail output after the condition returned false.

All this patch does is ask for the view field_alias of the image field and uses that instead of the $view->base_field. Please review carefully since I don't know enough about Views to know if this is a solid / general fix or not.

jasonn1234’s picture

Status: Active » Needs review
minorOffense’s picture

Status: Needs review » Active

Can you test the patch from #2069435: FlexSlider alpha2 breaks FlexSlider Fields integration since it fixes a lot of stuff for fields. This includes some changes to the views and the thumb variables.

minorOffense’s picture

Issue summary: View changes

Edit for grammar.

minorOffense’s picture

Issue summary: View changes
Status: Active » Fixed

I assume this was fixed.

Status: Fixed » Closed (fixed)

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

brandy.brown’s picture

Status: Closed (fixed) » Active

I am still having this problem. None of the lines of code in the patch are in the file (flexslider.theme.inc).

beckyjohnson’s picture

I am also having this issue. Using 7.x-2.0-alpha3...I'm not a programmer and I don't know how to fix it.

beckyjohnson’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha3

I agree. I can't find the place where the above patch would go. There is no function theme_views_view_flexslider in the file flexslider_views/theme/flexslider_views.theme.inc.

DuendeDDO’s picture

somebody resolve this problem??, because also i have this :/ i'am using flex-slider 7.x-2.0-alpha3 Views Slideshow 7.x-3.1

amaria’s picture

Status: Active » Closed (outdated)

I'm assuming this works now? A lot has changed since this was reported.