• Resolved fatjester

    (@fatjester)


    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://www.ads-software.com/plugins/custom-sidebars/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @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?

    https://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

    I think it is the same conflict problem with Woocommerce Product Tab Pro plugin.

    Thread Starter fatjester

    (@fatjester)

    @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.

    Hi @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

    Hi @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

    (@webestampa)

    @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

    Hi @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.