• Я из Заказы создаю новый заказ и добавляю продукт (пробовал разные добавлять, всегда одна и таже проблема,  при этом при оформлении заказа покупателями все работает. Но вручную не могу создать, выдает ошибку.

    I create a new order from Orders and add a product (I tried to add different ones, always the same problem, while everything works when customers place an order. But I can’t create it manually, it gives an error.

    WordPress 6.2

    Woocommerce 7.5.1

    Fatal error: Uncaught Exception: Неверный товар.
    in /home/d/diskidvd/trading-shop/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 167

    Call stack:

    1. WC_Product_Data_Store_CPT::read()
      wp-content/plugins/woocommerce/includes/class-wc-data-store.php:159
    2. WC_Data_Store::read()
      wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:138
    3. WC_Product::__construct()
      wp-content/plugins/woocommerce/includes/class-wc-product-simple.php:24
    4. WC_Product_Simple::__construct()
      wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:338
    5. WC_Meta_Box_Product_Data::save()
      wp-includes/class-wp-hook.php:308
    6. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:332
    7. WP_Hook::do_action()
      wp-includes/plugin.php:517
    8. do_action()
      wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php:268
    9. WC_Admin_Meta_Boxes::save_meta_boxes()
      wp-includes/class-wp-hook.php:310
    10. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:332
    11. WP_Hook::do_action()
      wp-includes/plugin.php:517
    12. do_action()
      wp-includes/post.php:4715
    13. wp_insert_post()
      wp-includes/post.php:4817
    14. wp_update_post()
      wp-admin/includes/post.php:439
    15. edit_post()
      wp-admin/post.php:227

Viewing 2 replies - 1 through 2 (of 2 total)
  • Saif

    (@babylon1999)

    Hello @dken,

    I create a new order from Orders and add a product (I tried to add different ones, always the same problem, while everything works when customers place an order. But I can’t create it manually, it gives an error.

    It seems that an error is affecting this part of WooCommerce. I recommend disabling any plugins that might be altering the order data.

    If that doesn’t help, then please try disabling all plugins except WooCommerce as well as switching to Storefront.

    If the problem is not present after doing so, then you know there was a plugin conflict. You can enable plugins one by one again to find the culprit.


    If you’re not comfortable doing all of this on the live version of your site, you can create a staging environment using WP-STAGING.

    Let us know how it goes!

    Hi,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Best.

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

The topic ‘Problem create new shop_order’ is closed to new replies.