• Hi! I included https://tympanus.net/codrops/2011/08/30/automatic-image-montage/ montage.min.js in to themes function.js:

    wp_enqueue_script( 'jquery-ui-sortable', true);
    	wp_enqueue_script('photoView', get_template_directory_uri().'/js/imageview.js', array('jquery'), false);
    	wp_enqueue_script('montage', get_template_directory_uri().'/js/montage.min.js', array('jquery'), false);
    	wp_enqueue_script('ebfunctions', get_template_directory_uri().'/js/functions.js', array('jquery'), false);
    	wp_enqueue_script('ebjquery', get_template_directory_uri().'/js/ebjquery.js', array('jquery'), false);
    }
    

    and after that i have error in console:

    Uncaught RangeError: Maximum call stack size exceeded
        at String.replace (<anonymous>)
        at fa (jquery.js:2)
        at ta (jquery.js:2)
        at jquery.js:2
        at f (jquery.js:2)
        at fa.select (jquery.js:2)
        at Function.fa (jquery.js:2)
        at Function.a.find (jquery-migrate.min.js:2)
        at a.fn.init.find (jquery.js:2)
        at a.fn.init.a.fn.find (jquery-migrate.min.js:2)
    

    What is wrong here or somewhere else?

Viewing 1 replies (of 1 total)
  • Hi there!

    It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you hit the call stack limit.

    This is almost always because of a recursive function with a base case that isn’t being met.

Viewing 1 replies (of 1 total)
  • The topic ‘Automatic image montage throw console error’ is closed to new replies.