I am getting the following erros in recent report when submitting a webform

Object of class stdClass could not be converted to string in /home/public_html/sites/all/modules/blame/blame.module on line 345.
Backtrace:
array_diff(array)[blame.module:345];
.blame_diff(array)[blame.module:287];
..blame_form_submit(array)[form.inc:786];
...form_execute_handlers(array)[form.inc:426];
....drupal_process_form(array)[form.inc:120];
.....drupal_get_form(array)[?:?];
......call_user_func_array(array)[menu.inc:350];
.......menu_execute_active_handler(a:0:{})[index.php:17];
........index.php

I am going to disable the module for now but any ideas what is causing this?

Thanks,
Paul

Comments

jyee’s picture

Assigned: Unassigned » jyee
Issue summary: View changes

This is caused because the blame module assumes that everything in the form_state['values'] array is diffable (strings, numbers, etc). Some modules include a full object which causes the "stdClass could not be converted" error. I've got a fix for this in the 7.x-1.x branch and will provide a backport for the 6.x-1.x branch.

jyee’s picture

Status: Active » Closed (duplicate)
Related issues: +#1477102: array_diff() cannot convert objects to string

This is actually a duplicate of #1477102.