Hi, following the tutorial, at http://drupal.org/node/1509628 (entity source page), after enabling tmgmt_entity_ui for the first time, I've got the following errors at node/2/translate
Notice: Undefined index: #entity_type en tmgmt_entity_ui_translate_form() (línea 15 de /home/checkout/l10n_client/sites/all/modules/custom/tmgmt/sources/entity/ui/tmgmt_entity_ui.pages.inc).
Notice: Undefined index: #entity en tmgmt_entity_ui_translate_form() (línea 16 de /home/checkout/l10n_client/sites/all/modules/custom/tmgmt/sources/entity/ui/tmgmt_entity_ui.pages.inc).
Notice: Undefined index: entity keys en entity_extract_ids() (línea 7533 de /home/checkout/l10n_client/includes/common.inc).
Notice: Undefined index: entity keys en entity_extract_ids() (línea 7534 de /home/checkout/l10n_client/includes/common.inc).
Notice: Trying to get property of non-object en tmgmt_entity_ui_translate_form() (línea 31 de /home/checkout/l10n_client/sites/all/modules/custom/tmgmt/sources/entity/ui/tmgmt_entity_ui.pages.inc).
Notice: Trying to get property of non-object en tmgmt_entity_ui_translate_form() (línea 40 de /home/checkout/l10n_client/sites/all/modules/custom/tmgmt/sources/entity/ui/tmgmt_entity_ui.pages.inc).
Notice: Trying to get property of non-object en tmgmt_entity_ui_translate_form() (línea 40 de /home/checkout/l10n_client/sites/all/modules/custom/tmgmt/sources/entity/ui/tmgmt_entity_ui.pages.inc).
Maybe related, on the same page, when clicking on "Request translation" for spanish, I got the following error:
( ! ) Fatal error: Class name must be a valid object or a string in /home/checkout/l10n_client/includes/common.inc on line 7656
Call Stack
# Time Memory Function Location
1 0.0016 632840 {main}( ) ../index.php:0
2 0.2509 33628192 menu_execute_active_handler( ) ../index.php:21
3 0.2525 33884784 call_user_func_array ( ) ../menu.inc:516
4 0.2525 33885208 entity_ui_get_form( ) ../menu.inc:0
5 0.2543 34184848 drupal_build_form( ) ../entity.module:1081
6 0.2543 34187592 drupal_retrieve_form( ) ../form.inc:339
7 0.2584 34886824 call_user_func_array ( ) ../form.inc:795
8 0.2584 34887536 tmgmt_job_form( ) ../form.inc:0
9 1.9723 42623360 view->preview( ) ../tmgmt_ui.pages.inc:328
10 1.9927 44750448 views_plugin_display->preview( ) ../view.inc:1267
11 1.9927 44750496 view->render( ) ../views_plugin_display.inc:2601
12 2.0071 45623912 views_plugin_display->render( ) ../view.inc:1181
13 2.0096 46072256 theme( ) ../views_plugin_display.inc:2533
14 2.0114 46570272 template_preprocess_views_view( ) ../theme.inc:1024
15 2.0114 46570272 views_plugin_style->render( ) ../theme.inc:51
16 2.0114 46570320 views_plugin_style->render_grouping( ) ../views_plugin_style.inc:284
17 2.0114 46570320 views_plugin_style->render_fields( ) ../views_plugin_style.inc:389
18 2.0115 46572216 views_handler_field->theme( ) ../views_plugin_style.inc:484
19 2.0115 46574512 theme( ) ../views_handler_field.inc:1390
20 2.0116 46576112 template_preprocess_views_view_field( ) ../theme.inc:1024
21 2.0116 46576112 views_handler_field->advanced_render( ) ../theme.inc:354
22 2.0116 46576112 tmgmt_handler_field_tmgmt_entity_label->render( ) ../views_handler_field.inc:1011
23 2.0116 46576112 Entity->label( ) ../tmgmt_handler_field_tmgmt_entity_label.inc:14
24 2.0116 46576112 TMGMTJobItem->defaultLabel( ) ../entity.inc:123
25 2.0124 46604936 TMGMTEntitySourcePluginController->getLabel( ) ../tmgmt.entity.inc:310
26 2.0124 46604936 entity_load_single( ) ../tmgmt_entity.plugin.inc:11
27 2.0124 46605240 entity_load( ) ../entity.module:126
28 2.0124 46605504 entity_get_controller( ) ../common.inc:7623
Comments
Comment #1
berdirMake sure you are using the most recent dev snapshot from entity reference. Please update the documentation to add this information.
Comment #2
cgalli commentedThe documentation has been expanded, see http://drupal.org/node/1509628
Comment #3
lucascaro commentedThanks! Just confirming that using entity_translation-7.x-1.x-dev fixes all the mentioned errors.
Comment #5
cgalli commentedremoved tag 'needs documentation'