Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
New shipment Drupal8.png | 48.89 KB | Mayankkumar Jeshti |
Comments
Comment #2
TR CreditAttribution: TR commentedThat was fixed a long time ago, see #2788963: Call to a member function label() on null. You should use the current version.
Comment #3
Mayankkumar Jeshti CreditAttribution: Mayankkumar Jeshti as a volunteer and at cmsMinds commentedYes, i have used the latest version of the module. that will also give me the same error.
Comment #4
TR CreditAttribution: TR commentedYou 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.