Been trying to do some debugging but I'm throwing this no matter what I try and edit as the fields (right now just trying a title). Doing some more digging but not sure what the deal is as I'm not actually including any kind of relationship but it seems to throw an exception as if its trying to create one.
Notice: Undefined index: nid in views_handler_field->get_value() (line 375 of /var/www/studio/sites/all/modules/contrib/views/handlers/views_handler_field.inc).
Notice: Undefined variable: relationship_id in editableviews_style_helper->get_relationship_id_from_alias() (line 570 of /var/www/studio/sites/all/modules/contrib/editableviews/editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined index: in editableviews_style_helper->entity_create() (line 435 of /var/www/studio/sites/all/modules/contrib/editableviews/editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined index: nid in views_handler_field->get_value() (line 375 of /var/www/studio/sites/all/modules/contrib/views/handlers/views_handler_field.inc).
Notice: Undefined variable: relationship_id in editableviews_style_helper->get_relationship_id_from_alias() (line 570 of /var/www/studio/sites/all/modules/contrib/editableviews/editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined index: in editableviews_style_helper->entity_create() (line 435 of /var/www/studio/sites/all/modules/contrib/editableviews/editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined variable: relationship_id in editableviews_style_helper->get_relationship_id_from_alias() (line 570 of /var/www/studio/sites/all/modules/contrib/editableviews/editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined index: in editableviews_style_helper->connect_new_entities() (line 489 of /var/www/studio/sites/all/modules/contrib/editableviews/editableviews_plugin_style_row_edit_table.inc).
Notice: Trying to get property of non-object in editableviews_style_helper->connect_new_entities() (line 496 of /var/www/studio/sites/all/modules/contrib/editableviews/editableviews_plugin_style_row_edit_table.inc).
Exception: Entity creation is not supported on the relationship <em class="placeholder"></em> in editableviews_style_helper->connect_new_entities() (line 495 of /var/www/studio/sites/all/modules/contrib/editableviews/editableviews_plugin_style_row_edit_table.inc).
The view as an export:
$view = new view();
$view->name = 'cle_assignment_bulk';
$view->description = 'Edit assignment information in bulk';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Assignment Bulk Edit';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Manage Assignments';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'role';
$handler->display->display_options['access']['role'] = array(
3 => '3',
5 => '5',
7 => '7',
9 => '9',
);
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['style_plugin'] = 'editableviews_table';
/* Field: Content: Title (editable) */
$handler->display->display_options['fields']['title_editable']['id'] = 'title_editable';
$handler->display->display_options['fields']['title_editable']['table'] = 'node';
$handler->display->display_options['fields']['title_editable']['field'] = 'title_editable';
$handler->display->display_options['fields']['title_editable']['label'] = 'Title';
$handler->display->display_options['fields']['title_editable']['link_to_node'] = FALSE;
$handler->display->display_options['fields']['title_editable']['textfield_size'] = '30';
/* Contextual filter: Content: Section (og_group_ref) */
$handler->display->display_options['arguments']['og_group_ref_target_id']['id'] = 'og_group_ref_target_id';
$handler->display->display_options['arguments']['og_group_ref_target_id']['table'] = 'og_membership';
$handler->display->display_options['arguments']['og_group_ref_target_id']['field'] = 'og_group_ref_target_id';
$handler->display->display_options['arguments']['og_group_ref_target_id']['default_action'] = 'not found';
$handler->display->display_options['arguments']['og_group_ref_target_id']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['og_group_ref_target_id']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['og_group_ref_target_id']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['og_group_ref_target_id']['summary_options']['items_per_page'] = '25';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'cle_assignment' => 'cle_assignment',
);
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
$handler->display->display_options['path'] = 'node/%/assignment_bulk';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'Manage Assignments';
$handler->display->display_options['menu']['description'] = 'Manage Assignments in Bulk';
$handler->display->display_options['menu']['weight'] = '20';
$handler->display->display_options['menu']['context'] = 0;
Comments
Comment #1
btopro commentedupdated to dev as it had a few improvements beyond point release, still getting a ton of errors just slightly less.
Comment #2
joachim commentedDoes the problem go away when you remove the argument?
I've not actually tried this with arguments at all. I'm not sure why it would be trying to work with relationships when there are none. Can you trace that back to see where the code starts off down that path?
Comment #3
btopro commentedOk I was able to isolate this and get it working (updated title to reflect nature of the problem).
Make a new edittable view, add just the title but then deselect the "Link this field to the original piece of content". If you do this it will fail. If you leave the box checked it works. I think since this entity property is handled differently then the FAPI that this checkbox is actually providing the bundle relationship value that FAPI elements get naturally (guessing here).
Comment #4
joachim commentedBrilliant!
In that case, I am pretty sure this patch will fix it.
(It's because the parent field handler for node title only includes the 'nid' field if you have that option enabled, but our class always relies on it.)
Comment #5
btopro commentedthat worked! I'm sure you already know this but this project works with Date popup and jquery color_picker, two projects that failed constantly in support for the edittable fields module (which is why this project makes me so excited).
Comment #6
joachim commentedCommitted.
Thanks for tracking the problem down; very much appreciated!