Error after editing shipment form (where tracking code is) on placed order

Created on 18 March 2024, 3 months ago

Describe your bug or feature request.

I'm not sure if this bug appears only on my production site (and the dev one), but I'm receiving this error when I try to save shipment status where tracking code is located (in this case, path: /admin/commerce/orders/51/shipments/24/edit):

InvalidArgumentException: Missing required property "title". w Drupal\commerce_shipping\ShipmentItem->__construct() (line 64 in /modules/contrib/commerce_shipping/src/ShipmentItem.php).

Everything seems to be configured properly as everything else works smoothly (even after confirming shipment, workflow works perfectly fine - just without tracking code which cannot be edited in my case). The point is there is missing title field in manage fields in shipment types configuration section, which is visible in manage form display and can be edited from the orders view ("Shipment #1" for example).

I'll be grateful for specifying what I'm doing incorrectly here? Or maybe the product is missing something?

If a bug, provide steps to reproduce it from a clean install.

Tested on commerce 2.38 version with Drupal 10.1.4 and PHP version 8.1

πŸ› Bug report
Status

Closed: works as designed

Version

2.38

Component

Order

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @montogro
  • Nevermind, it was issue on my side. I missed checking the Generate variation titles based on attribute values. on product variation type configuration (/admin/commerce/config/product-variation-types/default/edit). While I was importing products it was setting up empty title label (even when it's required - that's why it was throwing this error). Now the SKU number is title itself.

  • Status changed to Closed: works as designed 3 months ago
Production build 0.69.0 2024