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

patchshorts’s picture

subscribed

DFS’s picture

FireFox FireBug

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

Chrome

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

subscribe

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.