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.

#7 ubercart-cc_number-undefined-index-1551130.patch1.27 KBbtanner
PASSED: [[SimpleTest]]: [MySQL] 2,457 pass(es). View
#6 Screenshot at 2012-06-23 17:40:20.png344.09 KBmaxchock
Members fund testing for the Drupal project. Drupal Association Learn more


TR’s picture

Status: Active » Postponed (maintainer needs more info)

I've never seen this notice. Please provide more information about where you see this and what you're doing when the notice is shown.

mgifford’s picture

I was here admin/store/orders/2/credit

I'm updating & 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.

TR’s picture

I don't see that notice for orders placed through the website with the test gateway or with 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.

mgifford’s picture

I'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.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

You can reopen the issue if you can provide steps to reproduce the error.

maxchock’s picture

I have the same error too today.


btanner’s picture

Version: 7.x-3.1 » 7.x-3.x-dev
Status: Closed (cannot reproduce) » Needs review
1.27 KB
PASSED: [[SimpleTest]]: [MySQL] 2,457 pass(es). View

Steps 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.

longwave’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hockey2112’s picture

Version: 7.x-3.x-dev » 7.x-3.4
Status: Closed (fixed) » Active

I 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".

Notice: Undefined index: cc_number in uc_payment_method_credit() (line 509 of /home/mysite/public_html/sites/all/modules/ubercart/payment/uc_credit/uc_credit.module).

Any ideas for a fix?

longwave’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.