• Resolved EnvisionDesign

    (@envisiondesign)


    Website is configured as a quote system (add to quote, submit quote) instead of cart and checkout.

    It’s been working great for a while now until a couple days ago we’re getting the: There was an error processing your order. Please check for any charges in your payment method and review your order history before placing the order again. Fix now.

    While the error shows on the front end (to the customer) the Quote is submitted and we get notified via email.

    WordPress 6.6.1 \ WooCommerce 9.2.3 \ PHP 8.1.29

    From the ERROR LOG:

    PHP Fatal error: Uncaught TypeError: Automattic\WooCommerce\Utilities\OrderUtil::remove_status_prefix(): Argument #1 ($status) must be of type string, null given, called in /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php on line 629 and defined in /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/src/Utilities/OrderUtil.php:239

    Stack trace: 0 /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(629): Automattic\WooCommerce\Utilities\OrderUtil::remove_status_prefix(NULL) 1 /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(286): WC_Abstract_Order->set_status(NULL) 2 /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(150): WC_Order->set_status(NULL) 3 /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1089): WC_Order->payment_complete() 4 /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1295): WC_Checkout->process_order_without_payment(10820) 5 /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(520): WC_Checkout->process_checkout() 6 /home/MYWEBSITE/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::checkout(”) 7 /home/MYWEBSITE/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 8 /home/MYWEBSITE/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 9 /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action(‘wc_ajax_checkou…’) 10 /home/MYWEBSITE/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax(”) 11 /home/MYWEBSITE/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(false, Array) 12 /home/MYWEBSITE/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 13 /home/MYWEBSITE/public_html/wp-includes/template-loader.php(13): do_action(‘template_redire…’) 14 /home/MYWEBSITE/public_html/wp-blog-header.php(19): require_once(‘/home/sweetbuff…’) 15 /home/MYWEBSITE/public_html/index.php(17): require(‘/home/sweetbuff…’) 16 {main}

    thrown in /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce/src/Utilities/OrderUtil.php on line 239

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @envisiondesign

    From the error log you’ve shared, it appears that a null value is being passed where a string value is expected by the remove_status_prefix() function in the OrderUtil.php file. This is likely causing the “There was an error processing your order” message to appear on the front end.

    To resolve this issue, you may need to review your quote plugin’s code to ensure that a valid order status is always passed to the set_status() function. It might be that the order status is not being set correctly when a quote is submitted, which is why a null value is being passed.

    If you’re not comfortable editing the code yourself, I’d recommend reaching out to a professional developer or the developer of your quote system plugin for assistance.

    I hope this helps! If you have any other questions, feel free to ask.

    Thread Starter EnvisionDesign

    (@envisiondesign)

    As mentioned by Shaheem, the issue was with the Quote plugin passing the wrong thing.

    That company released an update that has now fixed the issue.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @envisiondesign,

    I’m glad to hear that the issue you were experiencing with the Quote plugin has been resolved.

    If you have a few minutes, we’d love if you could leave us a review on the support that you received from our end: https://www.ads-software.com/support/plugin/woocommerce/reviews/

    Thank you and all the best.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.