Enabled almost the full package of i18n, taxonomy translation as well. Now when i open an add-form of content type (with plenty of fields, taxonomy fields as well), the multiple (19 and doubles when saving) notices come into a log with a same message:
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of /site/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.module).
And before them, two warning messages:
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /site/includes/entity.inc).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 354 of /site/includes/entity.inc).
Core 7.15
Entity API 7.x-1.0-rc3 (or 7.x-1.0-rc3+10-dev, whatever, the same)
The site is functioning,
if i am right, it was discussed here and the verdict is this one. Does it mean that i have to stop paying attention to these warnings and notices and it works normal?
Comments
Comment #1
batusy commentedI get the same error when I change any of my content. Do you know how to fix it?
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of E:\wamp\www\drupal\x\includes\entity.inc).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Undefined property: stdClass::$vid in i18n_taxonomy_term_name() (line 471 of E:\wamp\www\drupal\x\sites\all\modules\i18n\i18n_taxonomy\i18n_taxonomy.module).
Notice: Trying to get property of non-object in NodeGalleryBehaviorHandler->NodeGalleryRelationshipCrud() (line 84 of E:\wamp\www\drupal\x\sites\all\modules\node_gallery\plugins\entityreference\behavior\NodeGalleryBehaviorHandler.class.php).
EntityMalformedException: Missing bundle property on entity of type node_gallery_relationship. in entity_extract_ids() (line 7562 of E:\wamp\www\drupal\x\includes\common.inc).
Comment #2
jose reyero commented@Dukuu,
That "verdict" just means that the error comes from somewhere else, there's a module passing an incomplete term object, you'll need to find that one.
(Then you can reopen if is it anything that needs fixing here).
Comment #3
rootical commentedUnfortunately I also face the same problem. These are the first lines of error.
Notice: Undefined property: stdClass::$vid у i18n_taxonomy_term_name() (лінія 471 у /home/u3472/drupal/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.module).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! у DrupalDefaultEntityController->load() (лінія 178 у /home/u3472/drupal/includes/entity.inc).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! у DrupalDefaultEntityController->cacheGet() (лінія 355 у /home/u3472/drupal/includes/entity.inc).
I can`t even guess what cause the problem. I`ve got a clean installation with i18n, domains enabled, taxonomy with localized terms.. what could even cause a problem i don`t know(
Error appears when editing nodes with term reference fields which could even don`t have any taxonomy terms set.
Also it appears when creating a new term in a vocabulary (
Comment #4
rakun commentedSame here.
Subscribe
Comment #5
lufecir commentedI have the problem only when using the term_reference_tree module (http://drupal.org/project/term_reference_tree). Apparently this module creates its own 'term' objects, leaving out the 'vid' attribute. I am currently testing a patch I have written for this module. If it proves to be OK I will deliver it to the maintainer of that module.
But I'm not sure if other people's issues are related to mine.
Comment #6
Dukuu commentedlufecir, I checked and yes, i confirm, my errors come only when content type with term reference tree is touched. If needed, i can try your patch for my project. Thanks for your work in forward!
Comment #7
doronin commentedhttp://drupal.org/node/1514794
this very simple patch fixes the problem
Comment #8
pcambraConfirming that the link posted by @simplyrank1 in #7 fixes the issue, as it is a term reference tree issue.
Comment #9
devad commentedMarked as duplicate of #1514794: i18n compatibility. Patch is available there and tested as RTBC.
Related issue for those using Entity Translation: #2101195: Entity Translation (Title module) compatibility.
Comment #10
devad commented