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.
Hi!
I get this error when I'm trying to use the views slideshow 7.x-3.0 module.
It says:
Cannot set property 'targetId' of undefined views_slideshow_cycle.js:16
If I don't include jQuery 1.7.2 in the template.php file, the slideshow works but other jQuery scripts don't.
The slideshow works in the preview of the view, but not when I visit the page with the slideshow block in it.
Please help me!
Comments
Comment #1
patchshorts CreditAttribution: patchshorts commentedsubscribed
Comment #2
DFS CreditAttribution: DFS commentedFireFox FireBug
Chrome
views_slideshow_cycle.js line 16
this errors only if user not authorized
Comment #3
DFS CreditAttribution: DFS commentedComment #4
fluffy CreditAttribution: fluffy commentedThe #1984642: Problem with two Views Slideshow blocks on same page from same view probably related to this?
Comment #5
marcoscanoI can confirm this happens when the same view generates two displays (blocks) and these are placed in the same page.
Splitting them into two separated views solved the problem for me
Comment #6
marcoscanoComment #7
zvischutz CreditAttribution: zvischutz commentedsubscribe
Comment #8
stevedunwoody CreditAttribution: stevedunwoody commentedI was able to work around this by changing the machine name of the View display which was not working. It's under Advanced > Other in your View settings.
Comment #9
kaido.toomingas CreditAttribution: kaido.toomingas commentedSame probem and seems it only appears if blocks are cached trhough views module.
Comment #10
nickBumgarner CreditAttribution: nickBumgarner commentedHas anybody seen an official fix for this? I'd rather not create multiple views if I can help it.
Comment #11
alexander.nachev CreditAttribution: alexander.nachev commented#8 worked like a charm. Thanks stevedunwoody :)
Comment #12
vbouchetI am not able to reproduce this issue anymore as I placed various blocks from the same views on the same page without any issue. Feel free to reopen the ticket with information if it is still here.
Comment #14
3eidoz CreditAttribution: 3eidoz commentedsame problem , but I've not display any 2 blocks from the same view
my block displays data from 2 referenced content types
Comment #15
NickDickinsonWilde@A.Eid update to 7.x-3.2+ and it should work fine. If still a problem, please re-open.