Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    My best suggestion is to first make sure all the scripts are up to date for the theme. Our plugin requires at least jQuery 1.6+ so if it is loading a lower version it could cause issues. So definitely making sure all the scripts are up to date is a good first step.

    Thread Starter bicarlsen

    (@bicarlsen)

    Hey Nick,

    Thanks for the quick reply. We’re running jQuery v2.1.1.

    Any other suggestions?

    Thanks,
    Brian

    Plugin Contributor Nick Young

    (@nickyoung87)

    DO you have a link to a page with the issue? I looked at the link in your original post but it looks like it has been changed to a list.

    Thread Starter bicarlsen

    (@bicarlsen)

    https://eastonbjj.staging.wpengine.com/members/

    Thank for all your help Nick!

    Plugin Contributor Nick Young

    (@nickyoung87)

    Looks like the issue is coming from plugins.js – that must be from the theme?

    Thread Starter bicarlsen

    (@bicarlsen)

    Here is the stack trace for the error:

    Uncaught TypeError: Cannot read property 'call' of undefined
    h @ plugins.js?ver=4.2.1:426
    b.fn.imagesLoaded @ plugins.js?ver=4.2.1:426
    x._waitForContent @ jquery.qtip.js:633
    x._update @ jquery.qtip.js:619
    x._updateContent @ jquery.qtip.js:639
    x.render @ jquery.qtip.js:198
    (anonymous function) @ jquery.qtip.js:1483
    m.isFunction.e @ jquery.js?ver=1.11.2:2

    where the jquery.qtip.js file is in the GCE plugin folder.

    Thread Starter bicarlsen

    (@bicarlsen)

    And the plugins.js is from the theme.

    Thread Starter bicarlsen

    (@bicarlsen)

    It appears there is a conflict with the imagesLoaded() function, because the themes version is expecting an argument, but the version from the GCE plugin doesn’t pass one.

    Here is the function definition form the theme ( plugins.js )

    b.fn.imagesLoaded=function(a){
    function h(){
    a.call(c,d)
    }
    
    function i(a){
    var c=a.target;
    c.src!==f && b.inArray(c,g)===-1 && (g.push(c),--e<=0 &&(setTimeout(h),d.unbind(".imagesLoaded",i)))
    }
    var c=this,
    d=c.find("img").add(c.filter("img")),
    e=d.length,
    f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",
    g=[];
    
    return e||h(),
    d.bind("load.imagesLoaded error.imagesLoaded",i).each(function(){
    var a=this.src;
    this.src=f,
    this.src=a
    }),c
    };

    And the code from GCE ( jquery.qtip.js )

    PROTOTYPE._waitForContent = function(element) {
    	var cache = this.cache;
    
    	// Set flag
    	cache.waiting = TRUE;
    
    	// If imagesLoaded is included, ensure images have loaded and return promise
    	return ( $.fn.imagesLoaded ? element.imagesLoaded() : $.Deferred().resolve([]) )
    		.done(function() { cache.waiting = FALSE; })
    		.promise();
    };
    Plugin Contributor Nick Young

    (@nickyoung87)

    Interesting. Thanks for pointing it out. I will share this with Phil so we can determine what our next step is Thanks you for sharing the extra info.

    Plugin Contributor Fulvio Notarstefano

    (@nekojira)

    imagesLoaded library was removed in the last version of the plugin – have you updated bicarlsen? do you still have the issue?

    Thread Starter bicarlsen

    (@bicarlsen)

    Hey Fulvio,

    I am using version 2.2.6 of the plugin, but am still receiving the same error.

    Thank you for your help,
    Brian

    Plugin Contributor Fulvio Notarstefano

    (@nekojira)

    okay, also have you tried to clear your caches (in the eventuality the browser is still picking the old scripts)

    Thread Starter bicarlsen

    (@bicarlsen)

    I just flushed all our caches, but the error is still occurring.

    Plugin Contributor Fulvio Notarstefano

    (@nekojira)

    I think this error was resolved in the last version (problems with Isotope were fixed for other users), did you had any chance to try the plugin once again?

    Thread Starter bicarlsen

    (@bicarlsen)

    Hey Fulvio,

    Everything is working great now!

    Thanks for your help,
    Brian

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Issue with Qode River Theme’ is closed to new replies.