• When making any setting changes or clicking the Save button on the plugin’s setting page, I get the following error in the browser console:

    
    admin.js?ver=2.1.2:391 Uncaught TypeError: Cannot read properties of undefined (reading 'send')
        at updateMainTriggerEle (admin.js?ver=2.1.2:391)
        at HTMLInputElement.<anonymous> (admin.js?ver=2.1.2:356)
        at HTMLInputElement.dispatch (jquery.min.js?ver=3.6.0:2)
        at HTMLInputElement.v.handle (jquery.min.js?ver=3.6.0:2)
    

    I’ve reinstalled the plugin to make sure nothing’s missing.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Gal Baras

    (@galbaras)

    Forgot to mention that this is a new installation of the plugin on a test site for a site that runs the previous version successfully. I was testing the update after reading about some issues with the latest release, and pow!

    Plugin Author Woosuite

    (@themealien)

    Hi Gal,

    Sorry to hear you are experiencing issues.

    The problem is we are using wp.ajax.send to make the ajax call

    The wp.ajax object is defined in the wp-includes/js/wp-util.js, it is called by default by WordPress

    Wordpress Utils JS file is not loaded properly so it caused the error and you can check to see if that file is loaded within your admin side?

    Thread Starter Gal Baras

    (@galbaras)

    After not getting a reply, I decided to update the plugin on the live site and see what happens, and it seems OK.

    Looking at the admin page code, the test site really isn’t loading wp-utils.js, while the live site does.

    What would cause that?

    I am also facing this issue

    We have the plugin “Disable Woocommerce Bloat” installed. I temporarily disabled this plugin and now the save feature works.

    Plugin Author Woosuite

    (@themealien)

    @galbaras honestly, we couldn’t say without recreating your test environment. It could be anything.

    @1stwebdesigns we will try to create your issue using Disable Woocommerce Bloat and look into a different way of saving the setting,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘JavaScript error – can’t save settings’ is closed to new replies.