Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Критическая ошибка при создании заказа из админ панели #540

Open
PineparksGit opened this issue Jan 17, 2024 · 0 comments

Comments

@PineparksGit
Copy link

Как есть
При создании заказа через админ панель, вылетает критическая ошибка, подробности ниже:

Подробности ошибки

Ошибка с типом 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

@PineparksGit PineparksGit changed the title Bug: Unsupported operand types: string * int in "wooms/includes/OrderShipment.php:65" Bug: Критическая ошибка при создании заказа из админ панели Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant