Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
czigor CreditAttribution: czigor commentedCan you please give more information how to reproduce this? Eg. what node types and fields were you using.
Comment #2
spacereactor CreditAttribution: spacereactor commentedsorry 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
Comment #3
czigor CreditAttribution: czigor commentedThanks for the details, I have committed the fix.