TypeError: Drupal\commerce_order\OrderStorage::loadForUpdate(): Argument #1 ($order_id) must be of type int, null given

Created on 22 April 2025, about 1 month ago

Problem/Motivation

TypeError is being triggered due to calling order loadForUpdate and passing null value

Steps to reproduce

Not clear
we receive the order id from the pg response

Proposed resolution

We need to check if the order id is available before attempting to load it

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇯🇴Jordan Abdelrahman khlefat

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

Comments & Activities

Production build 0.71.5 2024