Skip to content

Saving new product throws PDOException #110

@berrytimmermans

Description

@berrytimmermans

Description

After upgrading from Craft CMS 4 / Commerce 4 to Craft CMS 5 / Commerce 5, saving a new Digital Product throws a PDOException because the price field is missing from the INSERT query into commerce_purchasables.

Steps to reproduce

  1. Upgrade Craft CMS from v4 to v5 (The upgrade and migration completed successfully without any errors.)
  2. Upgrade Craft Commerce from v4 to v5 (The upgrade and migration completed successfully without any errors.)
  3. Install or keep craftcms/digital-products v4.0.3
  4. Go to Commerce → Products → Digital Products
  5. Create a new digital product and save it

Additional info

  • Craft version: Craft Pro 5.10.1

  • PHP version: 8.4.20

  • Database driver & version: MySQL 8.0.40

  • Plugins & versions:

  • Craft Commerce: 5.6.5

  • Digital Products: 4.0.3

  • Freeform: 5.15.13

  • Link Vault: 5.0.3

  • Mollie for Craft Commerce: 4.4.1

  • Redactor: 4.2.0

  • Redactor Anchors: 1.5.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions