I just configured a slider in a Drupal 7 test site (latest version) using Views Slideshow & Views Slideshow Cycle (v. 7.x-3.0-alpha1). The slideshow works well in most browsers, but IE6, IE8 & IE8+compatibility mode generate the following error (only on the page w/ the slides). The slideshow itself doesn't work in these browsers. Errors for both development & minified shown:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; BRI/2) 
Timestamp: Fri, 23 Sep 2011 20:06:50 UTC 
Message: Exception thrown and not caught 
Line: 16 
Char: 14229 
Code: 0 
URI: https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js
--------------------------------------------------------------------- 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; BRI/2) 
Timestamp: Fri, 23 Sep 2011 20:18:55 UTC 
Message: Exception thrown and not caught 
Line: 978 
Char: 15 
Code: 0 
URI: https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js

The line in question in the development jQuery code appears to be:

finally { 
         fired = [ context, args ]; 
         firing = 0; 
} 

The slideshow contains 3 images & 3 text blocks, with a pager displayed below the slides; my view is configured to use thumbnails for the pager & I created a longtext field for the text. I'm also displaying the title as a heading in the text field using the rewrite function. I'm not getting this error on other pages that use jQuery, e.g., the accordion on my FAQ page. Also, don't know if error occurs in IE9 as I don't have ability to test.

Here's the generated javascript on the page:

<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"mercury","theme_token":"AGr_oYlKDAcb3h2Gyfk7JSb2kSjOJ69-FYPb66cU6Jw","js":{"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.5.2\/jquery.js":1,"0":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"misc\/form.js":1,"sites\/all\/modules\/admin_menu\/admin_devel\/admin_devel.js":1,"sites\/all\/modules\/mollom\/mollom.js":1,"sites\/all\/libraries\/colorbox\/colorbox\/jquery.colorbox-min.js":1,"sites\/all\/modules\/colorbox\/js\/colorbox.js":1,"sites\/all\/modules\/colorbox\/styles\/default\/colorbox_default_style.js":1,"sites\/all\/modules\/colorbox\/js\/colorbox_load.js":1,"sites\/all\/modules\/colorbox\/js\/colorbox_inline.js":1,"sites\/all\/libraries\/superfish\/jquery.hoverIntent.minified.js":1,"sites\/all\/libraries\/superfish\/jquery.bgiframe.min.js":1,"sites\/all\/libraries\/superfish\/superfish.js":1,"sites\/all\/libraries\/superfish\/supersubs.js":1,"sites\/all\/libraries\/superfish\/supposition.js":1,"sites\/all\/libraries\/superfish\/sftouchscreen.js":1,"sites\/all\/modules\/views_slideshow\/js\/views_slideshow.js":1,"sites\/all\/libraries\/jquery.cycle\/jquery.cycle.all.min.js":1,"sites\/all\/libraries\/json2\/json2.js":1,"sites\/all\/modules\/views_slideshow\/contrib\/views_slideshow_cycle\/js\/views_slideshow_cycle.js":1,"sites\/all\/modules\/custom_search\/custom_search.js":1,"1":1,"sites\/all\/modules\/google_analytics\/googleanalytics.js":1,"2":1,"sites\/all\/modules\/field_group\/field_group.js":1,"sites\/messengerwebdesign.com\/themes\/mercury\/js\/zentropy.core.js":1,"sites\/messengerwebdesign.com\/themes\/mercury\/js\/libs\/modernizr.js":1,"sites\/messengerwebdesign.com\/themes\/mercury\/js\/libs\/pushup.js":1,"sites\/messengerwebdesign.com\/themes\/mercury\/js\/script.js":1,"sites\/all\/modules\/views\/js\/jquery.ui.dialog.patch.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"sites\/all\/modules\/date\/date_api\/date.css":1,"sites\/all\/modules\/date\/date_popup\/themes\/datepicker.1.7.css":1,"modules\/field\/theme\/field.css":1,"sites\/all\/modules\/mollom\/mollom.css":1,"modules\/node\/node.css":1,"modules\/search\/search.css":1,"modules\/user\/user.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/colorbox\/styles\/default\/colorbox_default_style.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"sites\/all\/libraries\/superfish\/css\/superfish.css":1,"sites\/all\/libraries\/superfish\/css\/superfish-vertical.css":1,"sites\/all\/libraries\/superfish\/css\/superfish-navbar.css":1,"sites\/all\/modules\/views_slideshow\/contrib\/views_slideshow_cycle\/views_slideshow_cycle.css":1,"sites\/all\/modules\/custom_search\/custom_search.css":1,"sites\/all\/modules\/addthis\/addthis.css":1,"sites\/all\/modules\/field_group\/field_group.css":1,"sites\/messengerwebdesign.com\/themes\/mercury\/css\/boilerplate.css":1,"sites\/messengerwebdesign.com\/themes\/mercury\/css\/layout.css":1,"sites\/messengerwebdesign.com\/themes\/mercury\/css\/blueprint_resets\/typography.css":1,"sites\/messengerwebdesign.com\/themes\/mercury\/css\/blueprint-plugins\/link-icons\/screen.css":1,"sites\/messengerwebdesign.com\/themes\/mercury\/css\/jquery-ui-1.7.3.custom.css":1,"sites\/messengerwebdesign.com\/themes\/mercury\/css\/style.css":1,"sites\/messengerwebdesign.com\/themes\/mercury\/css\/print.css":1}},"colorbox":{"opacity":"0.85","current":"{current} of {total}","previous":"\u00ab Prev","next":"Next \u00bb","close":"Close","maxWidth":"100%","maxHeight":"100%","fixed":true,"__drupal_alter_by_ref":["default"]},"custom_search":{"form_target":"_self","solr":0},"viewsSlideshow":{"featured_slider-block":{"methods":{"goToSlide":["viewsSlideshowPager","viewsSlideshowSlideCounter","viewsSlideshowCycle"],"nextSlide":["viewsSlideshowPager","viewsSlideshowSlideCounter","viewsSlideshowCycle"],"pause":["viewsSlideshowControls","viewsSlideshowCycle"],"play":["viewsSlideshowControls","viewsSlideshowCycle"],"previousSlide":["viewsSlideshowPager","viewsSlideshowSlideCounter","viewsSlideshowCycle"],"transitionBegin":["viewsSlideshowPager","viewsSlideshowSlideCounter"],"transitionEnd":[]},"paused":0}},"viewsSlideshowPagerFields":{"featured_slider-block":{"bottom":{"activatePauseOnHover":1}}},"viewsSlideshowCycle":{"#views_slideshow_cycle_main_featured_slider-block":{"num_divs":3,"id_prefix":"#views_slideshow_cycle_main_","div_prefix":"#views_slideshow_cycle_div_","vss_id":"featured_slider-block","effect":"scrollLeft","transition_advanced":1,"timeout":5000,"speed":700,"delay":0,"sync":1,"random":0,"pause":1,"pause_on_click":0,"start_paused":0,"remember_slide":1,"remember_slide_days":1,"pause_when_hidden":1,"pause_when_hidden_type":"full","amount_allowed_visible":"","nowrap":0,"fixed_height":1,"items_per_slide":1,"wait_for_image_load":1,"cleartype":0,"cleartypenobg":0,"advanced_options":"{}","action_advanced":1,"advanced_options_choices":0,"advanced_options_entry":""}},"googleanalytics":{"trackOutbound":1,"trackMailto":1,"trackDownload":1,"trackDownloadExtensions":"7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip"}});
//--><!]]>
CommentFileSizeAuthor
#5 cz_featured_slider.zip3.07 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Version: 7.x-3.0-alpha1 » 7.x-3.x-dev

More info: some of the other people having similar problems were advised to use the dev version, so I've updated the module. Now, in addition to the previous error, IE debugger also says:

Message: 'Drupal.settings.viewsSlideshow[...]' is null or not an object
Line: 901
Char: 7
Code: 0
URI: http://path/to/js/slidewhow.js

The line in question reads:

Drupal.settings.viewsSlideshow[options.slideshowID].paused = 1;

Also get similar error regarding line 911:

Drupal.settings.viewsSlideshow[...].pausedForce' is null or not an object

which refers to

Drupal.settings.viewsSlideshow[options.slideshowID].paused = 1;

Additionally, I tried the advice to uncheck the “Wait for all the slide images to load […]” setting, but that didn't fix it.

redndahead’s picture

Status: Active » Postponed (maintainer needs more info)

Seems javascript wasn't being loaded. Did clearing your cache and trying again fix it?

Anonymous’s picture

Version: 7.x-3.x-dev » 7.x-3.0

Yes, I manually cleared the cache. Javascript loads fine on the rest of the site; it only chokes on the front page, where the block containing the slideshow view appears.

I just now updated to the latest version of Views Slideshow (7.x-3.0), and here are the errors thrown by IE8:

Message: Exception thrown and not caught
Line: 16
Char: 14229
Code: 0
URI: https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js
Message: 'paused' is null or not an object
Line: 1635
Char: 2
Code: 0
URI: http://path/to/javascript/js_d5Y_6S4evNAEiUzLiDh7o_DRwPaixevwl5sB1OYHc_I.js
Message: 'resumed' is null or not an object
Line: 1637
Char: 7
Code: 0
URI: http://path/to/javascript/js_d5Y_6S4evNAEiUzLiDh7o_DRwPaixevwl5sB1OYHc_I.js
redndahead’s picture

Do you have a link to the site?

Anonymous’s picture

FileSize
3.07 KB

You can see it here. Also have an export of the view (attached).

DigitalFrontiersMedia’s picture

Status: Postponed (maintainer needs more info) » Active

I experience the exact same behaviour.

General error description: Slideshow stops advancing automatically AND accepting hover slideshow navigation events when one navigates back to the home page (slideshow page) from another page.

How to reproduce: navigate to the home page (slideshow page) from ANY URL (even from a different domain) using a link or the Back button or by typing in the URL directly.

Bug fixes itself if the home page is reloaded using Refresh.

Anonymous’s picture

DigitalFrontier: this appears to be unrelated. My errors are Internet Explorer + JavaScript specific. Slideshow functions as advertised in all other major browsers.

DigitalFrontiersMedia’s picture

Same here. Works in all other browsers except IE. Fails with IE8 in IE8 Browser Mode and IE8 Standards Document Mode.

I did the same tests to your website (ww1.messengerwebdesign.com) and saw the exact same results I see on mine (including the Refresh temporary bug fix).

Anonymous’s picture

OK. Thanks for confirming.

DigitalFrontiersMedia’s picture

This is definitely a compatibility issue with the 7.x-3.x branch of the code since other sites I have that are using the 6.x-2.x version of the code under the same tests work just fine.

DigitalFrontiersMedia’s picture

New confusion to add to the fire:

The problem that was being reported (and still exists) on the DEV site I chronicled above cannot be replicated by the client on their PRODUCTION server.

???

Any clues as to what's happening here? The erratic nature of it suggests a race condition that favors one side when viewing the site from a different server.

artis’s picture

This issue is an jQuery and has been fixed: http://bugs.jquery.com/ticket/9033

markosaurus’s picture

FYI - Not sure if this is related, a jQuery update didn't fix for me.

I'm also having a views slideshow issue which totally crashes IE8.

More here - http://drupal.org/node/1340540#comment-5606504

DigitalFrontiersMedia’s picture

I've since discovered one of the differences we have between our DEV and PROD servers is aggregation, compression, and caching settings. I've found that if I turn off caching on PROD that the bug magically disappears. I have no idea why caching would kill the functions contained therein. To be clear, the problem is no longer present on our PROD server with the following Performance settings:

Cache pages for anonymous users = off
Aggregate and compress CSS files = ON
Aggregate JavaScript files = ON

DigitalFrontiersMedia’s picture

Thinking about this more, I remember an additional detail that may help crack this issue is that when caching was on, I could get it to work for a bit (probably while the cache was still good), but then after a while, it would revert to failing again (after the cache went stale?).

Anonymous’s picture

I turned off caching, but I get a new error in IE8.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; BRI/2)
Timestamp: Fri, 8 Jun 2012 21:36:14 UTC

Message: Expected identifier, string or number
Line: 1596
Char: 4
Code: 0
URI: http://example.com/sites/example.com/files/js/js_dGXPRoNwKtc32o6xvvac91KRQ1oj25A0-cWWrRysTPo.js

I flushed the caches & the error disappears, but the slideshow still doesn't work. In IE6, the site just stops loading & the browser freezes.

NickDickinsonWilde’s picture

Issue summary: View changes
Status: Active » Closed (outdated)