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.
Error message:
Notice: Undefined index: cc_number in uc_payment_method_credit() (line 463 of /DRUPAL7/sites/all/modules/ubercart/payment/uc_credit/uc_credit.module).
Please fix this notice.
Comment | File | Size | Author |
---|---|---|---|
#7 | ubercart-cc_number-undefined-index-1551130.patch | 1.27 KB | btanner |
#6 | Screenshot at 2012-06-23 17:40:20.png | 344.09 KB | maxchock |
Comments
Comment #1
TR CreditAttribution: TR commentedI've never seen this notice. Please provide more information about where you see this and what you're doing when the notice is shown.
Comment #2
mgiffordI was here admin/store/orders/2/credit
I'm updating http://drupal.org/project/uc_chase_paymentech & it is possible that this is coming from something that's wrong in the upgrade. A lot has changed since we posted the D6 version of this code so trying to play catchup.
That seemed like an error that could well be unique to the uc_credit.module though. Could also be it's waiting for something from the payment processor that wasn't passed to it.
Comment #3
TR CreditAttribution: TR commentedI don't see that notice for orders placed through the website with the test gateway or with authorize.net or with a private gateway module I use. Are you creating your order from the admin interface or some other way?
In Ubercart 7.x-3.1, cc_number does not appear at all in line 463 of uc_credit.module, but it does appear in line 466. That suggests to me that you don't really have Ubercart 7.x-3.1 installed, or that you've modified uc_credit.module.
Comment #4
mgiffordI'll get back with more info but can't seem to replicate it at the moment. May well have been tied to bad code in the upgrade process.
Comment #5
TR CreditAttribution: TR commentedYou can reopen the issue if you can provide steps to reproduce the error.
Comment #6
maxchock CreditAttribution: maxchock commentedI have the same error too today.
Comment #7
btanner CreditAttribution: btanner commentedSteps to reproduce:
Create an order setting credit card as payment method at: admin/store/orders/create
View order at: admin/store/orders/%
Error details:
Notice: Undefined index: cc_number in uc_payment_method_credit() (line 466 of //sites/all/modules/ubercart/payment/uc_credit/uc_credit.module).
Patch attached for review.
Comment #8
longwaveCommitted, thanks.
Comment #10
hockey2112 CreditAttribution: hockey2112 commentedI am experiencing this issue in 7.x-3.4. It occurs when I create an order from the back-end and then view that order as the "shopper".
Any ideas for a fix?
Comment #11
longwaveThanks for the report. Fix committed in http://drupalcode.org/project/ubercart.git/commitdiff/2dae39c