1

i have edit or add new page on wordpress ken theme with WPBakery Visual Composer but it not load properly

its give error on console

Uncaught ReferenceError: wp is not defined at mk_upload_option (admin-scripts.js:2)

image for better understand

enter image description here

i also done step like

  1. clear cache
  2. Deactive Active plugin
  3. delete wpbakery visual composer and install new with same version

but it did not work

Bhargav Chudasama
  • 6,928
  • 5
  • 21
  • 39

2 Answers2

1

This could be the result of plugin conflicts, such as Autoptimize or Async Javascript. I would first try to put the following in the "exclude" section of Autoptimuize and the issue might well go away. "wp-includes/js"

If the issue persists, I would place exclude the following in both plugins:

wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js, js/jquery/jquery.min.js

0

Try this. It may helps. Use customizer's js file array dependency as 'customize-preview' while enqueuing.

wp_enqueue_script( 'customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '1.0', true );
Shiplu
  • 460
  • 6
  • 13