Notice: Undefined index: relation_id in _relation_select_field_widget_form() (line 530 of /Applications/MAMP/htdocs/tkdclub/sites/all/modules/relation_select/relation_select.module).
* I get this error on node/add/ct1 that contains a relation select widget (ct1 to ct2)
* The node is saved and I don´t get the error on node/edit
Test
* Created a new relation type
* Selected directional and two content types (ct3 to ct4)
* Added a relation select widget on ct3.
* Did node/add/ct3
I get no error BUT the relationselect widget from ct1 is being loaded.
These are two problems in the same post but I assume they are related.
Comments
Comment #1
busla commentedupdate:
I´ve deleted the Relation Type and added new ones but still I get the one I deleted if I add a relation select widget to a content type. All the relation tables are empty so I have no idea where it´s being loaded from.
Comment #2
busla commentedanother update:
It´s a problem related to the views used in with the widget. If I change the relation view used by the widget I get an error.
Reproduced:
This doesn´t seem to be related to the view itself but when I change to a different view. The cloned view works fine and doesn´t give me an error when I reverse the process and select my custom view in step #3 instead of "Relation select : Node : Master".
Then when I switch to the "Relation select : Node : Master" view it throws an error.
Comment #3
nancydruI even restored it to essentially the original state (i.e. re-exposed the filter) and it still does this.
Comment #4
kimwes commentedHere's a patch only to remove the notice. I didn't search for the root cause.
Comment #5
robertom commentedThis is a duplicate of bug #1803408: Content Creation with Relate Fields: Undefined index: entity_id in _relation_select_field_widget_form()
the difference from "Undefined index: entity_id" and "Undefined index: relation_id" is due to this commit
Comment #6
nwom commentedDuplicate of #1803408: Content Creation with Relate Fields: Undefined index: entity_id in _relation_select_field_widget_form()