• Resolved jubilo

    (@jubilo)


    I am experiencing problems with woocommerce ajax, my currently installed template is Woodmart. This problem is happening about 3 updates ago. I have tested it on more or less 5 sites.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author John Darrel

    (@johndarrel)

    Hi,

    We didn’t change the ajax process in the last 3 updates of the plugin.

    Try this:
    1. Please check with the browser inspector if there is an error in the ajax call.
    2. Let the “Hide My WP > Change Paths > API Security” path as default and accessible if the theme uses the REST API in the frontend for Woocommerce.
    https://hidemywpghost.com/kb/customize-paths-in-hide-my-wp-ghost/#hide_rest_api
    3. Set the firewall at Hide My WP > Change Paths > Firewall to minimum if there are parameters that are not passing the firewall.

    Hope this helps,
    John

    Thread Starter jubilo

    (@jubilo)

    I did all the checks you requested, I did not change anything in Hide My WP > Change Paths > API Security.
    It’s all accessible and default wordpress.

    When I am in the home or store and try to select a variation the layout breaks and displays the following error:

    Uncaught SyntaxError: Identifier ‘wwsWidget’ has already been declared (at wws-public-script.js:1:1)

    When I enter the product and select a variation and select “Add to cart” the template loading icon is continuously loading and from the console I see the following error:

    combine.min.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')
        at Object.success (combine.min.js:1:93057)
        at c (jquery.min.js:2:28327)
        at Object.fireWith [as resolveWith] (jquery.min.js:2:29072)
        at l (jquery.min.js:2:79901)
        at XMLHttpRequest.<anonymous> (jquery.min.js:2:82355)
    success @ combine.min.js:1
    c @ jquery.min.js:2
    fireWith @ jquery.min.js:2
    l @ jquery.min.js:2
    (anonymous) @ jquery.min.js:2
    load (async)
    send @ jquery.min.js:2
    ajax @ jquery.min.js:2
    s.ajax.s.ajax @ jquery-migrate.min.js:2
    (anonymous) @ combine.min.js:1
    dispatch @ jquery.min.js:2
    v.handle @ jquery.min.js:2

    I also attach links with images of the 2 errors:
    Err 1 : https://ibb.co/715XwTn
    Err 2 : https://ibb.co/dMYNPmk

    The store is in production so it forces me to deactivate the plugin so it can work.

    Thread Starter jubilo

    (@jubilo)

    Dejo también una copia de combine.min.js : https://upcdn.io/W142hJkSwsSSaPGFTKzByhT

    Plugin Author John Darrel

    (@johndarrel)

    Hi,

    I checked the website from your screenshot and I didn’t get the error when I check the product variation, chart, and other pages.

    Did you test using a different browser when you are not logged in?
    Also, could be the cache plugin (if you use one) when you delay the javascript or jquery.

    We didn’t get any similar issues from other users and most of them are using Woocommerce with product variations.

    Best, John

    Thread Starter jubilo

    (@jubilo)

    Have checked the site and it works because I deactivated the plugin I am currently using a similar one but it works fine. It’s not a cache problem because I don’t use cache plugin.
    I can’t leave the site down indefinitely for testing because it is a production site.
    I have tested it on several sites with the Woodmart template and they all have the same problem.

    Thread Starter jubilo

    (@jubilo)

    It is true, we tested the plugin on a separate site (since ours is a multisite) and the error does not occur. Maybe it is some incompatibility of several factors in multisite.

    Plugin Author John Darrel

    (@johndarrel)

    Good,

    in this case, you can switch off the option

    Hide My WP > Tweaks > Change Options > Change Paths for Logged Users

    to avoid changing the paths while you are logged to your website.

    https://hidemywpghost.com/kb/activate-security-tweaks/#change_paths_logged_users

    Best, John

    Thread Starter jubilo

    (@jubilo)

    Thanks works perfectlyThank you it works perfectly!

    Plugin Support Peter

    (@petersquirrly)

    That’s great to hear! Should you encounter any further difficulties, do let us know.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Woocommerce ajax incompatibility’ is closed to new replies.