• Resolved xarvan

    (@xarvan)


    When I click on Wallet Topup and go to the page that allows you to purchase credits, and while I’m on that page if I click on any of the menus items in my navigation or just click on the logo of the site to goto homepage the site breaks. In the console I see this file can’t be fetched: https://cdnjs.cloudflare.com/ajax/libs/less.js/4.1.1/less.min.js.map:

    I have to go back and disable the plugin for the site to work again.

    Can you please help with this?
    Thank yuo

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @xarvan This might be a theme issue also. Could you please switch to any WordPress default theme and let us know?

    For reference we are not using https://cdnjs.cloudflare.com/ajax/libs/less.js/4.1.1/less.min.js.map in our plugin.

    Thread Starter xarvan

    (@xarvan)

    Thank you for getting back to me. I’m using Hello Elementor, it’s a very simple Theme but I’ll try your solution and see what happens.

    Thank you

    Plugin Author Subrata Mal

    (@subratamal)

    @xarvan Also it might be any other plugin issue. Also, try to check with only WooCommerce and TeraWallet plugins.

    Thread Starter xarvan

    (@xarvan)

    Hello again, I looked into this matter a bit further. I’m using a side cart on my website and as I mentioned here before it breaks the site. I contacted the guys the side cart plugin developers and they told me this:

    The error is coming from WC’s cart file.
    
    Here is the log, you can also check the log file in wp-content folder, the file name is debug.log
    
    When side cart requests Woocommerce to give product total, WC throws error.
    It works fine when plugin is disabled because no other code on your site is requesting product total on your home page.
    The issue is with the wallet plugin, when you add wallet top up, it acts like a product & so when you request product’s total from woocommerce by using the following code
    
    apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key );
    
    it throws the following error code.
    This means that the product created by wallet plugin isn’t compatible with WC functions.
    
    [19-Aug-2021 20:21:08 UTC] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string * int in /home/xarvan/SpoonFetish.com/wp-content/plugins/woocommerce/includes/class-wc-cart.php:2032
    
    Stack trace:
    
    #0 /home/xarvan/SpoonFetish.com/wp-content/plugins/woocommerce-side-cart-premium/templates/xoo-wsc-body.php(94): WC_Cart->get_product_subtotal()
    
    #1 /home/xarvan/SpoonFetish.com/wp-content/plugins/woocommerce-side-cart-premium/includes/xoo-framework/class-xoo-helper.php(57): include('/home/xarvan/Sp...')
    
    #2 /home/xarvan/SpoonFetish.com/wp-content/plugins/woocommerce-side-cart-premium/templates/xoo-wsc-container.php(61): Xoo_Helper->get_template()
    
    #3 /home/xarvan/SpoonFetish.com/wp-content/plugins/woocommerce-side-cart-premium/includes/xoo-framework/class-xoo-helper.php(57): include('/home/xarvan/Sp...')
    
    #4 /home/xarvan/SpoonFetish.com/wp-content/plugins/woocommerce-side-cart-premium/templates/xoo-wsc-markup.php(24): Xoo_Helper->get_template()
    
    #5 /home/xarvan/SpoonFetish.com/wp-content/plugins/woocommerce-side-cart-premium/includes/xoo-framework/class-xoo-helper.php(57): include('/home/xarvan/Sp...')
    
    #6 /home/xarvan/SpoonFetish.com/wp-content/plugins/woocommerce-side-cart-premium/includes/class-xoo-wsc-frontend.php(147): Xoo_Helper->get_template()
    
    #7 /home/xarvan/SpoonFetish.com/wp-includes/class-wp-hook.php(303): Xoo_Wsc_Frontend->cart_markup()
    
    #8 /home/xarvan/SpoonFetish.com/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    
    #9 /home/xarvan/SpoonFetish.com/wp-includes/plugin.php(470): WP_Hook->do_action()
    
    #10 /home/xarvan/SpoonFetish.com/wp-includes/general-template.php(3031): do_action()
    
    #11 /home/xarvan/SpoonFetish.com/wp-content/themes/hello-elementor/footer.php(23): wp_footer()
    
    #12 /home/xarvan/SpoonFetish.com/wp-includes/template.php(770): require_once('/home/xarvan/Sp...')
    
    #13 /home/xarvan/SpoonFetish.com/wp-includes/template.php(716): load_template()
    
    #14 /home/xarvan/SpoonFetish.com/wp-includes/general-template.php(92): locate_template()
    
    #15 /home/xarvan/SpoonFetish.com/wp-content/themes/hello-elementor/index.php(37): get_footer()
    
    #16 /home/xarvan/SpoonFetish.com/wp-includes/template-loader.php(106): include('/home/xarvan/Sp...')
    
    #17 /home/xarvan/SpoonFetish.com/wp-blog-header.php(19): require_once('/home/xarvan/Sp...')
    
    #18 /home/xarvan/SpoonFetish.com/index.php(17): require('/home/xarvan/Sp...')
    
    #19 {main}
    
      thrown in /home/xarvan/SpoonFetish.com/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 2032
    
     
    
    I know it’s hard to understand.
    The bottom line is you can install any other well designed cart plugin which requests “product total” on your home page & the page will crash.
    I have installed my competitor’s plugin “XT floating cart” plugin on your site, you can activate it from the dashboard and test.
    
    You can forward this message to “wallet” support team and they will understand.

    Is there a way to get around this?
    Please let me know.

    Plugin Author Subrata Mal

    (@subratamal)

    @xarvan Please contact with woocommerce-side-cart-premium plugin support team.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin Breaks The Site’ is closed to new replies.