I installed the latest commerce kickstart from June 13th. I am getting this error when trying to finish checkout:

RulesException: Unable to get variable <em class="placeholder">order</em>, it is not defined. in RulesState->get() (line 154 of /var/aegir/platforms/commerce_kickstart/profiles/commerce_kickstart/modules/contrib/rules/includes/rules.state.inc).

I tried with the example payment method and bank transfer. The error can be reproduced here:
http://kickstart.atontrade.es

I'm not sure if i should post this in kickstart issue queue or here?

Comments

softmax’s picture

This problem seems to be related to http://drupal.org/node/1190842.

tripper54’s picture

I'm having the same problem on on return from external payment method. I followed the link in #1, updated rules and entity API and cleared all cache tables, but I'm still having the same problem.

tripper54’s picture

Update: the culprit ended up being the stock decrement rule from commerce_stock. Updating commerce_stock to the latest dev version and clearing caches fixed the problem for me.

I discovered this by disabling the rules triggered by "complete checkout" one by one and testing.

Hope this helps.

rszrama’s picture

Status: Active » Closed (duplicate)

The demo site isn't available any more. It looks like fixes were found for related issues, and I'll add that late last week we fixed a bug that would produce this error if you visited /checkout without anything in your shopping cart. I'm going to mark this as a duplicate of that issue unless you can provide steps to reproduce it some other way.

ranx’s picture

Updating the commerce_stock to latest dev fixed the error for me as well.