Getting an error when assigning av node reference CKK field.

See screenshot for details

CommentFileSizeAuthor
#2 crumbs_nodereference.png20.68 KBplastikkposen

Comments

donquixote’s picture

screenshot?

plastikkposen’s picture

StatusFileSize
new20.68 KB

sorry. here it is. propably forgot to click attach....

plastikkposen’s picture

sorry. here it is. propably forgot to click attach....

donquixote’s picture

Duh. Now this attachment seems to be broken. It did work when I opened it the first time, but now it's gone. Must be a bug in the drupal.org website.

Could you just copy the text of the error message instead? This has the additional benefit that people can find this issue in google, in case they have the same error.

plastikkposen’s picture

Yup, seems like the screenshot is gone..

Error message states:

warning: Invalid argument supplied foreach() in
/home/www/mywebsite.com/sites/all/mudules/crumbs/plugins/crumbs.nodereference.inc on line 39.

warning: Invalid argument supplied foreach() in
/home/www/mywebsite.com/sites/all/mudules/crumbs/plugins/crumbs.nodereference.inc on line 39.

donquixote’s picture

I had a look at the code, and it seems we just need a bit more sanity checking.
I guess your nodereference does not have any specific node types checked as "referenceable types".

i will have time to fix this in the next weeks, until then just make sure to choose some "referenceale types". Or patch it yourself if you feel líke it.

donquixote’s picture

Fixed in -dev (wait for packaging script).

donquixote’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.