Title: JavaScript error when submitting newsletter subscription form
Last modified: December 29, 2016

---

# JavaScript error when submitting newsletter subscription form

 *  [Adrian Mörchen](https://wordpress.org/support/users/adrian2k7/)
 * (@adrian2k7)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-when-submitting-newsletter-subscription-form/)
 * Hello,
 * There is an error in combination with [https://de.wordpress.org/plugins/newsletters-lite/](https://de.wordpress.org/plugins/newsletters-lite/)
 * When trying to submit the form, the following error ocurs in crayon.min.js:
 *     ```
       Uncaught TypeError: this.substring is not a function
           at String.sliceReplace (crayon.min.js?ver=_2.7.2_beta:1)
           at e (jquery.js?ver=1.12.4:4)
           at dc (jquery.js?ver=1.12.4:4)
           at Function.n.param (jquery.js?ver=1.12.4:4)
           at a.fn.init.e.fn.ajaxSubmit (jquery.form.min.js?ver=3.5.1:11)
           at HTMLFormElement.t (jquery.form.min.js?ver=3.5.1:11)
           at HTMLFormElement.dispatch (jquery.js?ver=1.12.4:3)
           at HTMLFormElement.r.handle (jquery.js?ver=1.12.4:3)
       ```
   

The topic ‘JavaScript error when submitting newsletter subscription form’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/crayon-syntax-highlighter_b0c4c0.
   svg)
 * [Crayon Syntax Highlighter](https://wordpress.org/plugins/crayon-syntax-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/crayon-syntax-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/crayon-syntax-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/crayon-syntax-highlighter/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Adrian Mörchen](https://wordpress.org/support/users/adrian2k7/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-when-submitting-newsletter-subscription-form/)
 * Status: not resolved