I have an issue where I have created a slideshow block in a view. The items are images added to one unpublished node.

The first time the slideshow block is loaded (for example after a cache clear operation) the slideshow displays correctly.

If the page is reloaded or revisited after visiting any other page, all of the slides are displayed in a list. There is nothing in the error logs to indicate that something has gone wrong. The cycle effect used does not affect the outcome.

This does not happen in the Preview section of the View. It also does not happen in Firefox.

I have other slideshows on the site cycling through nodes which work correctly.

Latest Drupal 7 with an Arctica Tundra subtheme.

Comments

paulbarrett79’s picture

More info:

This only happens for anonymous user - even with any access restrictions for the block removed.
Other related fixes which I found (no spaces in file name, filename ends with a number) had no effect.
Turning off caching for the block removes the problem - which implies that maybe a js lib file is being loaded and conflicting with a cached version?

I hope this is useful for someone.

Cheers
Paul

fougere’s picture

Version: 7.x-3.0 » 7.x-3.1
Issue summary: View changes

I'm getting the same bug with version 3.1.
The issue happens only if 'Cache blocks' is enabled in Development->Performance *and* I'm not using an admin account
On the second page load javascript includes for slideshow and jquery.cycle are missing from the page, and all slides are displayed at once.

mel-miller’s picture

I am actually having the same issue without those conditions mentioned in #2.

I am not caching blocks in performance nor the view, and I'm logged in as an admin. This is happening in versions 3.0 and 3.1.

mel-miller’s picture

I'm now wondering if this is not a problem with cycle but rather views slideshow itself.

I was able to reproduce the exact same problem using views slideshow with two different slideshow types: cycle and flexslider.

In both cases the initial page load will load views_slideshow.js followed by either the cycle or flexslider styles. When the page is refreshed that second style sheet is gone.

I'm not sure how to fix this myself but I'm hoping the extra info may point us in the right direction. Any ideas?

NickDickinsonWilde’s picture

Status: Active » Closed (won't fix)

Unfortunately the Views Block Cache has a problem; it doesn't correctly load javascript after it has been cached; so you just have to not use the block cache.