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 have a number of slideshows and JS methods defined on the site I am building. Perhaps this is the reason, but when I create a new slideshow the javascript breaks because of the following error:
Uncaught TypeError: Cannot read property 'transitionBegin' of undefined
and it refers to line 174 in the views_slideshow.js.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1049686-views_slideshow-transitionBegin.patch | 1.05 KB | snufkin |
Comments
Comment #1
snufkin CreditAttribution: snufkin commentedPatch wraps the method call into a defined check and thus fixes the JS. I am not 100% sure that this is not a workaround to a deeper problem, but at the moment I can't debug in more detail.
Comment #2
kevinsiji CreditAttribution: kevinsiji commentedSame issue. It caused the Admin Menu to disappear and Superfish Menu subitems stopped expanding. Thank you snufkin for the patch. For time being, I have used it.
Comment #3
chiddicks CreditAttribution: chiddicks commentedThis error manifests in FF as "Drupal[methods[i]] is undefined on line 181 - views_slideshow.js". Based on my testing, this is the same problem, but "Uncaught TypeError: Cannot read property 'transitionBegin' of undefined" is what Chrome reports. The above patch works for me. Thanks.
Check #1085888: Drupal[methods[i]] is undefined on line 181 - views_slideshow.js and other duplicate issues for information.
Comment #4
redndahead CreditAttribution: redndahead commentedI have added the extra check. Thanks Snufkin
Comment #6
tangent CreditAttribution: tangent commentedThis needs to be backported to 6.x as it's equally broken there. Enabling block caching in a view causes slideshow blocks to break due to this issue.