Title: &#8220;Uncaught TypeError: CodeMirror is not a function&#8221;
Last modified: February 13, 2020

---

# “Uncaught TypeError: CodeMirror is not a function”

 *  Resolved [bielweb](https://wordpress.org/support/users/bielweb/)
 * (@bielweb)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-is-not-a-function/)
 * Hello, today I tried to edit an existing form but when I hit “Update” it did 
   nothing. I tried to create a new one, same thing happened. I realised that in
   the chrome Console appeared an error just entering the “Edit” page:
 *     ```
        cf7-grid-codemirror.js?ver=3.1.0:56 Uncaught TypeError: CodeMirror is not a function
           at HTMLTextAreaElement.<anonymous> (cf7-grid-codemirror.js?ver=3.1.0:56)
           at HTMLTextAreaElement.dispatch (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.3.2:3)
           at HTMLTextAreaElement.r.handle (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.3.2:3)
           at Object.trigger (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.3.2:3)
           at Object.a.event.trigger (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.3.2:8)
           at HTMLTextAreaElement.<anonymous> (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.3.2:3)
           at Function.each (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.3.2:2)
           at a.fn.init.each (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.3.2:2)
           at a.fn.init.trigger (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.3.2:3)
           at HTMLDocument.<anonymous> (cf7-grid-layout-admin.js?ver=3.1.0:651)
       ```
   
 * Any idea what could be happening? I have been editing and publishing new forms
   without any problem since today.
 * NOTE: I also have the Polylang CF7 extension plugin
    Wordpress version: 5.3.2
   PHP Version: 7.3.11 CF7: 5.1.6 CF7 Grid Extension: 3.1.0 CF7 Polylang Extension:
   2.3.2 Wordpress Theme: Avada; Version 6.2 -> [https://themeforest.net/item/avada-responsive-multipurpose-theme/2833226?irgwc=1&clickid=xgWW%3AOzXkxyOR7DwUx0Mo3EUUknQNoSZFT2Awo0&iradid=275988&irpid=1292887&iradtype=ONLINE_TRACKING_LINK&irmptype=mediapartner&mp_value1=&utm_campaign=af_impact_radius_1292887&utm_medium=affiliate&utm_source=impact_radius](https://themeforest.net/item/avada-responsive-multipurpose-theme/2833226?irgwc=1&clickid=xgWW%3AOzXkxyOR7DwUx0Mo3EUUknQNoSZFT2Awo0&iradid=275988&irpid=1292887&iradtype=ONLINE_TRACKING_LINK&irmptype=mediapartner&mp_value1=&utm_campaign=af_impact_radius_1292887&utm_medium=affiliate&utm_source=impact_radius)

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

 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-is-not-a-function/#post-12458710)
 * it looks likes you have another plugin that may be using/loading an older version
   of CodeMirror javascript library.
 * The SmartGrid uses CodeMirror2 library and this error occurs when another plugin
   is poorly targetting admin pages and loading an older version of CodeMirror.
 * Any idea which plugin might be the culprit?
 * One way to check is to look at the Network tab in your debug console and filter
   out javascript files to see where the codemirror library is being loaded from.
 *  Thread Starter [bielweb](https://wordpress.org/support/users/bielweb/)
 * (@bielweb)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-is-not-a-function/#post-12459356)
 * No idea which plugin could be culprit.
 * Sorry to ask, but I’m not aware of having a debug console, neither a Network 
   tab in it… How do I access that?
 * Thanks!
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-is-not-a-function/#post-12491097)
 * > Sorry to ask, but I’m not aware of having a debug console, neither a Network
   > tab in it… How do I access that?
 * watch this [video](https://www.youtube.com/watch?v=H0XScE08hy8).
 * So I have just released v3.1.2 with a fix for this type of conflict. Upgrade 
   and let me know if it fixes your issue.
 *  Thread Starter [bielweb](https://wordpress.org/support/users/bielweb/)
 * (@bielweb)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-is-not-a-function/#post-12495858)
 * Hello again,
 * Thanks for your support, with the new version I don’t encounter the error anymore.
   
   Also thanks for the video, I’ll make use of that in the future.
 * All solved, thank you very much!
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-is-not-a-function/#post-12495987)
 * > All solved, thank you very much!
 * great, do leave a [review](https://wordpress.org/support/plugin/cf7-grid-layout/reviews/)
   when you have a minuste to spare.

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

The topic ‘“Uncaught TypeError: CodeMirror is not a function”’ is closed to new 
replies.

 * ![](https://ps.w.org/cf7-grid-layout/assets/icon-256x256.png?rev=1834229)
 * [Smart Grid-Layout Design for Contact Form 7](https://wordpress.org/plugins/cf7-grid-layout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-grid-layout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-grid-layout/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-grid-layout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-grid-layout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-grid-layout/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-is-not-a-function/#post-12495987)
 * Status: resolved