Invalid argument supplied for foreach()
white-raven - July 21, 2008 - 17:16
| Project: | Node2Node |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
After replacing the Category module with Node2Node and setting up a single relationship, I attempted to create a test node of the type identified for the parent of the relationship. I got the following warning after creating the node:
warning: Invalid argument supplied for foreach() in /home/white-raven/domains/secure.white-raven.net/public_html/drupal-6.3/modules/node2node/node2node.module on line 286.

#1
Further information: It appears that, even if I mark both as targets, there is no field or fieldset being created for Node2Node links when I edit either child or parent nodes.
I assume it's related to this problem I'm experiencing. Does Node2Node have known issues with other modules that could be causing this problem?
#2
Further information: It appears that the "Make target" action is not working properly (probably related to this issue). If I click the Make target button, the status changes, and maintains if I refresh the view node page. However, if I navigate elsewhere and then navigate to the node from a list, the Make target button reappears (indicating that the target status has reverted for no reason).
#3
hey, i already posted about the main error that you are seeing. The way i found to get rid of it, is if you properly set the relationships first. Then a target, then create pages. For example, first set relationships, then find what you want as a target page, then start making pages. It's just a small error that won't affect anything else. as for the other things, yeah, i've noticed those too.... good luck!