Title: Conflict with Visual Composer Plugin
Last modified: August 22, 2016

---

# Conflict with Visual Composer Plugin

 *  Resolved [fatjester](https://wordpress.org/support/users/fatjester/)
 * (@fatjester)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/conflict-with-visual-composer-plugin/)
 * When using the plugin, I am getting an “Uncaught TypeError: undefined is not 
   a function” error when trying to create a new sidebar, causing the new sidebar
   to never save or get created.
 * This is a recent conflict with the “Visual Composer” plugin (panels.js file).
 * I’ve also submitted a support ticket to them, with a code hotfix.
 * Since the plugin is fairly common, I thought you should also know since this 
   might come up more frequently.
 * [https://wordpress.org/plugins/custom-sidebars/](https://wordpress.org/plugins/custom-sidebars/)

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

 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/conflict-with-visual-composer-plugin/#post-5201966)
 * Hi [@fatjester](https://wordpress.org/support/users/fatjester/),
 * Thanks for letting us know about this conflict, your help is really appreciated.
 * Are you talking about conflict with the following “Visual Composer” plugin?
 * [http://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431](http://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431)
 * If you can please share here the support topic link and a code hotfix so that
   it will also help others facing the same issue.
 * Kind Regards,
    WPMU DEV
 *  [thehungit86](https://wordpress.org/support/users/thehungit86/)
 * (@thehungit86)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/conflict-with-visual-composer-plugin/#post-5201977)
 * I think it is the same conflict problem with Woocommerce Product Tab Pro plugin.
 *  Thread Starter [fatjester](https://wordpress.org/support/users/fatjester/)
 * (@fatjester)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/conflict-with-visual-composer-plugin/#post-5201980)
 * [@wpmu](https://wordpress.org/support/users/wpmu/) DEV
    Yes, that is the plugin.
   Since it’s a premium plugin, there isn’t a public support topic link but the 
   developer has said they will look at it to find a better way to check this.
 * Here is the hotfix I have…
    There is a file in the plugin called panel.js that
   has this line: req && req.data && req.data.match(/vc_inline=true/) && $(‘#vc_logo’).
   addClass(‘vc_ajax-loading’);
 * I have replaced it with this (wrapping their line with an element check, and 
   function check):
    if ( req && req.data && (typeof req.data.match == ‘function’)){
   req && req.data && req.data.match(/vc_inline=true/) && $(‘#vc_logo’).addClass(‘
   vc_ajax-loading’); }
 * It’s not very elegant, but I’m not very good with javascript shorthand, and I
   wanted to leave their code moderately unaltered for now.
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/conflict-with-visual-composer-plugin/#post-5202064)
 * Hi [@fatjester](https://wordpress.org/support/users/fatjester/),
 * Thank you for your reply and sharing the solution.
 * I hope it will help others facing the same issue when using “Visual Composer”
   plugin.
 * I have shared again the provided solution as below by formatting it so that users
   can easily use it.
 * Change the following line of code in the Visual Composer” plugin file called 
   panel.js as shown below :
 * **Before Editing:**
 *     ```
       req && req.data && req.data.match(/vc_inline=true/) && $('#vc_logo').addClass('vc_ajax-loading');
       ```
   
 * **After Editing:**
 *     ```
       if ( req && req.data && (typeof req.data.match == 'function')) {
          req && req.data && req.data.match(/vc_inline=true/) && $('#vc_logo').addClass('vc_ajax-loading');
       }
       ```
   
 * Have a great day!
 * Cheers,
    WPMU DEV
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/conflict-with-visual-composer-plugin/#post-5202066)
 * Hi [@thehungit86](https://wordpress.org/support/users/thehungit86/),
 * I hope you are well today.
 * Could you please tell me more information about the conflict problem like plugin
   link, error message that is getting, whether it is already reported anywhere 
   etc. so that i can troubleshoot it?
 * Kind Regards,
    WPMU DEV
 *  [webestampa](https://wordpress.org/support/users/webestampa/)
 * (@webestampa)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/conflict-with-visual-composer-plugin/#post-5202265)
 * [@wpmu](https://wordpress.org/support/users/wpmu/) DEV
    Hi, I wanted to point
   out that I had the same problem of compatibility with these plugins but following
   your instructions, now everything works perfectly.
 * WordPress 4.0 | Visual Composer 4.3.3 | CustomSidebars 2.1.0.0
    Thanks
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/conflict-with-visual-composer-plugin/#post-5202273)
 * Hi [@webestampa](https://wordpress.org/support/users/webestampa/),
 * That’s great news! Glad it’s working for you now 🙂
 * Thank you for your feedback.
 * If we can be of any further assistance please don’t hesitate to ask 🙂
 * Have a fantastic day!
 * Cheers,
    WPMU DEV

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

The topic ‘Conflict with Visual Composer Plugin’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/conflict-with-visual-composer-plugin/#post-5202273)
 * Status: resolved