• Resolved nisreen5

    (@nisreen5)


    After updating WooCommerce to the latest version, our customers are experiencing an error when submitting their orders. They are receiving an error message that says, “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.” but in the dashboard for admin her receive the orders

    in the log file:

    PHP Fatal error: Uncaught TypeError: Automattic\WooCommerce\Utilities\OrderUtil::remove_status_prefix(): Argument #1 ($status) must be of type string, null given, called in /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php on line 629 and defined in /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/src/Utilities/OrderUtil.php:239
    Stack trace: 0 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(629): Automattic\WooCommerce\Utilities\OrderUtil::remove_status_prefix() 1 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-order.php(286): WC_Abstract_Order->set_status() 2 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-order.php(150): WC_Order->set_status() 3 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1089): WC_Order->payment_complete() 4 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1295): WC_Checkout->process_order_without_payment() 5 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(520): WC_Checkout->process_checkout() 6 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-includes/class-wp-hook.php(324): WC_AJAX::checkout() 7 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 8 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 9 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action() 10 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax() 11 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 12 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 13 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-includes/template-loader.php(13): do_action() 14 /var/www/vhosts/grandsleepjo.com/httpdocs/wp-blog-header.php(19): require_once(‘…’) 15 /var/www/vhosts/grandsleepjo.com/httpdocs/index.php(17): require(‘…’) 16 {main}

    thrown in /var/www/vhosts/grandsleepjo.com/httpdocs/wp-content/plugins/woocommerce/src/Utilities/OrderUtil.php on line 239

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @nisreen5,

    Thank you for reaching out.

    The error you’re seeing suggests that there’s an issue with the order status. Specifically, it seems that a null value is being passed as an argument where a string is expected.

    In most cases that we’ve come across this error, we were able to notice this to be an SMTP-related issue. Installing a plugin like WP Mail SMTP and configuring your mail server will probably resolve the issue.

    Can you please try it and let us know how it goes?

    Thread Starter nisreen5

    (@nisreen5)

    We were utilizing a ‘Request a Quote’ plugin for our WooCommerce store, and encountered an error upon updating WooCommerce. The plugin support team was able to resolve the issue and release an updated version, which resolved the error

    Hi @nisreen5,

    Glad to hear it – thanks for letting us know!

    Have a wonderful day ahead!

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

The topic ‘after update, it show error’ is closed to new replies.