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.
Customers receive the following error "We're sorry. An error occured while processing your order that prevents us from completing it at this time. Please contact us and we will resolve the issue as soon as possible". However, the order is successfully processed and set to payment received. I believe it happens on products with conditional actions.
Comments
Comment #1
cafuego CreditAttribution: cafuego commentedI kept hitting this too, on a site with COD and PayPal enabled. Using Free Order instead of COD made no difference, so I sadly had to kill a kitten to get free orders through the checkout.
The problem occurs between
uc_cart_checkout_review_form()
anduc_cart_checkout_review_form_submit()
.When the review form is first displayed,
$_SESSION['cart_order']
is set, but after you click submit, it's gone.I've worked around the problem by adding a new session var that keeps a copy of the order_id and put it back in
uc_cart_checkout_review_form_submit()
if it gets unset.I think it's definitely an UC problem and not a UC Free Order problem, though.
Comment #2
naddl CreditAttribution: naddl commentedHad the same problem in my Drupal 6 / Ubercart 2 installation and it helped me a lot.
But now I had upgraded the Shop to Drupal 7 and Ubercart 3, still running on my localhost.
After having all done I tested the shop: The same error occurs again.
My Problem is, that I am not a programmer and so I can not "translate" this hack from Ubercart 2 to Ubercart 3.
I'm kind of desperate while working on this in my limits for weeks.
So maybe anyone could help me, please?
Thanks in advance!
naddl
Comment #3
naddl CreditAttribution: naddl commentedToday I found the reason for my problem. Hope it helps maybe somebody.
After eliminating the entire profile, the ordering process works as fine as it should.I've installed the module "Add to head" and I added some code to the head of every page like the following:
It also works after excludig the profile from the paths "cart/checkout/review" and "cart/checkout"