Title: Automatic image montage throw console error
Last modified: February 5, 2019

---

# Automatic image montage throw console error

 *  [aidron](https://wordpress.org/support/users/aidron/)
 * (@aidron)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/automatic-image-montage-throw-console-error/)
 * 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)

 *  [Narendra Sishodiya](https://wordpress.org/support/users/narenin/)
 * (@narenin)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/automatic-image-montage-throw-console-error/#post-11193458)
 * 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.

## Tags

 * [Console error](https://wordpress.org/support/topic-tag/console-error/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Narendra Sishodiya](https://wordpress.org/support/users/narenin/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/automatic-image-montage-throw-console-error/#post-11193458)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
