Error on manually placing an order
-
When I enter the admin portion of my site to enter a manual order the following error is generating. Any suggestions?
Thanks!
WordPress version 6.0.2 Active theme: Honey Shop (version 1.0) Current plugin: WooCommerce (version 4.5.5) PHP version 8.0.17
Error Details
=============
An error of type E_ERROR was caused in line 431 of the file /home2/corvida3/public_html/hnhapiary/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php. Error message: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /home2/corvida3/public_html/hnhapiary/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:431
Stack trace:
#0 /home2/corvida3/public_html/hnhapiary/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(431): round(”, 6)
#1 /home2/corvida3/public_html/hnhapiary/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php(153): WC_Abstract_Order->get_total_discount()
#2 /home2/corvida3/public_html/hnhapiary/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(41): include(‘/home2/corvida3…’)
#3 /home2/corvida3/public_html/hnhapiary/wp-admin/includes/template.php(1401): WC_Meta_Box_Order_Items::output(Object(WP_Post), Array)
#4 /home2/corvida3/public_html/hnhapiary/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
#5 /home2/corvida3/public_html/hnhapiary/wp-admin/post-new.php(75): require(‘/home2/corvida3…’)
#6 {main}
thrown
- The topic ‘Error on manually placing an order’ is closed to new replies.