When i delete the node, i got the following error.
warning: Invalid argument supplied for foreach() in /var/www/mydomain.com/public_html/sites/all/modules/cnr/corresponding_node_references.crud.inc on line 198

using cnr 6.x-4.x-dev 2011-Feb-25

Comments

czigor’s picture

Status: Active » Postponed (maintainer needs more info)

Can you please give more information how to reproduce this? Eg. what node types and fields were you using.

spacereactor’s picture

sorry for the delay, miss out the reply email.

Anyway this is the walkthr, I create two normal content type, content type A and content type B.

content type A, Create Node reference field with select list as Operations and point to content type B, and create another Node reference field with select list as Operations for content type B point to content type A.

Goto admin/settings/corresponding_node_references, there is only one choice, Field instance:"field_link_a_b" on Node type:"content_a" Corresponds with Field instance:"field_link_b_a" on Node type:"content_b" and I enable that.

Next create a content type A node. Than create content type B node but this time link it to content type A node. Now both content type nodes page can interlink.

I try to delete away the two new node pages that where i got the error. warning: Invalid argument supplied for foreach() in /var/www/mydomain.com/public_html/sites/all/modules/cnr/corresponding_node_references.crud.inc on line 198

I update to cnr 6.x-4.x-dev (2011-Apr-13) but same problem with line 198
Current server= nginx 0.8.54, php-fpm 5.2.17 and mariadb 5.1.49

czigor’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks for the details, I have committed the fix.

Status: Fixed » Closed (fixed)

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