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!


patchshorts’s picture


DFS’s picture

FireFox FireBug

TypeError: settings is undefined
settings.targetId = '#' + $(fullId + " :first").attr('id');


Uncaught TypeError: Cannot set property 'targetId' of undefined
settings.targetId = '#' + $(fullId + " :first").attr('id');

views_slideshow_cycle.js line 16

this errors only if user not authorized

DFS’s picture

Priority: Normal » Critical
fluffy’s picture

marcoscano’s picture

I 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

marcoscano’s picture

Title: Cannot set property 'targetId' of undefined » Conflict when two slideshow-displays from the same view are placed in one page (Cannot set property 'targetId' of undefined)
Category: support » bug
Priority: Critical » Normal
zvischutz’s picture


stevedunwoody’s picture

Issue summary: View changes

I 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.

kaido24’s picture

Same probem and seems it only appears if blocks are cached trhough views module.

nickBumgarner’s picture

Has anybody seen an official fix for this? I'd rather not create multiple views if I can help it.

alexander.nachev@gmail.com’s picture

#8 worked like a charm. Thanks stevedunwoody :)

vbouchet’s picture

Status: Active » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

A.Eid’s picture

Status: Closed (fixed) » Active

same problem , but I've not display any 2 blocks from the same view

my block displays data from 2 referenced content types

NickWilde’s picture

Status: Active » Fixed

@A.Eid update to 7.x-3.2+ and it should work fine. If still a problem, please re-open.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.