Emptying cart causing an error on donate page

Created on 4 May 2021, over 3 years ago
Updated 31 August 2023, about 1 year ago

Problem/Motivation

A error occurs when removing a donation from the card then visiting /donate again.

UnexpectedValueException: Order Items not properly initialized in Drupal\commerce_donation_flow\Plugin\Commerce\CheckoutPane\DonationItemPaneBase::create() (line 54 of modules/contrib/commerce_donation_flow/src/Plugin/Commerce/CheckoutPane/DonationItemPaneBase.php).

Steps to reproduce

  1. Log in (may happen as anonymous)
  2. Go to /donate and make a donation
  3. Go to /cart and remove the donation
  4. Go to /donate

The above error is returned.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia imclean Tasmania

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024