Title: TypeError: api.CZR_preview is undefined
Last modified: June 19, 2017

---

# TypeError: api.CZR_preview is undefined

 *  [chriscrews](https://wordpress.org/support/users/chriscrews/)
 * (@chriscrews)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/typeerror-api-czr_preview-is-undefined/)
 * I’m currently getting 2 errors while trying to use customizer and Hueman (latest
   free version), and the pop-up notification that “There was a problem when trying
   to load the customizer. Please refer to…to fix the problem.”
 * I’ve checked all the php.ini settings regarding server memory size and they are
   fine.
 * Here’s the additional dialog from the JS error from the inspector.
 * **JS Error Details**
 * TypeError: api.CZR_preview is undefined[Learn More] site url:939:17
    <anonymous
   > site url/:939:17 <anonymous> site url/:937:8
 * The code at line 939:17 is as follows:
    `setting_cbs = api.CZR_preview.prototype.
   setting_cbs || {},`
 * The code at line 937:8 is as follows:
    `(function (api, $, _ ) {`
 * And here’s the block of relevant code from lines 936-942 for some context…
 *     ```
       <script id="preview-settings-cb" type="text/javascript">
             (function (api, $, _ ) {
                   var $_body    = $( 'body' ),
                       setting_cbs = api.CZR_preview.prototype.setting_cbs || {},
                       input_cbs = api.CZR_preview.prototype.input_cbs || {},
                       _settingsCbsExtend = {},
                       _inputCbsExtend = {};
       ```
   
 * Any suggestions on what is causing this and how to fix it would be appreciated.
 * cheers,
 * chris
    -  This topic was modified 8 years, 10 months ago by [chriscrews](https://wordpress.org/support/users/chriscrews/).
    -  This topic was modified 8 years, 10 months ago by [chriscrews](https://wordpress.org/support/users/chriscrews/).

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

 *  Theme Author [presscustomizr](https://wordpress.org/support/users/nikeo/)
 * (@nikeo)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/typeerror-api-czr_preview-is-undefined/#post-9243549)
 * Hi [@chriscrews](https://wordpress.org/support/users/chriscrews/), thank you 
   for this detailed report.
 * I’m not able to replicate the issue on my side for the moment.
 * The next steps to debug would be to check the following :
    - plugin conflict : Disabling your plugins and see if it fixes the problem. 
      Then reactivate them one by one to identify the one(s) in conflict
    - child theme problem : if you are using a child theme : deactivate it and see
      if it helps
 * Thank you
 *  Thread Starter [chriscrews](https://wordpress.org/support/users/chriscrews/)
 * (@chriscrews)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/typeerror-api-czr_preview-is-undefined/#post-9246808)
 * Thanks Nicolas. I’m not using any child themes, so that is definitely not the
   issue. Based on additional testing, it appears to be caused by one of the following
   plugins: Yoast SEO, Nextgen, Monster Insights, Akismet, or Jetpack.
 * I haven’t had time to debug all of these yet, but the error started showing up
   again after disabling all plugins, then going back and installing these four.
 * I’ll post an update if I am able to isolate the specific plugin causing the conflict
   for future reference.
 * Thanks for a great theme!
 * cheers,
 * chris

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

The topic ‘TypeError: api.CZR_preview is undefined’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [chriscrews](https://wordpress.org/support/users/chriscrews/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/typeerror-api-czr_preview-is-undefined/#post-9246808)
 * Status: not resolved