Call to a member function getTotalPrice() on null in commerce_paypal_form_views_form_commerce_cart_form_default_alter()

Created on 8 April 2023, over 1 year ago
Updated 24 May 2023, over 1 year ago

Problem/Motivation

https://mysite/admin/structure/views/view/commerce_cart_form/preview/def...|https://mysite/admin/structure/views/view/commerce_cart_form|2||

Error: Call to a member function getTotalPrice() on null in commerce_paypal_form_views_form_commerce_cart_form_default_alter() (line 55 of /mysite/html/modules/contrib/commerce_paypal/commerce_paypal.module)

#0 /mysite/html/core/lib/Drupal/Core/Extension/ModuleHandler.php(562): commerce_paypal_form_views_form_commerce_cart_form_default_alter()

Steps to reproduce

going to this view: https://mysite/admin/structure/views/view/commerce_cart_form
hitting preview
nothing happens ie. No query run
This error shows in log

While I have commerce_paypal enabled it is not configured for use on the system so I am not sure why it is being called at all since it was not enabled as a gateway.

It is in the checkout flow being used. I believe the module automatically places it there.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

User experience

Created by

🇺🇸United States SocialNicheGuru

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

Comments & Activities

Production build 0.71.5 2024