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.
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
Comment #1
lmeurs CreditAttribution: lmeurs commentedIt 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.