Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

TypeError: api.CZR_preview is undefined

$
0
0

Replies: 0

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 12 minutes ago by chriscrews.
  • This topic was modified 11 minutes ago by chriscrews.

Viewing all articles
Browse latest Browse all 59525

Trending Articles