Problem with image show gk4 - slideshow not working

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Sep 15, 2013 4:07 pm
Reply with quote
Report this post
Hi,

I am having a problem with image_show_gk4 on my website. I'm using the gk_bikestore template therefore I have set the module style for image show as gk_4. The problem is that the slideshow never starts. From google developer tools I found that the slide show is throwing an error

"Uncaught TypeError: Object [object Object] has no method 'getElements' "

Code: Select all
window.addEvent("load",function(){
   (function() {
       $$(".gkIsWrapper-gk_bikestore").each(function(el){
           var elID = el.getProperty("id");
           var wrapper = $(elID);
           var $G = $Gavick[elID];
           var slides = [];
           var links = [];
           var imagesToLoad = [];
           var loadedImages = 0;
           // animation variables
           $G['animation_timer'] = false;
           // blank flag
           $G['blank'] = false;
           // load the images
           wrapper.getElements('.gkIsSlide').each(function(el,i){   <-------- code breaks here !!
               var newImg = new Element('img',{
                   "title":el.getProperty('title'),
                   "class":el.getProperty('class'),
                   "style":el.getProperty('style')
               });
               newImg.store('num', i);
               links[i] = el.getElement('a').getProperty('href');
               el.getElement('a').destroy();


This was working fine earlier, however I recently changed the root folder of the website and this problem has been happening since then. Earlier I had created my website under <public_html>/new and moved all the files and directories to <public_html>/ . I suppose the problem is related to this move but I can't figure out.

The slideshow seems to work fine if change the module_style in image_show to something else like gk_rockwall or gk_appsprotech but doesn't work with some of the others such as gk_estore.

Seems to me like a bug in the code. It's really important for me to get this to work since I am just days away from the launch. I'll be happy to share the access details of the website if you want to take a look.

Please help.

Cheers,
Manik
User avatar
Junior Boarder

teitbite
Sun Sep 15, 2013 5:03 pm
Reply with quote
Report this post
Hi

Please show me Your site.
User avatar
Moderator

GK User
Sun Sep 15, 2013 5:39 pm
Reply with quote
Report this post
hi, thanks for getting back. I have sent you the website details in PM.

cheers,
Manik
User avatar
Junior Boarder

teitbite
Mon Sep 16, 2013 4:55 am
Reply with quote
Report this post
Hi

This is a conflict with jQuery based modules. Please try switch in module advanced settings to use jQuery engine. Try also replace all instances of jQuery library to one. Right now I can see 3 loaded.
User avatar
Moderator

GK User
Mon Sep 16, 2013 8:07 am
Reply with quote
Report this post
Thanks a lot man, that fixed it. I couldn't find the switch in module advanced settings but problem was due to the multiple instances of jquery libraries being loaded. I had installed a couple of plugins that were downloading older versions of jquery, 1.81 and 1.82 . It works fine now after disabling those plugins.

Cheers,
Manik
User avatar
Junior Boarder

teitbite
Wed Sep 18, 2013 3:37 am
Reply with quote
Report this post
Hi

No problem. Glad I could help :)
User avatar
Moderator


cron