Title: Error ajax.php
Last modified: August 18, 2022

---

# Error ajax.php

 *  Resolved [shrimplover](https://wordpress.org/support/users/shrimplover/)
 * (@shrimplover)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-ajax-php/)
 *     ```
       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 3 years, 9 months ago by [shrimplover](https://wordpress.org/support/users/shrimplover/).

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [templateinvaders](https://wordpress.org/support/users/templateinvaders/)
 * (@templateinvaders)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16004543)
 * Hi [@shrimplover](https://wordpress.org/support/users/shrimplover/)
 * Could you provide errors details?
 *  [Magda](https://wordpress.org/support/users/prodesignerpl/)
 * (@prodesignerpl)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16004923)
 * 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 3 years, 8 months ago by [Magda](https://wordpress.org/support/users/prodesignerpl/).
 *  Plugin Author [templateinvaders](https://wordpress.org/support/users/templateinvaders/)
 * (@templateinvaders)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16005050)
 * Hi [@prodesignerpl](https://wordpress.org/support/users/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](https://wordpress.org/support/users/templateinvaders/)
 * (@templateinvaders)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16007424)
 * Hi [@prodesignerpl](https://wordpress.org/support/users/prodesignerpl/)
 * The issue was fixed in the 2.0.2 version.
 *  [Magda](https://wordpress.org/support/users/prodesignerpl/)
 * (@prodesignerpl)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16009127)
 * 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](https://wordpress.org/support/users/templateinvaders/)
 * (@templateinvaders)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16009144)
 * [@prodesignerpl](https://wordpress.org/support/users/prodesignerpl/)
 * You need to exclude wishlist page from the cache. It will fix your issue.
 *  [Magda](https://wordpress.org/support/users/prodesignerpl/)
 * (@prodesignerpl)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16009188)
 * 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 3 years, 8 months ago by [Magda](https://wordpress.org/support/users/prodesignerpl/).
 *  Plugin Author [templateinvaders](https://wordpress.org/support/users/templateinvaders/)
 * (@templateinvaders)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16027192)
 * Hi [@prodesignerpl](https://wordpress.org/support/users/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](https://wordpress.org/support/users/prodesignerpl/)
 * (@prodesignerpl)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16027928)
 * 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 3 years, 8 months ago by [Magda](https://wordpress.org/support/users/prodesignerpl/).
    -  This reply was modified 3 years, 8 months ago by [Magda](https://wordpress.org/support/users/prodesignerpl/).
 *  Plugin Author [templateinvaders](https://wordpress.org/support/users/templateinvaders/)
 * (@templateinvaders)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16028109)
 * [@prodesignerpl](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/ti-woocommerce-wishlist/assets/icon-256x256.gif?rev=2469447)
 * [TI WooCommerce Wishlist](https://wordpress.org/plugins/ti-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ti-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ti-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/ti-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ti-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ti-woocommerce-wishlist/reviews/)

## Tags

 * [ajax.php](https://wordpress.org/support/topic-tag/ajax-php/)
 * [cpu](https://wordpress.org/support/topic-tag/cpu/)

 * 10 replies
 * 3 participants
 * Last reply from: [templateinvaders](https://wordpress.org/support/users/templateinvaders/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/error-ajax-php/#post-16028109)
 * Status: resolved