Skip to content

Bad Request 400 on synced product save #3724

@kaktus28

Description

@kaktus28

🔎 Isolate the bug

  • [X ] I have confirmed this occurs in the most recent version of WordPress, WooCommerce, and Facebook for WooCommerce.
  • I have confirmed this occurs when only WooCommerce and Facebook for WooCommerce are active and when using a default WordPress or WooCommerce theme.

✍️ Describe the bug

While editing a product that is synced with meta catalogue, when changing wariants prices or any other variable, saving gives error in console: POST https://my-website.pl/wp-admin/admin-ajax.php 400 (Bad Request).

🚶‍♀️ Steps to reproduce

Wordpress 6.8.3 + Woocommerce 10.3.5 + Facebook for WooCommerce 3.5.14

  1. Set a price on a product
  2. Sync the product
  3. Try editing the price and try to save
Image
  1. The first step
  2. The next step…

✔️ Expected behavior

Saved data

🗃 Logs

I hanged the domain name in logs.

load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2 POST https://my-website.pl/wp-admin/admin-ajax.php 400 (Bad Request)
send @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2
ajax @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2
(anonymous) @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:5
e. @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:5
save_changes @ meta-boxes-product-variation.min.js?ver=10.3.5:1
save_variations @ meta-boxes-product-variation.min.js?ver=10.3.5:1
dispatch @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2
v.handle @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.8.3:2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions