I created a rule and when setting an action, an error occurs:

Fatal error: Unsupported operand types in /home/coyote/httpdocs/pierdeipanema/sites/all/modules/rules/rules/rules.admin.inc on line 815

Sorry my poor english.

Best regards

Drupal 6.4
Php 5
MySql 5
Apache 2

Comments

ivrh’s picture

Hi. The same error. The same configuration.

When adding "Tokenized e-mail" this error occures:
Fatal error: Unsupported operand types in /var/www/html/sites/all/modules/rules/rules/modules/rules.rules.inc on line 368

ivrh’s picture

var dumping the given string

/**
 * Action form submit implementation: Apply the core actions form submit
 */
function rules_core_action_execute_submit(&$settings, &$form, &$form_state) {
  $element = $form_state['element'];
  $info = rules_get_element_info($element);
  if ($info['configurable']) {
    $function = $info['action_name']. '_submit';
    //$settings = $function($form['settings'], $form_state) + $settings;
	 var_dump($function($form['settings'], $form_state));
	 var_dump($settings);
	 exit;
  }
}

I am getting this on the screen:

array(3) { ["recipient"]=>  string(1) "A" ["subject"]=>  string(1) "A" ["message"]=>  string(8) "

A
" } string(5) "Array" 

which looks wrong to me as adding a string to an array is wrong operation.

coyoterj’s picture

I applied the patch described in this topic Fatal error when saving a condition/ action but the error continues ...

Best regards

Marco Antônio
www.pierdeipanema.com.br

coyoterj’s picture

One thousand apologies.

I applied the patch so wrong.

Now worked.

Sorry... :(

coyoterj’s picture

Status: Active » Closed (fixed)
mitchell’s picture

Component: Code » Rules Core

Updated component.