• Resolved shrimplover

    (@shrimplover)


    Hi. My website runs on Sideground.
    
    Unfortunately, your plugin keeps throwing errors, so my server and CPU are busy.
    
    "wp-content/plugins/ti-woocommerce-wishlist/includes/api/ajax.php"
    
    Sindeground would like to know how to limit the server requests to solve the problem.
    • This topic was modified 2 years, 3 months ago by shrimplover.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @shrimplover

    Could you provide errors details?

    Magda

    (@prodesignerpl)

    Hello, new (2.0.1) Problems – AJAX:

    When adding all to cart: error – 500

    ?wc-ajax=tinvwl 500

    c.ajax({
                    url: tinvwl_add_to_wishlist.wc_ajax_url,
                    method: "POST",
                    cache: !1,
                    data: i,
                    beforeSend: function(t) {
                        t.setRequestHeader("X-WP-Nonce", tinvwl_add_to_wishlist.nonce)

    CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($function) must be a valid callback, function “wvs_simple_product_cart_url” not found or invalid function name in

    After adding to cart or removing from list one product message is: wishlist is empty, but its not. After refresh, i still have other products in wishlist.

    • This reply was modified 2 years, 2 months ago by Magda.
    Plugin Author templateinvaders

    (@templateinvaders)

    Hi @prodesignerpl

    This is an integration issue with the WooCommerce Variation Swatches – Pro plugin.
    The plugin author updated their code so we will add a fix in the upcoming update also.

    Plugin Author templateinvaders

    (@templateinvaders)

    Hi @prodesignerpl

    The issue was fixed in the 2.0.2 version.

    Magda

    (@prodesignerpl)

    500 – yes.

    but this not:

    After adding to cart or removing from wishlist one product message is: wishlist is empty, but its not. After refresh, i still have other products in wishlist.

    And i disabled WooCommerce Variation Swatches – Pro plugin.

    Plugin Author templateinvaders

    (@templateinvaders)

    @prodesignerpl

    You need to exclude wishlist page from the cache. It will fix your issue.

    Magda

    (@prodesignerpl)

    I don’t have cache – i work on localhost without w3 total cache or something like plugins. I have checked this in incognito too – with emptying browser cache – the same result.

    • This reply was modified 2 years, 2 months ago by Magda.
    Plugin Author templateinvaders

    (@templateinvaders)

    Hi @prodesignerpl

    It could be three possible bottlenecks to produce such an issue:

    1. Your web server PHP setup disabled the short_open_tag feature. We just released version 2.0.4 to fix this issue. Just proceed with automatic updates.

    2. You have some cache issues. Purge all possible cache including your local browser.

    3. You override wishlist table templates in your active theme. You can always check the status of templates while navigating to Dashboard->WooCOmmerce-> Status and scroll the page down to the section “TI WooCommerce Wishlist Templates”.

    Magda

    (@prodesignerpl)

    Still not working.

    I find wird behavior.

    If im administrator or im not login i have the same thing:
    if i remove product in wishlist – i dont have link wishlist/somerandomlistnuber, and i have information – no product in the list, but they are.

    If im login as administrator i have 403 error in in wishlist even i remove cache, remove cookies etc:

    wp-content/plugins/ti-woocommerce-wishlist/includes/api/ajax.php

    next:

    i have analytics.min.js script – with few scripts in it. Like initialisation of hotjar, ga4, adwords and facebook.

    if i remove hotjar, ga4, adwords and facebook – is the same behavior,

    but

    if i don`t remove facebook script:

    
    ! function(f, b, e, v, n, t, s) {
      if (f.fbq) return;
      n = f.fbq = function() {
        n.callMethod ?
          n.callMethod.apply(n, arguments) : n.queue.push(arguments)
      };
      if (!f._fbq) f._fbq = n;
      n.push = n;
      n.loaded = !0;
      n.version = '2.0';
      n.queue = [];
      t = b.createElement(e);
      t.async = !0;
      t.src = v;
      s = b.getElementsByTagName(e)[0];
      s.parentNode.insertBefore(t, s)
    }
    
    (window, document, 'script',
      'https://connect.facebook.net/en_US/fbevents.js');
    fbq('init', '1123123123123');
    fbq('track', 'PageView');

    i still have 403, but wishlist working without ajax.`

    • This reply was modified 2 years, 2 months ago by Magda.
    • This reply was modified 2 years, 2 months ago by Magda.
    Plugin Author templateinvaders

    (@templateinvaders)

    @prodesignerpl

    If im administrator or im not login i have the same thing:
    if i remove product in wishlist – i dont have link wishlist/somerandomlistnuber, and i have information – no product in the list, but they are.

    Please, test the 2.0.5 version because 2.0.4 included the wrong file for the wishlist owner.

    Be sure that you purged all possible cache.

    If im login as administrator i have 403 error in in wishlist even i remove cache, remove cookies etc:

    wp-content/plugins/ti-woocommerce-wishlist/includes/api/ajax.php

    Your webserver has some security settings that blocked direct requests to this file OR your page has cached expired nonce (Don’t use cache time more than 12 hours).

    `i have analytics.min.js script – with few scripts in it. Like initialisation of hotjar, ga4, adwords and facebook.

    if i remove hotjar, ga4, adwords and facebook – is the same behavior,

    but

    if i don`t remove facebook script:

    If you don’t get any JavaScript errors on the console you don’t need to make such experiments, it will just get you new issues because of possible cached assets, etc.

    i still have 403, but wishlist working without ajax.

    Since the 2.0.0 version, all behaviors for post events on the wishlist table were removed in favor of AJAX requests. It’s not possible.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error ajax.php’ is closed to new replies.