Testing the 7.x latest git version here, ran into this when submitting the edit page of "Welcome to Spark!" "Every field" type node. It happens when there is more than one taxonomy term but not if there is zero or one terms.

Notice: Array to string conversion in array_diff_assoc() (line 369 of /var/www/html/includes/entity.inc). =>

17: array_diff_assoc() (Array, 1 element)
16: DrupalDefaultEntityController->cacheGet() (Array, 2 elements)
15: TaxonomyTermController->cacheGet() (Array, 2 elements)
14: DrupalDefaultEntityController->load() (Array, 2 elements)
13: entity_load() (Array, 2 elements)
12: taxonomy_term_load_multiple() (Array, 2 elements)
11: taxonomy_autocomplete_validate() (Array, 2 elements)
10: _form_validate() (Array, 2 elements)
9: _form_validate() (Array, 2 elements)
8: _form_validate() (Array, 2 elements)
7: drupal_validate_form() (Array, 2 elements)
6: drupal_process_form() (Array, 2 elements)
5: drupal_build_form() (Array, 2 elements)
4: drupal_get_form() (Array, 2 elements)
3: node_page_edit() (Array, 2 elements)
2: call_user_func_array() (Array, 1 element)
1: menu_execute_active_handler() (Array, 2 elements)
0: main() (Array, 2 elements)


Karlheinz’s picture

Status:Active» Closed (duplicate)

I found out it is a bug in the Taxonomy module, so I filed a bug report there.
#2038055: Notice: Array to string conversion in array_diff_assoc()

Karlheinz’s picture

Status:Closed (duplicate)» Active

Yikes! Wrong issue thread, I didn't mean to change the status! My apologies.

webchick’s picture

Issue summary:View changes
Status:Active» Fixed

Yep, this is a core bug: #1525176: Using array_diff_assoc() for multilevel arrays in DrupalDefaultEntityController->cacheGet() (Funny, I just ran into this on a totally different thing last week, and posted a patch for it. :))

I've added that patch there to the distro, so this should now be fixed once the latest dev release of Spark is made. Thanks for the report!

Status:Fixed» Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.