• Resolved wfcrafts

    (@wfcrafts)


    This error appeared a couple of weeks ago and has started again today 10/07/23

    2023-07-10T06:32:50+00:00 CRITICAL Uncaught Error: Call to a member function get_type() on bool in /var/www/vhosts/XXXXX.co.uk/httpdocs/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:1126

    It seems to add several previous purchased items to the order, along with stating multiple shipping listings. I use ‘Free Shipping’ so listed as:-

    Free shipping, Free shipping, Free shipping

    On the order it states – Subtotal 36.93 Total 6.75 Spoke with customer and all they purchased (only 1 item in basket) 1 item at 6.75

    Could anyone shed some light on this please

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter wfcrafts

    (@wfcrafts)

    The complete error report from above

    2023-07-10T06:32:50+00:00 CRITICAL Uncaught Error: Call to a member function get_type() on bool in /var/www/vhosts/XXXX.co.uk/httpdocs/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:1126
    Stack trace: 0 /var/www/vhosts/XXXX.co.uk/httpdocs/wp-includes/class-wp-hook.php(308): WC_Payments_Payment_Request_Button_Handler->ajax_add_to_cart() 1 /var/www/vhosts/XXXX.co.uk/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 2 /var/www/vhosts/XXXX.co.uk/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 3 /var/www/vhosts/XXXX.co.uk/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action() 4 /var/www/vhosts/XXXX.co.uk/httpdocs/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax() 5 /var/www/vhosts/XXXX.co.uk/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 6 /var/www/vhosts/XXXX.co.uk/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 7 /var/www/vhosts/XXXX.co.uk/httpdocs/wp-includes/template-loader.php(13): do_action() 8 /var/www/vhosts/XXXX.co.uk/httpdocs/wp-blog-header.php(19): require_once('…') 9 /var/www/vhosts/XXXX.co.uk/httpdocs/index.php(17): require('…') 10 {main} thrown in /var/www/vhosts/XXXX.co.uk/httpdocs/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php on line 1126
    Thread Starter wfcrafts

    (@wfcrafts)

    Is there any support for me please?

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @wfcrafts

    The error message you’re seeing suggests that there’s an issue with the ‘get_type()’ function, which is part of the WooCommerce Payments plugin. This function is trying to call on an object that doesn’t exist or is not recognized, hence the error message.

    In the context of WooCommerce, the ‘get_type()’ function is often used to determine the type of a product, for instance, whether it’s a simple product, a variable product, etc. It seems like there’s an issue with how this function is being called or used in your WooCommerce Payments plugin.

    The issue with multiple shipping listings and incorrect order subtotal could be related to this, as the ‘get_type()’ function might be used as part of the process to calculate shipping and order totals.

    Here are a few steps you can take to troubleshoot this issue:

    • Update all your plugins and themes: Ensure that you’re running the latest versions of all your plugins, including WooCommerce and WooCommerce Payments, and your theme. This is because the issue might be due to a bug that has been fixed in a more recent version.
    • Switch to a default theme: Temporarily switch to the default Storefront theme. This is to check if the issue might be caused by your theme.
    • Deactivate all other plugins: Deactivate all plugins except WooCommerce and WooCommerce Payments to check if there’s a conflict with another plugin. If the issue disappears, reactivate your plugins one by one to identify the culprit. You can find a more detailed explanation of how to conduct a conflict test here.
    • Contact your web host: The error message also suggests that the issue might be related to your server configuration. It might be worth reaching out to your web host for assistance.

    If none of these steps resolve the issue, please get back to us with following:

    • System Status Report: navigate to WooCommerce → Status. Select Get system report and then Copy for support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here. This will help us investigate further and provide you with a more accurate solution.

    Once we have more information, we’ll be able to assist you further.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New error with orders’ is closed to new replies.