Closed (fixed)
Project:
References
Version:
7.x-2.0-beta3
Component:
Code: user_reference
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2011 at 20:14 UTC
Updated:
30 Oct 2011 at 15:53 UTC
Jump to comment: Most recent file
Comments
Comment #1
MrPhilbert commentedI get the same error but on line 159 of node_reference.module
Comment #2
yched commentedCould you try clearing your site caches ?
Those lines rely on the presence of default settings in the $field definition being created / edited, and the shape of those default settings just changed after #945004: [release blocker] Missing views-mode for picking userreference and nodereference. Clearing you caches should adjust this.
Comment #3
MrPhilbert commentedSorry Yves,
Cleared the cache and it's still there.
Could it be that both of these are trying to reference an array that is not defined?
Would it be real difficult to separate the views part of references as its own module?
I know that the last sentence is a completely different request but it may solve the issue, especially for those that have no need for node or user references in views.
Just a thought.
Comment #4
MrPhilbert commentedIt seems that this is all related to the views integration. I had to revert back to an older dev release from 2-25. (I'm using this while going through node one's page manager tutorials).
I've attached a zipped copy here for convenience until this issue is resolved should anyone need it.
This is a brilliant module Yves. I am looking forward to the final.
I will also create a D7 sandbox to test any subsequent dev releases
Philbert
Comment #5
TripX commentedsame here.
Comment #6
Trunkhorn commentedMe too... sub
Notice: Undefined index: args in _node_reference_view_settings_validate() (line 161 of /var/www/website.com/sites/all/modules/references/node_reference/node_reference.module).
This is a new site and I haven't set up any views yet, even though I have all of views, ctools, and panels installed.
Cleared all caches and it still occurs anytime the reference field is edited on a content type.
Comment #7
dafederSame here.
Comment #8
dafederI think it's just some bad logic in the _node_reference_view_settings_validate() function. Try this patch.
Comment #9
yched commentedAh, finally got it - this happens when no there's no view with a 'References' display available.
Thanks @dafeder for the patch - I went for a different fix.
Committed the patch below.
Comment #10
yched commented(+ fixed typo in changelog, and added credit)
Comment #11
dafederWorked for me!
Comment #12
rosemeria commentedPatch worked for me too! Thank you.
Comment #13
eft commentedOP here - worked for me too ! Thanks yched to fixing this.
Comment #14
Sunflowers11 commentedThe patch fixed the issue for node references, but I am still getting the error for user references.
Comment #16
yched commentedSame fix has been applied to both node_ref and user_ref. Dare I ask you doublecheck ? ;-)
Comment #17
Sunflowers11 commentedMea culpa, yched. First time I applied a patch in Drupal and it looks like I only got it half right. Thanks for pointing me in the right direction. Now that I have applied the patch correctly it works just fine.
Comment #18
yched commented@Sunflowers11 : no problem ;-); Thks for the feedback !
Comment #20
seanburlington commentedHi,
this bug still exists in the beta
The project page recommends the beta version, there is no way to tell if the dev is actually a preferred version (and I don't know what bugs might be in dev)
It's a lot harder to manage site updates on dev modules.
Is the dev branch stable enough to release a new beta?
(is it even stable enough for a stable release?)
Thanks
Comment #21
jeffschulerseanburlington: If you don't want to use the dev version, apply the patch in #9 to the 7.x-2.0-beta3: it applies cleanly (except for the CHANGELOG.txt change.)
This issue has been fixed. If you have a burning release cycle question I'd open a new issue.
Comment #22
Pocketpain commentedsub
Comment #23
joachim commentedAs stated above the bug still exists in the current release, which is several months old.
Please could the maintainers make a new release with this fix in it? If the 7.x-2.x branch has a lot of unstable development code in it, then git will allow fixes like this one to be cherrypicked to a hotfix branch.
Comment #24
caponey commentedsame error; would it be possible for someone to upload the patched files, for some of us who don't know how to patch a module? thanks!