Hi,

I have installed ubercart from ubercart 7.x-3.0-beta2.zip and running on drupal 7.0. I am able to add products to shopping cart. In checkout form, after filling all the information and click on "Review Order" button, getting the following error.

Notice: Undefined property: UcOrder::$payment_details in uc_payment_method_cod() (line 258 of C:\wamp\www\drupal-7.0\sites\all\modules\ubercart\payment\uc_payment_pack\uc_payment_pack.module).
Notice: Undefined property: UcOrder::$payment_details in uc_payment_method_cod() (line 259 of C:\wamp\www\drupal-7.0\sites\all\modules\ubercart\payment\uc_payment_pack\uc_payment_pack.module).
Notice: Undefined property: UcOrder::$payment_details in uc_payment_method_cod() (line 260 of C:\wamp\www\drupal-7.0\sites\all\modules\ubercart\payment\uc_payment_pack\uc_payment_pack.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'delivery_month' cannot be null: INSERT INTO {uc_payment_cod} (order_id, delivery_month, delivery_day, delivery_year) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => 30 [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => ) in uc_payment_method_cod() (line 262 of C:\wamp\www\drupal-7.0\sites\all\modules\ubercart\payment\uc_payment_pack\uc_payment_pack.module).

Please help me!!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR’s picture

Status: Active » Needs review
FileSize
6.95 KB

I think this patch will solve the issues with the COD payment method. Please try it and let me know if it works.

longwave’s picture

@TR: there are several misspellings of "recieve" in the comments in that patch.

Status: Needs review » Needs work

The last submitted patch, 1107402.patch, failed testing.

TR’s picture

Status: Needs review » Needs work
FileSize
6.95 KB

Whoops. Very embarrassing because I know better, then cut and paste replicated the error...

Here's the new patch. testbot is still having problems with fixed point releases, so ignore that.

TR’s picture

Status: Needs work » Needs review

The last submitted patch, 1107402.patch, failed testing.

TR’s picture

Status: Needs work » Fixed

Committed to 7.x-3.x then backported and committed to 6.x-2.x.

vallabh’s picture

Anybody till now was able to install ubercart in drupal 7.0?

TR’s picture

@vallabh: I don't fully understand your question. The bug you reported only affects the COD payment method. COD is not used by very many people, which is why the bug was not noticed before. All the other payment methods work fine.

enrikito’s picture

Version: 7.x-3.0-beta2 » 7.x-3.x-dev

7.x-3.x-dev 2011-Apr-19

+1

TR’s picture

Status: Fixed » Postponed (maintainer needs more info)

@enrikito: What errors are you seeing?

enrikito’s picture

in COD payment method

TR’s picture

Priority: Critical » Normal

@enrikito: The problems reported by the original poster have been fixed. If you think there is an additional problem you need to provide some details.

enrikito’s picture

sorry...

If clic in COD payment method the error in this report occurs when click on "Review Order" button

bwynants’s picture

I'm seeing an error too. Dev download from April 26:

Please notice 'Let customers enter a desired delivery date' is OFF in the settings

26-04-2011 22:21:34 drupal[59874] http://xxx|1303849294|php|127.0.0.1|http://xxx/cart/checkout|http://xxx/cart/checkout|1||PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'delivery_month' cannot be null: INSERT INTO {uc_payment_cod} (order_id, delivery_month, delivery_day, delivery_year) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array
(
[:db_insert_placeholder_0] => 10
[:db_insert_placeholder_1] =>
[:db_insert_placeholder_2] =>
[:db_insert_placeholder_3] =>
)
in uc_payment_method_cod() (line 272 of /xxx/sites/all/modules/ubercart/payment/uc_payment_pack/uc_payment_pack.module).

michalmajzlik’s picture

When you check checkbox "Let customers enter a desired delivery date." for COD, error wont display. And if you dont want display date at checkout page, hide with css.

Not best, but temporary while update is not release, is it ok.

MPeli’s picture

FileSize
101.55 KB
223.62 KB
225.58 KB

I am getting the same errors while using COD. It is not possible to finish an order. See the attached pictures.

ali_b’s picture

+1

TR’s picture

Status: Postponed (maintainer needs more info) » Needs work

Hmm, I don't know what was going on with that patch - it's named after an entirely different issue and it looks like it's just a code cleanup/review done while I was examining the code to see where the bug was. I don't see anything in the patch that would have fixed the problem. I'll try again.

longwave’s picture

Status: Needs work » Fixed

Fix committed.

Status: Fixed » Closed (fixed)

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