Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter inorman

    (@inorman)

    I tried adding the lines @smolgiant suggested, but I still get the same error.

    Thanks @chrome-orange for the solution.

    I deactivated the Sendgrid plugin, and edited the ~/lib/class-sendgrid-settings.php file with the built-in WordPress Plugin Editor with the code from your post (I replaced both line 52 and the show_contextual_help() function code as you outlined), updated the file and reactivated the plugin and it all seems to work now without the error.

    Thread Starter inorman

    (@inorman)

    @codepeople Thanks for your quick support. That worked perfectly to prevent the issue. Why is it necessary that I need to use this HTML code and what do I need to know to avoid this issue in the future? When is it necessary to use this code in the future?

    I can confirm that the code fix that Jrgailey posted above works to fix the problem!
    Thanks Jrgailey

    Okay so commenting out the FlexSlider is not a good idea as it will mess with your mobile navigation menu so don’t do what I said above.

    I managed to eliminate this error by just commenting out the entire flexslider section in …themes/flato/js/scripts.js

    Not sure if flexslider is essential to some sort of theme functionality but my site seems to be cool without it.

    I replaced this:

    /*  FlexSlider
    /* ------------------------------------ */
    	var firstImage = jQuery('.flexslider').find('img').filter(':first'),
    		checkforloaded = setInterval(function() {
    			var image = firstImage.get(0);
    			if (image.complete || image.readyState == 'complete' || image.readyState == 4) {
    				clearInterval(checkforloaded);
    				jQuery('.flexslider').flexslider({
    					animation: "slide",
    					useCSS: false, // Fix iPad flickering issue
    					slideshow: false,
    					directionNav: true,
    					controlNav: true,
    					pauseOnHover: true,
    					slideshowSpeed: 7000,
    					animationSpeed: 400,
    					smoothHeight: true,
    					touch: false
    				});
    			}
    		}, 20);
    
    	$('select').dropkick();
    });

    with this:

    /*  FlexSlider
    /* ------------------------------------
    	var firstImage = jQuery('.flexslider').find('img').filter(':first'),
    		checkforloaded = setInterval(function() {
    			var image = firstImage.get(0);
    			if (image.complete || image.readyState == 'complete' || image.readyState == 4) {
    				clearInterval(checkforloaded);
    				jQuery('.flexslider').flexslider({
    					animation: "slide",
    					useCSS: false, // Fix iPad flickering issue
    					slideshow: false,
    					directionNav: true,
    					controlNav: true,
    					pauseOnHover: true,
    					slideshowSpeed: 7000,
    					animationSpeed: 400,
    					smoothHeight: true,
    					touch: false
    				});
    			}
    		}, 20);
    
    	$('select').dropkick();
    });
    */

    I’m getting the same error on the Flato theme.

    Uncaught TypeError: Cannot read property 'complete' of undefined (repeated 999999 times)

    /*  FlexSlider
    /* ------------------------------------ */
    	var firstImage = jQuery('.flexslider').find('img').filter(':first'),
    		checkforloaded = setInterval(function() {
    			var image = firstImage.get(0);
    			if (image.complete || image.readyState == 'complete' || image.readyState == 4) {
    				clearInterval(checkforloaded);
    				jQuery('.flexslider').flexslider({
    					animation: "slide",
    					useCSS: false, // Fix iPad flickering issue
    					slideshow: false,
    					directionNav: true,
    					controlNav: true,
    					pauseOnHover: true,
    					slideshowSpeed: 7000,
    					animationSpeed: 400,
    					smoothHeight: true,
    					touch: false
    				});
    			}
    		}, 20);
    
    	$('select').dropkick();
    });

    It’s in an endless loop that continuously counts up repetitively when using Right Click>Inspect Element in Chrome Browser.

Viewing 7 replies - 1 through 7 (of 7 total)