After enabling 2 of my vars at admin/config/system/tokenizevariables and submitting the form, 6 notices pop up (they're all the same as in the issue title). Refreshing the page does not change anything, neither does clearing the cache.

The 2 vars I enabled are both of type "text".

Comments

vmichnowicz’s picture

I receive similar errors too. One of my variables is an object and this causes a fatal error when trying to view the admin page.

carso’s picture

I see that problem after install the spanish translation.

Any ideas??

dipen chaudhary’s picture

Assigned: Unassigned » deepakaryan1988
dipen chaudhary’s picture

Issue summary: View changes

Updated issue summary.

klonos’s picture

I see repeated such messages (php notices) in my watchdog log, but I haven't noticed any issues with the website functionality though. There seems to be no apparent pattern in the location/referrer. Is there any way to make them less cryptic than that like perhaps say something about the module/variable that caused it?

jaydee1818’s picture

I'm also getting this message repeatedly in my watchdog logs. My site is also multilingual.

mr.andrey’s picture

Issue summary: View changes

Subscribing...

Prancz_Adam’s picture

Subscribing...
Multilingual site.

I can not find out what module cause this notice message in my watchdog:

Notice: Array to string conversion in drupal_attributes() (line 2421 of /web/pranczek/portfoliofotos.hu/includes/common.inc).

Any idea how can I find out what module is the guilty?

dscoop’s picture

Does anyone have a solution for this issue? I get the error when using:

function mymodule_test_form_submit($form, &$form_state) {
  $form_state['rebuild'] = TRUE;
}
dscoop’s picture

FYI, then I fixed this by changing this:

  $form['messages'] = array(
    '#type' => 'hidden',
    '#value' => array(),
  );
  if ( @$form_state['messages'] && is_array(@$form_state['messages']) ) {
    $form['messages']['#value'] = $form_state['messages'];
  }

To this:

  $form['messages'] = array(
    '#type' => 'hidden',
    '#value' => '',
  );
  if ( @$form_state['messages'] && is_array(@$form_state['messages']) ) {
    $form['messages']['#value'] = json_encode($form_state['messages']);
  }