I'm using this module's "node reference with create" widget in a field collection entity and after the latest field collection update I'm getting an error in the noderefcreate_autocomplete_validate() function when creating or editing content. The error is:
Notice: Undefined index: [field name] in noderefcreate_autocomplete_validate() (line 88 of [drupal path]/sites/all/modules/noderefcreate/noderefcreate.module).
As a result of this error, no data is stored.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | patch-1295112.txt | 1.07 KB | charlie-s |
| #1 | noderefcreate.tar_.gz | 2.23 KB | chrisolof |
Comments
Comment #1
chrisolofI went in and fixed this today, but when I went to make the patch using git I realized the version git downloads already contains the fix. So for whatever reason, the version of this module you're presented with for downloading on the module's project page doesn't match to what you get when you grab it via git. Long story short - if you're having trouble with this module inside of a field collection the fixed version is available via:
Or, if you don't have git installed, I've attached the fixed version of the module.
The fix entailed replacing these two lines (88 and 89) in noderefcreate.module:
With these instead (which come from the node reference module in a very similar validation function):
Comment #2
chrisolofMarked #1324670: Node Reference Create does not work inside a Field Collection as duplicate of this issue.
Comment #3
UglyKidJoe commentedHi all,
This module is so useful! It solves a lot of issues for me (if it works!)
I've installed version 7.x-1.0 from the site (I don't use git).
Further error messages I get are:
- EntityMalformedException: missing bundle property on entity of type node in entity_extract_ids() (line 7501 of [...])
- Undefined index: field [field name].
Is it possible that I've broken this somehow?
Any updated on this issue would be greatly appreciated. Thanks for a great module.
Comment #4
wormz30 commentedfollowing... I'm experiencing the same exact problem
Comment #5
socialnicheguru commentedcan a proper patch be created?
also it contradicts this patch http://drupal.org/node/1330274
Comment #6
charlie-s commentedPatch attached. Combination of this + 1330274.
Comment #7
vip_sa commentedThe patch does not work and I still get the same error:
Notice: Undefined index: field_company in noderefcreate_autocomplete_validate() (line 88 of /home/investor/public_html/sites/all/modules/noderefcreate/noderefcreate.module).
Notice: Undefined index: field_company in noderefcreate_autocomplete_validate() (line 89 of /home/investor/public_html/sites/all/modules/noderefcreate/noderefcreate.module).
Notice: Undefined index: field_project in noderefcreate_autocomplete_validate() (line 88 of /home/investor/public_html/sites/all/modules/noderefcreate/noderefcreate.module).
Notice: Undefined index: field_project in noderefcreate_autocomplete_validate() (line 89 of /home/investor/public_html/sites/all/modules/noderefcreate/noderefcreate.module).