When clicking on "Add product" /product/add/default
I am getting the following error message:
InvalidArgumentException: Values passed to the commerce stock level field must be floats in Drupal\commerce_stock_field\Plugin\Field\FieldType\StockLevel->setValue() (line 109 of /web/modules/contrib/commerce_stock/modules/field/src/Plugin/Field/FieldType/StockLevel.php).
Adding products used to work fine until a few days ago. I can remove products without errors. I am getting this InvalidArgumentException error only when clicking "Add product".
I tried switching the stock configuration ( /admin/commerce/config/stock/settings ) from "local stock" to "always active" but this error remains.
Drupal core 8.9.6
Drupal commerce 8.x-2.21
Drupal commerce stock 8.x-1.0-alpha4
Any suggestions on how to debug this?
Comments
Comment #2
olafkarsten commentedduplicate of #3173944: Since the last update of Drupal Commerce, I no longer have access to my products