You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
В той строке где фэйлится: $order->get_shipping_total() * 100
Как надо
(float) $order->get_shipping_total() * 100
The text was updated successfully, but these errors were encountered:
PineparksGit
changed the title
Bug: Unsupported operand types: string * int in "wooms/includes/OrderShipment.php:65"
Bug: Критическая ошибка при создании заказа из админ панели
Jan 17, 2024
Как есть
При создании заказа через админ панель, вылетает критическая ошибка, подробности ниже:
Подробности ошибки
Ошибка с типом E_ERROR возникла на строке 65 файла /home/c/cb14101/public_html/wp-content/plugins/wooms/includes/OrderShipment.php. Сообщение об ошибке: Uncaught TypeError: Unsupported operand types: string * int in /home/c/cb14101/public_html/wp-content/plugins/wooms/includes/OrderShipment.php:65
Stack trace:
#0 /home/c/cb14101/public_html/wp-includes/class-wp-hook.php(326): WooMS\OrderShipment::chg_order_data(Array, 9466)
#1 /home/c/cb14101/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#2 /home/c/cb14101/public_html/wp-content/plugins/wooms/includes/Orders.php(442): apply_filters('wooms_order_dat...', Array, 9466, Object(Automattic\WooCommerce\Admin\Overrides\Order))
#3 /home/c/cb14101/public_html/wp-content/plugins/wooms/includes/Orders.php(123): WooMS\Orders::send_order(9466, Object(Automattic\WooCommerce\Admin\Overrides\Order))
#4 /home/c/cb14101/public_html/wp-content/plugins/wooms/includes/Orders.php(292): WooMS\Orders::order_update_to_moysklad(9466)
#5 /home/c/cb14101/public_html/wp-includes/class-wp-hook.php(326): WooMS\Orders::order_update_by_hook(9466)
#6 /home/c/cb14101/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#7 /home/c/cb14101/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /home/c/cb14101/public_html/wp-includes/post.php(4749): do_action('save_post_shop_...', 9466, Object(WP_Post), true)
#9 /home/c/cb14101/public_html/wp-includes/post.php(4862): wp_insert_post(Array, false, true)
#10 /home/c/cb14101/public_html/wp-admin/includes/post.php(453): wp_update_post(Array)
#11 /home/c/cb14101/public_html/wp-admin/post.php(227): edit_post()
#12 {main}
thrown
В той строке где фэйлится: $order->get_shipping_total() * 100
Как надо
(float) $order->get_shipping_total() * 100
The text was updated successfully, but these errors were encountered: