• Resolved Robin Roelofsen

    (@robinroelofsen)


    Found out that Smush conflics with wpDiscuz.

    When both are active, you cannot edit a form in wpDiscuz. When Smush is deactivated, form editing in wpDiscuz works normal.

    Can this be added as a bug?

Viewing 12 replies - 1 through 12 (of 12 total)
  • @robinroelofsen, Hey I’m trying to replicate the issue you reported.

    I tried using the basic form with an additional text field, it worked out fine for me. Are you using some extra fields in there? Can you give ma screenshot or any other additional details to replicate this issue.

    Here is the form on Twenty seventeen.

    Thanks, Umesh

    Thread Starter Robin Roelofsen

    (@robinroelofsen)

    Okay, I guess I have been a bit vague on changing the form ?? Sorry, Umesh!

    I mean changing the form under Comments >> wpDiscuz >> Forms. Select the default form.

    When you’re there, try to move a field or add a field or whatever. It doesn’t work.

    Turn off Smush and it works.

    That seems to be working ok as well, unless I’m missing some info.

    Robin, Do you see any error in console?

    Thread Starter Robin Roelofsen

    (@robinroelofsen)

    Recorded a Loom video. Sorry, the WordPress is in Dutch. I can reshoot if necessary.

    First I try to edit the form with Smush on, then I turn Smush off and try it again.

    https://www.useloom.com/share/10489898b65440dea63a2229c017a070

    Thread Starter Robin Roelofsen

    (@robinroelofsen)

    Console error:
    Uncaught TypeError: Cannot read property ‘views’ of undefined

    at HTMLDocument.<anonymous> (shortcode-insert.min.js?ver=1.6.3:1)

    at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,jquery-u&load[]=i-sortable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp-pointer,zxcvbn-async,password-strength-meter,moxiejs,plup&load[]=load&ver=4.9.6:2)

    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,jquery-u&load[]=i-sortable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp-pointer,zxcvbn-async,password-strength-meter,moxiejs,plup&load[]=load&ver=4.9.6:2)

    at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,jquery-u&load[]=i-sortable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp-pointer,zxcvbn-async,password-strength-meter,moxiejs,plup&load[]=load&ver=4.9.6:2)

    at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-position,jquery-u&load[]=i-sortable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp-pointer,zxcvbn-async,password-strength-meter,moxiejs,plup&load[]=load&ver=4.9.6:2)

    Thread Starter Robin Roelofsen

    (@robinroelofsen)

    Shoot, seems like Smush is conflicting with Caldera Forms causing a conflict with wpDiscuz…

    Stopped all plugins and went one by one. Smush and wpDiscuz works, Caldera Forms and wpDiscuz works, Smush and Caldera Formas and wpDiscuz doesn’t work.

    Plot thickens…

    @robinroelofsen, Woah! Quite some debugging there. Thanks for narrowing it down, I’m trying to replicate it.

    Sorry for all the trouble that Smush might have caused you.

    Thread Starter Robin Roelofsen

    (@robinroelofsen)

    Comes with the territory, no worries. Hope you can replicate it now.

    Yep, able to replicate it. Hope to fix it soon.

    For the time being, you can add this code to a plugin or theme’s function.php Be very careful while adding the code. This will make sure everything keeps working even if Smush is enabled.

    This bit of code removes a JS file that Smush enqueue, which is having conflict with the plugin. Removing this won’t cause or disable any functional issue of Smush.

    /**
     * Dequeue Smush script.
     *
     * Hooked to the wp_print_scripts action, with a late priority (100),
     * so that it is after the script was enqueued.
     */
    function dequeue_smush_script() {
       wp_dequeue_script( 'smush-backbone-extension' );
    }
    add_action( 'wp_print_scripts', 'dequeue_smush_script', 100 );

    Thanks, Umesh

    @robinroelofsen, Is it resolved already, I see the thread status been updated to Resolved?

    Thread Starter Robin Roelofsen

    (@robinroelofsen)

    Sorry… busy ?? Trying now.

    Thread Starter Robin Roelofsen

    (@robinroelofsen)

    Yep, it works! Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Smush conflicting with wpDiscuz’ is closed to new replies.