Closed (fixed)
Project:
Web service client
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2012 at 22:11 UTC
Updated:
26 Apr 2013 at 17:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
designfitsu commentedAnyone has fix for this yet? We run into the same issue.
Comment #2
gmaheux commentedOn one of my project I encountered the same error as you.
It is impossible to use wsclient module when using entity_translation module. More meaningful, when I create the first webservice with wsclient module and then we try to create a new entity or activate a module, we have :
Drupal logs : Undefined index: translations in EntityTranslationDefaultHandler :: loadMultiple ()
and just after, apache logs : Fatal error: Can not access empty property in sites / all / modules / contrib / entity_translation / includes / translation.handler.inc on line 343.
This error comes from the fact that entity_translation module uses in his hook_entity_info_alter(&$entity_info), the translation parameter to define whether it should or should't translate this entity. Check hook_entity_info() function.
To work around this error, I applied in one of my custom module, which is dependent of wsclient module, the following code :
At this time I don't need to have some options in translation parameter of this entity for my webservice but i think it's possible to work on this option directly in the hook_entity_info() of wsclient module.
Comment #3
klausiHm, I think this might be triggered due to the fact that wsclient entities are marked as fieldable, which does not make much sense.
Let's disable fields for wsclient_service configuration entities. Does the following patch fix the issue?
Comment #4
gmaheux commentedThis patch fix the issue. I saw this fieldable option but i thought that there was a reason to have this at true.
Thanks for the patch.
Comment #5
klausiCommitted, thanks for the feedback!