When i'm completing order then go to http://localhost/testing/d8/admin/store/orders/2/payments page it will give error like:

Call to a member function label() on null in /var/www/html/testing/d8/modules/ubercart/payment/uc_payment/src/Form/OrderPaymentsForm.php

CommentFileSizeAuthor
New shipment Drupal8.png48.89 KBMayankkumar Jeshti
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mayank jeshti created an issue. See original summary.

TR’s picture

Priority: Critical » Normal
Status: Active » Closed (duplicate)

That was fixed a long time ago, see #2788963: Call to a member function label() on null. You should use the current version.

Mayankkumar Jeshti’s picture

Status: Closed (duplicate) » Reviewed & tested by the community

Yes, i have used the latest version of the module. that will also give me the same error.

TR’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

You said you're using 8.x-4.0-alpha5. As I told you, this was reported last year and fixed. alpha5 will never change, and will always have this bug. That is how versions work in Drupal. In order to get the fix you either have to apply the patch from that other issue or install the current -dev version of Ubercart.

If you REALLY are using -dev, then you can reopen this issue, change the version, and give details to reproduce this bug including which payment method and how you configured the payment method.