• Resolved teeboy4real

    (@teeboy4real)


    Hello,

    I dont know why i keep getting critical error in my site, kindly see the error below.

    2023-06-03T14:52:21+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on bool in /home/site.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:225
    Stack trace:
    #0 /home/site.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(651): WC_Cart_Totals->get_items_from_cart()
    #1 /home/site.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(143): WC_Cart_Totals->calculate_item_totals()
    #2 /home/site.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(134): WC_Cart_Totals->calculate()
    #3 /home/site.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1401): WC_Cart_Totals->__construct()
    #4 /home/site.com/public_html/wp-includes/class-wp-hook.php(306): WC_Cart->calculate_totals()
    #5 /home/site.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #6 /home/site.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #7 /home/site.com/public_html/wp-content/plugins/woo-wallet/includes/class-woo-wallet-frontend.php(864): do_action()
    #8 /home/site.com/public_html/wp-includes/class-wp-hook.php(308): Woo_Wallet_Frontend->restore_woocommerce_cart_items()
    #9 /home/site.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #10 /home/site.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #11 /home/site.com/public_html/wp-content/plugins/woocommerce/templates/checkout/thankyou.php(80): do_action()
    #12 /home/site.com/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...')
    #13 /home/site.com/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(279): wc_get_template()
    #14 /home/site.com/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(63): WC_Shortcode_Checkout::order_received()
    #15 /home/site.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output()
    #16 /home/site.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper()
    #17 /home/site.com/public_html/wp-includes/shortcodes.php(355): WC_Shortcodes::checkout()
    #18 [internal function]: do_shortcode_tag()
    #19 /home/site.com/public_html/wp-includes/shortcodes.php(227): preg_replace_callback()
    #20 /home/site.com/public_html/wp-includes/class-wp-hook.php(308): do_shortcode()
    #21 /home/site.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #22 /home/site.com/public_html/wp-includes/blocks/post-content.php(54): apply_filters()
    #23 /home/site.com/public_html/wp-includes/class-wp-block.php(258): render_block_core_post_content()
    #24 /home/site.com/public_html/wp-includes/class-wp-block.php(244): WP_Block->render()
    #25 /home/site.com/public_html/wp-includes/blocks.php(1072): WP_Block->render()
    #26 /home/site.com/public_html/wp-includes/blocks.php(1110): render_block()
    #27 /home/site.com/public_html/wp-includes/block-template.php(242): do_blocks()
    #28 /home/site.com/public_html/wp-includes/template-canvas.php(12): get_the_block_template_html()
    #29 /home/site.com/public_html/wp-includes/template-loader.php(106): include('...')
    #30 /home/site.com/public_html/wp-blog-header.php(19): require_once('...')
    #31 /home/site.com/public_html/index.php(17): require('...')
    #32 {main}
      thrown in /home/site.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 225
    
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The error message you provided indicates that there is an issue with the WooCommerce plugin on your WordPress site. Specifically, it seems to be related to the calculation of cart totals during the checkout process.To troubleshoot and resolve this issue, you can try the following steps:1. Update WooCommerce: Ensure that you are using the latest version of the WooCommerce plugin. If an update is available, go ahead and update it to see if it resolves the issue.2. Check for Plugin Conflicts: Temporarily deactivate all other plugins except WooCommerce and then test the checkout process again. If the error disappears, it suggests that one of the deactivated plugins is causing a conflict. You can then reactivate the plugins one by one to identify the problematic one.3. Switch to a Default Theme: Temporarily switch to a default WordPress theme (e.g., Twenty Twenty-One) and test the checkout process. If the error is resolved, it indicates a theme-related issue. In that case, you may need to contact the theme developer for further assistance.4. Enable WP_DEBUG: Enable WP_DEBUG mode in your WordPress installation to get more detailed error messages. To do this, open your wp-config.php file and set the WP_DEBUG constant to true. This can help provide additional information about the error and assist in troubleshooting.5. Reach Out to Support: If the issue persists after trying the above steps, it’s recommended to contact the WooCommerce support team or the developers of the WooCommerce Wallet plugin. Provide them with the error message you received and any additional relevant details. They should be able to provide more specific guidance and assistance in resolving the issue.Remember to create a backup of your site before making any significant changes or updates to avoid any potential data loss.

    Hi there @teeboy4real

    Did you already have a chance to try out the recommendations Narmeen shared, or otherwise? If so, what happened? Let us know how it went.

    Thanks for chiming-in @narmeen1it.

    Cheers everyone!

    Thread Starter teeboy4real

    (@teeboy4real)

    I have reported this error to the terawallet support and a fix has been promised in the next update see link at

    https://www.ads-software.com/support/topic/critical-error-on-checkout-3/#post-16802575

    Saif

    (@babylon1999)

    I have reported this error to the terawallet support and a fix has been promised in the next update see link at

    Happy to hear that they were able to address the problem! ??

    I will mark this thread as resolved for now. If you have any other questions, please don’t hesitate to create a new thread.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical error on checkout’ is closed to new replies.