For some reason function inline_conditions_rules_condition_info() (remains in inline_conditions.rules.inc) is being executed on install, without the main .module file being loaded. This results in the following fatal error:

Error: Call to undefined function inline_conditions_get_info() in D:\my\site\modules\inline_conditions\inline_conditions.rules.inc, line 7

Loading the file using include_once() solves it in our case.

/**
 * Implements hook_rules_condition_info().
 */
function inline_conditions_rules_condition_info() {

  // For some reason this function is being executed on install without the main
  // .module file being loaded, so load manually.
  include_once(drupal_get_path('module', 'inline_conditions') . '/inline_conditions.module');

  $inline_conditions = inline_conditions_get_info();
  $conditions = array();

  if (module_exists('commerce_order')) {

Comments

lmeurs’s picture

Status: Active » Closed (duplicate)

It also happened for Commerce Discount and seems to be a rules problem, see #2324587: Rules might be triggered too early in the bootstrap. Closing this issue, sorry for the noise.