Recieving this error after upgrading to the latest version of references

Notice: Undefined index: args in _node_reference_view_settings_validate() (line 161 of /var/www/staging/Anyjob-Portal/sites/all/modules/references/node_reference/node_reference.module).

Comments

cpelham’s picture

just installed 7.x-2.x dev and got this error

quicksketch’s picture

There is no 7.x-2.x dev. I'm assuming you mean 7.x-1.x dev? Right now dev is identical to 1.9 so there won't be any difference in behavior between dev and the current stable version.

wmelon’s picture

I also get this error. Drupal 7, with references 7.x-2.x-dev (2011-May-03) and node reference URL widget 7.x-1.10

gfxguru’s picture

same here

andrebonfanti’s picture

subscribe (after upgrade)

yched’s picture

I'm not sure this is the cause of this very bug, but I see that nodereference_url_build_link() uses calls _node_reference_potential_references(), which signature was just changed by #945004: [release blocker] Missing views-mode for picking userreference and nodereference :-/.

Sorry about that, I wasn't aware that some external code was relying on the function.
I'll be rolling a beta release for references shortly, it should then be "easier" to fix nodereference_url accordingly point to an official references tag.

boobaa’s picture

Title: Notice: Undefined index: args in _node_reference_view_settings_validate() (line 161 of /var/www/staging/Anyjob-Portal/sites/all/ » Notice: Undefined index: args in _node_reference_view_settings_validate() (line 159 of …/node_reference/node_reference.module)

Same issue here, even with user references (internal ref. #949):
Notice: Undefined index: args in _user_reference_view_settings_validate() (line 167 of …/references/user_reference/user_reference.module).

yched’s picture

Status: Active » Closed (duplicate)
yched’s picture

Stefan Haas’s picture

subscribe

icefeet’s picture

subscribe, same issue, even after removing URL Ref Widget

inversed’s picture

subscribe

davidsanger’s picture

subscribe

TripX’s picture

Line 161 error happens here too on first creation of a reference field

Adam S’s picture

subscribing

dafeder’s picture

I believe this is miscategorized. I am getting this and do not have Nodereference URL widget installed.

dafeder’s picture

Believe this is a duplicate of #1149600: Undefined index error

Todd Young’s picture

Me too - using USER reference as stated in #7 above:

Notice: Undefined index: args in _user_reference_view_settings_validate() (line 169 of /XXX/YYY/ZZZ/sites/all/modules/references/user_reference/user_reference.module).

Liaz’s picture

same here

TripX’s picture

latest dev fixed the problem at my side... have you updated, liaz, adam,..?

puya’s picture

Do you mean the latest dev of the References module? I don't see any dev releases on the url node ref.

mrmeech’s picture

Same error here too using node reference...

drugget’s picture

Subscribing.
Same error when using Drupal 7.2 + 'Node reference' (warning appears after field creation).

rosemeria’s picture

Subscribing.
Same error when using Drupal 7.2 + 'Node reference' (warning appears after field creation).

CrashNet’s picture

sub

apermuy’s picture

Same error using Drupal 7.2 + Node reference 7.x-2.0-beta3 ...

dafeder’s picture

Folks, please try latest dev release of References, so far no evidence that this is anything other than #1149600: Undefined index error.

rfay’s picture

Status: Closed (duplicate) » Needs review
StatusFileSize
new919 bytes

I guess I don't think it's a dup.

This occurred for me when creating a node reference field, and I didn't add a view or an argument.

Here's a patch (for node reference only) that seems to deal with that case.

Adam S’s picture

I updated to the most recent References release and this error disappeared.

dafeder’s picture

Project: Node Reference URL Widget » References
Version: 7.x-1.9 » 7.x-2.x-dev
Component: Code » Code: node_reference
Status: Needs review » Closed (duplicate)

rfay: looks like the exact same issue to me, and your patch is very similar to mine, which got rejected in favor of a better solution by @yched. Are you using the latest dev?

Also, still no evidence that this has anything to do with the nodereference_url module.

jon betts’s picture

I updated to the most recent References release and this error disappeared for me as well.

backwardgraphics’s picture

Component: Code: node_reference » Code: user_reference
StatusFileSize
new3.01 KB

In reference to comment #7 and #18 user_reference should be fixed with this patch. This is my first patch so my apologies if this doesn't apply right.

carn1x’s picture

subscribe (using node_reference-7.x-2.0-beta3)

jrdixey’s picture

Same error, but node_reference rather than user_reference. We are also using node_reference-7.x-2.0-beta3.

gumanist’s picture

It is fixed in dev

stephenrobinson’s picture

I get this when saving a node reference when building content types

Polyspiral’s picture

Yep the Dev worked for me

hip’s picture

Subscribe.

Me too (#36): I get this when saving a node reference when building content types
after a fresh install

alonk27’s picture

Subscribe.

mkaramizrakli’s picture

+1 (fresh install with the latest version)

m.sant’s picture

Same here with a fresh install and 7.x-2.0-beta3

runeasgar’s picture

Moving my comment to another ticket, since it seems to be another issue with WOSD + content type edits when node ref is used.

zeta1600’s picture

subscribing...

adamjuran’s picture

sub

Jean Gionet’s picture

sub

mtift’s picture

Subscribing

aidanlis’s picture

Subscribe

jdufaur’s picture

Subscribe

Anonymous’s picture

subscribe

leoklein’s picture

subscribe

stopshinal’s picture

subscribe

bvanmeurs’s picture

Subscribe. Please fix.

Rhodungeon’s picture

Subscribe

Courtney.B’s picture

Subscribing.

mike27’s picture

Subscribing

mrpauldriver’s picture

sub

question? Is Corresponding node references module causing this?

drjonez’s picture

sub

ppc.coder’s picture

I got this error with the 7.x-2.0-beta3 release. Tried the 7.x-2.x-dev and no error.

jakew’s picture

I'm getting this in 7.x-2.0-beta3, except on line 169.

redhoodie’s picture

Subscribe

rick hood’s picture

Confirming same for me: "I got this error with the 7.x-2.0-beta3 release. Tried the 7.x-2.x-dev and no error."

dTr303’s picture

Confirming same for me: "I got this error with the 7.x-2.0-beta3 release. Tried the 7.x-2.x-dev and no error."

I had the same issue installing the dev version instead of the beta version solves the problem

modulist’s picture

Confirming same for me: "I got this error with the 7.x-2.0-beta3 release. Tried the 7.x-2.x-dev and no error."

gumanist’s picture

This patch is for those ones who don't want to use dev version but wish have this issue fixed. As it mentioned above dev version haven't this issue.

hip’s picture

subs

mausolos’s picture

Happens with me, too, and on two completely different D7 sites. Has anyone noticed if this only happens when the content type you are referencing happens to not have any nodes, yet?

samw’s picture

Yes, it's the same for me that the error message disappears once a node of that content type has been created.