Checkout Rules not Triggering


I have integrated worldpay module in my drupal commerce site. But i am getting read timed out error. After debugging i found out that there is some problem in
commerce_payment_redirect_pane_next_page($order) function which is taking too long, then i moved to this function which is further calling commerce_checkout_complete($order) and it is calling rules_invoke_all('commerce_checkout_complete', $order). What i thinks is that there is some problem in invoking the rules.

Please help me out in finding the solutions and fixing my problem.

Posted: Apr 19, 2013


Anshu_Mishra on April 19, 2013

I have tried debugging the code again.
i have tried executing below lines of code.

$order_id = [Any Order Id];
$order = commerce_order_load($order_id);
rules_invoke_all('commerce_checkout_complete', $order);

i am getting empty array.