Title: Javascript error
Last modified: October 27, 2020

---

# Javascript error

 *  Resolved [Cealin](https://wordpress.org/support/users/cealin/)
 * (@cealin)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-185/)
 * Hello,
 * Popup not working anymore because of javascript error in rule 295:
    var func 
   = ‘triggerBy’ + $triggers[i].trigger.charAt(0).toUpperCase() + $triggers[i].trigger.
   substr(1),
 * Console says:
 * wppopups.js?ver=2.0.3.7:295 Uncaught TypeError: Cannot read property ‘charAt’
   of undefined
    at Object.bindPopupTriggers (wppopups.js?ver=2.0.3.7:295) at HTMLDivElement.
   <anonymous> (wppopups.js?ver=2.0.3.7:124) at Function.each (jquery.js?ver=1.12.4-
   wp:2) at n.fn.init.each (jquery.js?ver=1.12.4-wp:2) at Object.loopPopups (wppopups.
   js?ver=2.0.3.7:118) at HTMLDocument.start (wppopups.js?ver=2.0.3.7:107) at HTMLDocument.
   dispatch (jquery.js?ver=1.12.4-wp:3) at HTMLDocument.r.handle (jquery.js?ver=
   1.12.4-wp:3) at Object.trigger (jquery.js?ver=1.12.4-wp:3) at HTMLDocument.<anonymous
   > (jquery.js?ver=1.12.4-wp:3)
 * What to do?
    Kind regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-185%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-185/#post-13585757)
 * Hi [@cealin](https://wordpress.org/support/users/cealin/),
    Are you using any
   javascript concatenator and minification? If that’s the case could you disable
   it temporarily to see if that’s the issue?
 *  Thread Starter [Cealin](https://wordpress.org/support/users/cealin/)
 * (@cealin)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-185/#post-13586376)
 * Hello Damian,
 * Thanks for the fast reply! There were indeed such optimizations. I copied the
   site to a testing environment, removed all other plugins, activated WordPress
   default 2020 theme. Still got the error.
 * I reverted back to 1.9.x.x version, which still works properly.
 * Kind regards
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-185/#post-13586667)
 * What about the popup? Do you have the default popup? Have you tried saving the
   settings?
    Please share the url of the testing environment

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

The topic ‘Javascript error’ is closed to new replies.

 * ![](https://ps.w.org/wp-popups-lite/assets/icon-256x256.png?rev=2202255)
 * [WP Popups - WordPress Popup builder](https://wordpress.org/plugins/wp-popups-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-popups-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-popups-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-popups-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-popups-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-popups-lite/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Damian](https://wordpress.org/support/users/timersys/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-185/#post-13586667)
 * Status: resolved