Title: Uncaught TypeError: Cannot call a class as a function
Last modified: January 7, 2019

---

# Uncaught TypeError: Cannot call a class as a function

 *  Resolved [Dmitriy](https://wordpress.org/support/users/widerwebs/)
 * (@widerwebs)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-cannot-call-a-class-as-a-function/)
 * On some pages in the wp-admin, such as when editing a post, this error occurs
   in a tight loop nonstop: Uncaught TypeError: Cannot call a class as a function
 * The JavaScript console also printed the error: [OptinMonster] A user attribute
   is required in the embed code.
 * The `OptinMonsterApp` object is defined though, if you type the variable name
   in and hit enter.
 * The full stack trace from the console: [https://drive.google.com/file/d/1i64-xTgEvlpIQrRGy1uHueEhrLaMjfJY/view?usp=sharing](https://drive.google.com/file/d/1i64-xTgEvlpIQrRGy1uHueEhrLaMjfJY/view?usp=sharing)

Viewing 1 replies (of 1 total)

 *  Plugin Support [Erica Franz](https://wordpress.org/support/users/ericakfranz/)
 * (@ericakfranz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-cannot-call-a-class-as-a-function/#post-11061725)
 * Hi Dmitriy,
 * Thanks for posting this error.
 * Would you open a support ticket through your OptinMonster account so we can further
   troubleshoot the issue and get you a resolution?
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Uncaught TypeError: Cannot call a class as a function’ is closed to new
replies.

 * ![](https://ps.w.org/optinmonster/assets/icon-256x256.png?rev=1145864)
 * [Popup Builder & Popup Maker for WordPress – OptinMonster Email Marketing and Lead Generation](https://wordpress.org/plugins/optinmonster/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/optinmonster/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/optinmonster/)
 * [Active Topics](https://wordpress.org/support/plugin/optinmonster/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/optinmonster/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/optinmonster/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Erica Franz](https://wordpress.org/support/users/ericakfranz/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-cannot-call-a-class-as-a-function/#post-11061725)
 * Status: resolved