Latest release views_slideshow7x-3.9 breaks my slideshow. After updating, the slideshow only shows the first image and no pager. This is on my localhost so I attached a capture (broken_slideshow.png). The requested output from Drupal.settings js are attached for both live and dev, as well as html output from live and dev. Here is a link to the live site with the preferred functionality.

http://kendalbrown.com/animals

This may or may not be related, but when I open any of the views, while logged in as admin, the admin menu disappears as well.

Comments

fchandler created an issue. See original summary.

gapa’s picture

Which slideshow type are you using? I am using the liquid slider and I noticed the same problem after upgrade.

fchandler’s picture

I have two sites using just views_slideshow, and views_slideshow_xtra. They both broke. I have one using flexslider. It does not appear to be affected. It uses flexslider as the formatter in the view, as opposed to using views_slideshow.

gapa’s picture

I managed to get it to work again. But I am not 100% sure how. I think that It helped that I disabled and uninstalled the module. And then enable it again. Maybe something changed in the settings area but I am not sure about that also.

fchandler’s picture

I disabled and uninstalled twice, and still no luck. Flushed caches, ran update, still nothing.

fchandler’s picture

The file that changed the most in the update, as best as I can discern, is views_slideshow_cycle.theme.inc. Hope that helps.

fchandler’s picture

After so messing around, it is Views Slideshow Xtra Overlay that is causing my issue. I changed the format of the attachment in the view to Slideshow from Views Slideshow Xtra Overlay. The view and the slides and pager work, but my overlay doesn’t. Sorry for the bother.

nickdickinsonwilde’s picture

No bother, good to know though. Probably something in the update broke compatibility with the Xtra Overlay. I'll try to take a look sometime in the next week and see.

pendaco’s picture

Same issue here. It's an issue with Views Slideshow Xtra Overlay (3.8) causing a javascript error;

TypeError: settings is undefined in views_slideshow_xtra_overlay.js

      if(typeof viewId != "undefined") {

            // Get the settings.
            var settings = Drupal.settings.viewsSlideshowXtraOverlay[viewId + '-' + viewDisplayId];

            // Set Pause after mouse movement setting.
            if (settings.hasOwnProperty('pauseAfterMouseMove')) {
              var pauseAfterMouseMove = settings.pauseAfterMouseMove;
              if (pauseAfterMouseMove > 0) {
                $(this).mousemove(function(e) {
                  if (pageX - e.pageX > 5 || pageY - e.pageY > 5) {
                    Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": viewId + '-' + viewDisplayId });
                    clearTimeout(timeout);
                    timeout = setTimeout(function() {
                        Drupal.viewsSlideshow.action({ "action": 'play', "slideshowID": viewId + '-' + viewDisplayId });
                        }, 2000);
                  }
                  pageX = e.pageX;
                  pageY = e.pageY;
                });
              }
            }

          }

Specifically with the line;

if (settings.hasOwnProperty('pauseAfterMouseMove')) {

Reverting back to Views Slideshow 3.8 fixes the error (for now).

nickdickinsonwilde’s picture

Assigned: Unassigned » nickdickinsonwilde
Status: Active » Needs work

Alright, mostly understand the issue. It would appear for quite a while if there were multiple slideshows on the same page I think. Just thinking about the best way to fix the issue - whether here or in views_slideshow_xtra.

nickdickinsonwilde’s picture

Title: lost slideshow » Incompatible with Views Slideshow 7.x-3.9
Project: Views Slideshow » Views Slideshow Xtra
Version: 7.x-3.9 » 7.x-3.x-dev
Assigned: nickdickinsonwilde » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.82 KB

Here's a patch. Pretty sure it'll fix that issue although I'm not used VS Xtra before so don't have a depth of sites to try it out on and no automated testing.

pendaco’s picture

Thanks for the patch!

This seems to fix the issue.

fchandler’s picture

Unfortunately it did not fix mine. After applying the patch, I get the same results; no overlay, slideshow does not activate and only shows the first slide, and Admin menu disappears (but I can still access admin functions like editing the view). I tried this on the existing install that originally had the issue. I also did a new clean minimal install (only the modules required) and the same behaviour happens. Is there other information I can provide that would help.

The view consists of a page display and an attachment. The page has Slideshow and fields as Format. The fields are two image fields; one for the main slide, the second is for the thumbnail pager. The preferred attachment Format: Views Slideshow Xtra Overlay has three fields Content: Title, Content: Nid, Content: Body that is supposed to be the overlay.

fchandler’s picture

I tested this on https://simplytest.me/ and the 3.8 versions of Views Slideshow and Views Slideshow Extra work as intended. The 3.9 of Views Slideshow does not work with VSE 3.8. I can't apply the patch through simplytest.me. Patches appear to only work for the first project chosen and not additional modules. For some reason, if I set https://simplytest.me/ to use Veiws Slideshow as the first project and add VSE as the second, the patch does not apply. If I set VSE as the main project with the patch, and add Views Slideshow as the second project, all the dependencies do not get loaded. The libraries/jquery.cycle folder is not created and the jquery.cycle.all.js does not get installed.

Albeit, I can do some css tricks to make an overlay, eliminating the need for VSE. It is not as elegant, and still creates some issues. I wish I could get some help with this.

fchandler’s picture

I guess I am the only one having issues with this. So my solution is to not use the overlay. It looks like the D8 version isn't working either. I removed the attachments with the fields title, ID and body. I included those fields in the page. I then used this css to achieve the the overlay.

#views_slideshow_cycle_teaser_section_gallery-page_3 .views-field-title{
    background: #4a4a4a none repeat scroll 0 0;
    text-align:center;
    opacity: 0.7;
    padding: 10px 30px 0px;
    position: absolute;
    width:100%;
    top: 0px;
    z-index:50;
    font-size:130%;
    	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 4s;
    
}

#views_slideshow_cycle_teaser_section_gallery-page_3 .views-field-title{
    text-shadow: 0px 5px 5px black;
    font-weight:700;

}

#views_slideshow_cycle_teaser_section_gallery-page_3 .views-field-body{
    background: #4a4a4a none repeat scroll 0 0;
    text-align:center;
    opacity: 0.7;
    padding: 0 30px;
    position: absolute;
    width:100%;
    top: 39.25px;

    z-index:50;
    font-size:120%;
    	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 4s;
}
#views_slideshow_cycle_teaser_section_gallery-page_3 .views-field-body p{
    text-shadow: 0px 5px 5px black;
    font-weight:600;
    opacity:1;
}

here is a link to the revised slideshow http://www.kendalbrown.com/animals

andrebonfanti’s picture

I have the same problem: "TypeError: settings is undefined" in "views_slideshow_xtra_overlay.js".
Only the first image appear without overlay and slideshow does not slide.

astonvictor’s picture

Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.