Hi,
I try to create in Drupal 7.12 with views and relation, a page view that display a list of content type (testimonial).
Each testimonial are related (with the relation module) to a customer node.
With this view page, i want to display all fields of the node (testimonial), and the fields from the node related to (customer).
I found this option in view in the box content when setting de view page.
When i try in view to set the relation, and save i got this error.
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->cacheGet() (ligne 354 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->cacheGet() (ligne 354 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Notice : Undefined index: dans views_plugin_row_node_view->render() (ligne 101 dans /Users/xav/Developpement/www/yogarik/sites/all/modules/contrib/views/modules/node/views_plugin_row_node_view.inc).
Notice : Undefined property: stdClass::$type dans _node_extract_type() (ligne 370 dans /Users/xav/Developpement/www/yogarik/modules/node/node.module).
Notice : Undefined property: stdClass::$nid dans node_build_content() (ligne 1359 dans /Users/xav/Developpement/www/yogarik/modules/node/node.module).
Notice : Undefined property: stdClass::$type dans entity_extract_ids() (ligne 7503 dans /Users/xav/Developpement/www/yogarik/includes/common.inc).
Notice : Undefined index: field_name dans field_language() (ligne 278 dans /Users/xav/Developpement/www/yogarik/modules/field/field.multilingual.inc).
Notice : Undefined index: field_name dans field_language() (ligne 278 dans /Users/xav/Developpement/www/yogarik/modules/field/field.multilingual.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->cacheGet() (ligne 354 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->cacheGet() (ligne 354 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Notice : Undefined index: dans views_plugin_row_node_view->render() (ligne 101 dans /Users/xav/Developpement/www/yogarik/sites/all/modules/contrib/views/modules/node/views_plugin_row_node_view.inc).
Notice : Undefined property: stdClass::$type dans _node_extract_type() (ligne 370 dans /Users/xav/Developpement/www/yogarik/modules/node/node.module).
Notice : Undefined property: stdClass::$nid dans node_build_content() (ligne 1359 dans /Users/xav/Developpement/www/yogarik/modules/node/node.module).
Notice : Undefined property: stdClass::$type dans entity_extract_ids() (ligne 7503 dans /Users/xav/Developpement/www/yogarik/includes/common.inc).
Notice : Undefined index: field_name dans field_language() (ligne 278 dans /Users/xav/Developpement/www/yogarik/modules/field/field.multilingual.inc).
Notice : Undefined index: field_name dans field_language() (ligne 278 dans /Users/xav/Developpement/www/yogarik/modules/field/field.multilingual.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->load() (ligne 178 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->cacheGet() (ligne 354 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Warning : array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! dans DrupalDefaultEntityController->cacheGet() (ligne 354 dans /Users/xav/Developpement/www/yogarik/includes/entity.inc).
Notice : Undefined index: dans views_plugin_row_node_view->render() (ligne 101 dans /Users/xav/Developpement/www/yogarik/sites/all/modules/contrib/views/modules/node/views_plugin_row_node_view.inc).
Notice : Undefined property: stdClass::$type dans _node_extract_type() (ligne 370 dans /Users/xav/Developpement/www/yogarik/modules/node/node.module).
Notice : Undefined property: stdClass::$nid dans node_build_content() (ligne 1359 dans /Users/xav/Developpement/www/yogarik/modules/node/node.module).
EntityMalformedException : Propriété de bundle manquante sur l'entité de type node. dans entity_extract_ids() (ligne 7501 dans /Users/xav/Developpement/www/yogarik/includes/common.inc).I joined a screen shoot of the backoffice and the options i try to used.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| Capture d’écran 2012-04-18 à 13.22.00.png | 60.46 KB | xadag |
Comments
Comment #1
naught101 commentedI can't see any relation module-related errors in there, it all seems to be to do with nodes and fields. Palming this off on views for now. Please pass it back if the appears actually relation-related.
Comment #2
merlinofchaos commentedThe actual error there is what you get when you attempt to entity_load an empty value, or maybe if it gets an incorrect value.
What i would recommend you do is to go to the line in entity.inc and put in a little debug message. It'll require knowing enough PHP to be able to identify the type of data and dump a backtrace when the wrong data is being array_flipped -- and find out where that entity_load is being called from, and with what wrong data.