13 replies [Last post]
shyamsakshay's picture
Offline
Joined: 12/10/2008
Juice: 87

Hello all,
following error occured when we try to order completion.

We're sorry. An error occurred 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.

Thanks and Regards
shyam Prakash pal

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: An error occurred while processing your order that prevents

I think that comes from recurring fees where the order is paid for by the CC API but the recurring fee setup fails. We can't halt the order at that time since money has been collected, but the failed recurring fee needs to be addressed. Does that sound right?

shyamsakshay's picture
Offline
Joined: 12/10/2008
Juice: 87
Re: Re: An error occurred while processing your order that preve

Thanks

shyamsakshay's picture
Offline
Joined: 12/10/2008
Juice: 87
An error occurred while processing your order that prevents us f

I have check all comuter in my office in mozilla IE etc order complete sucessfully. But I got customer complain. We're sorry. An error occurred 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. Watchdogs error "An empty order made it to checkout! Cart order ID: " .. there is no ID..

Any ideas? Thanks.

DeepSky's picture
Offline
Joined: 11/07/2008
Juice: 6
Re: An error occurred while processing your order that prevents

I have the same problem, officially declared no 1 problem. We loose a lot of customers because of this.
As far as I see in code, the error is triggered because the session is empty. We don't use credit card payment, yet the error persists.
uc_cart/uc_cart.php : 1714

function uc_cart_checkout_complete() {
  if (!$_SESSION['do_complete']) {
    drupal_goto('cart');
  }

  $order = uc_order_load(intval($_SESSION['cart_order']));

  if (empty($order)) {
    // Display messages to customers and the administrator if the order was lost.
    drupal_set_message(t("We're sorry.  An error occurred 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."), 'error');
    watchdog('uc_cart', t('An empty order made it to checkout! Cart order ID: @cart_order', array('@cart_order' => $_SESSION['cart_order'])), WATCHDOG_ERROR);
    drupal_goto('cart');
  }

  $output = uc_cart_complete_sale($order, variable_get('uc_new_customer_login', FALSE));

  // Add a comment to let sales team know this came in through the site.
  uc_order_comment_save($order->order_id, 0, t('Order created through website.'), 'admin');

  $page = variable_get('uc_cart_checkout_complete_page', '');
  if (!empty($page)) {
    drupal_goto(variable_get('uc_cart_checkout_complete_page', ''));
  }

  return $output;
}

D5, ubercart 1.9

DeepSky's picture
Offline
Joined: 11/07/2008
Juice: 6
Re: Re: An error occurred while processing your order that preve

assuming the $_SESSION['cart_order'] gets unset somewhere, I've tracked all the unset($_SESSION['cart_order'])
by adding another session variable next to it, and spit it out in the watchdog afterwards.
It looks like for failing orders, the last point of entry is function uc_cart_view.

Also, note that the session does not expire on the server side, because the variable that I've added does get tracked.

  if (!empty($_SESSION['cart_order'])) {
    unset($_SESSION['cart_order']);
     $_SESSION['gili_error'] = 'uc_cart_view'; // an indicator, such as of the current function name
  }

wathchdog error:
An empty order made it to checkout! Cart order ID: , gili session track: uc_cart_view

DeepSky's picture
Offline
Joined: 11/07/2008
Juice: 6
Re: Re: Re: An error occurred while processing your order that p

and this is how an order that didn't output the error looks like (I've added it the watchdog)

2009-11-20 04:59:14 A NOT empty order made it to checkout! Cart order ID: 5126, gili session track: 2009-11-20 04:58:43uc_cart_checkout_form_validate

uc_cart_checkout_form_validate is the last function to unset $_SESSION['cart_order'], unlike uc_cart_view for failed orders

abubin1's picture
Offline
Joined: 03/12/2010
Juice: 53
Re: Re: Re: Re: An error occurred while processing your order th

anyone have solution to this problem? I am facing similar error.

Using ubercart 6.x-2.2

jadowd's picture
Offline
Joined: 09/10/2009
Juice: 77
Re: Re: Re: Re: Re: An error occurred while processing your orde

are you guys still having this issue? I am seeing it in ie6 only. Any thoughts?

dbabbage's picture
Offline
Joined: 04/19/2008
Juice: 32
What a nightmare...

I am seeing this error... only with the "Bank Transfer" payment option, not with a custom payment gateway module that is based on Paypal's module, which is working fine. And no, I'm not only seeing this in IE... we are seeing it in Safari and Firefox. What on earth is going on with this? It had disappeared last night, and I thought one of the many system updates I'd done had perhaps fixed it. However, today it is back, making me wonder whether it is an issue that appears only when the server is under load, e.g. when many sites are calling on memory resources (as CPU is 100% idle at present, but memory is mostly all allocated.) Any ideas?

jadowd's picture
Offline
Joined: 09/10/2009
Juice: 77
Re: What a nightmare...

What I found was that there was a problem that causes your session data to blank out when you are getting a page not found error in watchdog (drupal logging system)

if you are seeing that, then look around for a file, or a broken image link in your css files... at least, that is what was causing this problem for me.

Baart's picture
Offline
Joined: 01/28/2011
Juice: 8
Re: Re: What a nightmare...

We have the same problem. While testing, everything was okay. Customers however always screw things up Eye-wink After reading your post, I've tracked down the uc_cart-watchdog log entries. The entry before the empty-cart line was the same in both cases: "Page not found: /cart/themes/(...).js". I've fixed this by using an absolute path (/themes/(...)) for the javascript. We'll see if it works..

mulberryinteractive's picture
Offline
Joined: 08/20/2010
Juice: 4
Re: Re: Re: Re: Re: Re: An error occurred while processing your

I don't know whether this is still an issue for anyone but I was only seeing it in IE. I have no payment gateways installed just the Payment Method Pack.

I went through all the instances of unset($_SESSION['cart_order']) and found the culprit to be on line 150 of uc_cart.pages.inc. This sorted it for me but I'm a little unsure as to whether I've undone any of the identity theft checks.

dbabbage's picture
Offline
Joined: 04/19/2008
Juice: 32
fbconnect 6.x-1.0-beta9 at fault

In our case, this error was occurring but only with the Bank Deposit module, and not with a credit card gateway that we were using. It occurred intermittently in my Selenium testing (about 55% of the time) but was reported in nearly all real user cases. When I added a ten second pause in the functional tests on the review order page, however, the functional tests then failed 100% of the time, suggesting a race condition involving javascript. From that I finally tied it down to being caused by fbconnect module.

In our case, we were running the closest thing to a stable release of fbconnect which was fbconnect 6.x-1.0-beta9. When I upgraded to the current development version 6.x-1.x-dev this has resolved the issue. It is not clear to me what was going on with the earlier fbconnect module and the CVS messages do not suggest that this problem was being directly addressed but obviously they discovered some funkyness that must have had this as a side effect.

Hope this saves someone out there some of the massive headache I experienced tracking this down!