Title: JavaScript Error
Last modified: September 17, 2017

---

# JavaScript Error

 *  Resolved [Gulshan Kumar](https://wordpress.org/support/users/thegulshankumar/)
 * (@thegulshankumar)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-130/)
 * Hey dear,
 * After clicking on subscribe button, Chrome console says –
 *     ```
       wdv_mailchimp_ajaxcall.js?ver=1.0:7 Uncaught TypeError: Cannot read property 'split' of undefined
           at subscribe_mc (wdv_mailchimp_ajaxcall.js?ver=1.0:7)
           at HTMLInputElement.btnreset.onclick (wdv_mailchimp_ajaxcall.js?ver=1.0:1)
       subscribe_mc @ wdv_mailchimp_ajaxcall.js?ver=1.0:7
       btnreset.onclick @ wdv_mailchimp_ajaxcall.js?ver=1.0:1
       ```
   
 * Please consider fixing. I really want to try this plugin.
 * Thanks & Regards,
    Gulshan

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

 *  Plugin Author [vrpr](https://wordpress.org/support/users/vrpr/)
 * (@vrpr)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-130/#post-9558565)
 * Hello Gulshan,
    I apologize for the delay in replying. When you filled the “API
   Key (from MailChimp)” field in the widget, you wrote the full number? For example:
   d53e76310264b2b7c231eee1aу9268f2-us12 Or maybe you did not write this in the 
   ending “-us12”? Try write full API Key with “-us12”. Best regards vrpr
 *  [bublick](https://wordpress.org/support/users/bublick/)
 * (@bublick)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-130/#post-9567750)
 * [@vrpr](https://wordpress.org/support/users/vrpr/),
 * I have the same issue. I have tried API Key with “-usXX” postfix and without,
   but there is no difference. Can you check it please?
 * I’m also wondered about form looking in html.
 *     ```
       <form method="post" class="subscribe_mc">
           <input type="email" value="" name="email" class="email" id="email" placeholder="name@email.com" required="">
           <input type="button" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">   
       </form>
       ```
   
 * I mean why it don’t retrives any action url and don’t have nothing unique?
 *  Plugin Author [vrpr](https://wordpress.org/support/users/vrpr/)
 * (@vrpr)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-130/#post-9580327)
 * Hello bublick!
    Thanks for using this plugin. I have send new version to wordpress.
   org. I hope you can upload it soon. In html there is not any action because all
   in js file in plugin: in html: `<form method="post" class="subscribe_mc">` in
   js:
 *     ```
       $('.subscribe_mc').submit(function(e){     
                 ...
                  });
       ```
   
 * Best regards
 *  Plugin Author [vrpr](https://wordpress.org/support/users/vrpr/)
 * (@vrpr)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-130/#post-9583515)
 * Now you can dounload new version 1.0.1 from wordpress.org

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

The topic ‘JavaScript Error’ is closed to new replies.

 * ![](https://ps.w.org/wdv-mailchimp-ajax/assets/icon-128x128.jpg?rev=2176499)
 * [WDV MailChimp Ajax](https://wordpress.org/plugins/wdv-mailchimp-ajax/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wdv-mailchimp-ajax/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wdv-mailchimp-ajax/)
 * [Active Topics](https://wordpress.org/support/plugin/wdv-mailchimp-ajax/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wdv-mailchimp-ajax/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wdv-mailchimp-ajax/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [vrpr](https://wordpress.org/support/users/vrpr/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-130/#post-9583515)
 * Status: resolved