I am running into an error when trying to use ET with ECK (http://drupal.org/project/eck 7.x-2.0-rc1+6-dev patched with http://drupal.org/node/1798646#comment-6842494). The problem occurs when trying to view or edit an entity bundle that has been set to be translatable. I tracked it down to being caused by the "$entity" argument that arrives at various functions throughout ET not being an actual loaded entity but just the ID of it. Looking at the functions called i think it might be related to the menu or access hooks' arguments, almost all trackbacks arrive through menu.inc.
Error in ECK at
<...>/<entity_name>/<bundle_name>/<id>
Exception: Cannot initialize entity translation path variables (invalid path scheme). in EntityTranslationDefaultHandler->initPathVariables() (line 1431 of /Library/WebServer/Documents/test/et-eck-test/sites/all/modules/entity_translation/includes/translation.handler.inc).
The functions that receive just an ID and not a loaded entity as i was able to track them:
in entity_translation.admin.inc
- entity_translation_overview
in entity_translation.module
- entity_translation_edit_page
- entity_translation_add_page
- entity_translation_edit_access
- entity_translation_add_access
- entity_translation_tab_access
Comments
Comment #1
fjen commentedCrap, pseudo tags got stripped:
Error in ECK at:
[base path]/[entity name]/[bundle name]/[id]
Comment #2
plachI think this is a duplicate of #1866076: Add support for non-entity load tokens when declaring translations. Closing this one as we have a patch there.
Comment #2.0
klonos...so that pseudo-tags don't get stripped ;)