after updating entity translation, when I create a commerce entity, it goes to the translation page, then I get this error: "Array to string conversion in module_implements()"
i put a dsm in the includes/module and it said:
dsm($hook) = entity_translation_insert
dsm($hook_info[$hook]['group']) = ... (Array, 2 elements)
0 (String, 18 characters ) entity_translation
1 (String, 18 characters ) entity_translation
for the rule $include_file = isset($hook_info[$hook]['group']) && module_load_include('inc', $module, $module . '.' . $hook_info[$hook]['group']);
so it seems that it indeeds get's an array instead of a string.
can anyone solve this please?
Comments
Comment #1
yeaha commentedupdate: It stops giving the error message when commenting
/**
* Implements hook_hook_info().
*/
/*function entity_translation_hook_info() {
//dsm($hooks);
$hooks['entity_translation_insert'] = array(
'group' => 'entity_translation',
);
$hooks['entity_translation_update'] = array(
'group' => 'entity_translation',
);
$hooks['entity_translation_delete'] = array(
'group' => 'entity_translation',
);
return $hooks;
}*/
in the entity_translation.module, apparently somewhere else this is already defined. don't know where.
Comment #2
plachTry and have a look to
entity_translation_module_implements_alter().Comment #3
plachComment #4
yeaha commentedentity_translation_module_implements_alter(). does nothing as far as i can see except reordering implementation['entity_translation'] group when the hook is entity_info_alter or menu_alter
when commented out entity_translation_hook_info, i get in translation_module_implements_alter():
hook = entity_translation_update and the implementations = array('metatag'->'entity_translation')
when not commented out entity_translation_hook_info, i get in translation_module_implements_alter():
hook = entity_translation_update and the implementations = array('metatag'->FALSE)
so i tried commenting out entity_translation_module_implements_alter() and also did:
case 'entity_translation_update':
$implementations['entity_translation'] = 'entity_translation';
$implementations['metatag'] = 'entity_translation';
break;
but that both changed nothing to the error, so entity_translation_hook_info stays comment for the moment.
Comment #5
plachIf the issue you are experiencing is tied to metatags, it may be related to #1845326: Metatags not loading correctly with beta4.
Comment #6
mvdve commentedI can confirm that the error is linked to metatags. I have the same error when saving a commerce product with entity translation. After disabling the metatags module the error is gone.
Not sure if the mentioned issue solves the problem. The available patches (#65 and #75) do not solve the issue for now.
Comment #7
plachLet's wait for the metag issue to be fixed.
Comment #8
magic_al commentedExactly the same issue here. It appeared after installing Metatags...
Comment #9
plachIs this still present with the latest dev version of Metatags?
Comment #10
mvdve commentedYes! This issue has been fixed with the latest dev version of metatags.
Comment #11
plachCool