Skip to content

Missing order_id mapping causing "An order ID should start with 'ord_'" error #1352

@mariuszsienkiewicz

Description

@mariuszsienkiewicz

I have identified an issue where some records in the ps_mollie_payments table have the order_id column set to 0, even after the order has been successfully completed.

This data inconsistency causes a failure when attempting to ship the order via the Mollie block on the Order Details page in the Back Office. The process terminates with the following error:

{
  "success":false,
  "message":"The product(s) could not be shipped!",
  "detailed":"[2026-03-25T13:11:14+0100] Invalid order ID: ''. An order ID should start with 'ord_'."
}

Payload:

ajax=1
action=shipAll
orderId=139139
transactionId=ord_eXo(REDACTED)
productId=
tracking[carrier]=PostNL
tracking[code]=<tracking_code>
tracking[tracking_url]=<tracking_url>

Technical Details

In the ps_mollie_payments table, the affected record (located by cart_id) contains the following data:

  • transaction_id: ord_eXo(REDACTED)
  • cart_id: 442557
  • order_id: 0
  • order_reference: mol_442(REDACTED)
  • method: klarnapaylater
  • bank_status: open
  • created:at: some date
  • update_at: NULL
  • reason: NULL
  • mandate_id: empty string

Summary

This regression appears to have been introduced in version 6.4.0. In previous versions, an empty or zeroed order_id column did not prevent the shipping process, and orders could be successfully shipped to Klarna. Since the update, the module strictly requires the order_id to be correctly mapped to proceed with the shipment.

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