After adding a Node in CCK field and create a node of that type, a warning is generated:
warning: Invalid argument supplied for foreach() in /var/www/vhosts/domain.com/httpdocs/sites/all/modules/cck/content.module on line 1284.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | re-ordering.png | 30.77 KB | francewhoa |
| #7 | foreach_content_auto_nodetitle.patch | 695 bytes | guypaddock |
Comments
Comment #1
mattyoung commentedhow does the bug reveal itself?
Comment #2
mattyoung commented~
Comment #3
webavant commentedIt happened every time when simply viewing the node.
Comment #4
mattyoung commentedMake sure the node id you enter in the nodeincck field is correct. You will get this error if you enter a non-existing node id.
Let me know if this is the problem.
Comment #5
arnaldex commentedSame here. I'm using this for a legal note in "profile" content type from "content profile" module. After user registration de message appears.
Comment #6
mattyoung commentedIs the node id you enter correct? Please double check. If the id is wrong, then that what will result.
Ideally, the node id input is like the Node reference module: automatic and cannot be wrong. But I don't have free time to implement here.
Comment #7
guypaddock commentedFor me, this is caused by using the "Auto Node Title" module with the "Multistep" module. The patch for this is attached. Apparently, the Auto Nodetitle module causes all fields to be rendered, but the "NodeInCCK" field might not have information at the time of rendering.
Comment #8
guypaddock commentedComment #9
mattyoung commentedI applied the change and checked that in. Get the latest 'dev' and try. This update includes this issue and #674982: Token support.
Comment #10
francewhoaI can confirm this issue using
http://drupal.org/project/auto_nodetitle module version 6.x-1.2
http://drupal.org/project/nodeincck module version 6.x-1.0-beta1
Drupal 6.16
I'll try the dev version. Then post result here.
Comment #11
francewhoaConfirming that 6.x-1.x-dev (2010-Apr-09) works. I noticed that the token option is now available under global settings.
Comment #12
francewhoaI take that back ;) it fix the issue but created a new one.
I'll post steps to reproduce below.
Comment #13
francewhoaReporting issue with nodeincck 6.x-1.x-dev (2010-Apr-09): Re-ordering nodeincck's field might hide other cck field. This issue was not present in nodeincck 6.x-1.0-beta1
Any volunteer for a patch? I can contribute patch testing.
Steps to reproduce issue
*Create a new content type.
*Add a nodeincck field.
*Add a cck text field.
*Go to 'Manage fields' at
admin/content/node-type/*************/fields*Re-order the fields so nodeincck's field is first then cck's text field second. Find attached screenshot to clarify.
*Create a new node at
/node/add*View the node. The issue is when viewing the node. The nodeincck's field is display but the cck's field is hidden. Expected result is to display both fields.
Using
*Drupal 6.16
*http://drupal.org/project/nodeincck module version 6.x-1.x-dev (2010-Apr-09).
*http://drupal.org/project/auto_nodetitle module version 6.x-1.2
*Content Construction Kit (CCK) 6.x-2.6
*Firefox 3.x
Comment #14
mattyoung commentedI'm traveling right now and have no access to my development machine so I can do anything now. I won't be back until after July.
Comment #15
francewhoaThat's really cool with me Matt. That can wait for when it's convenient for you. Enjoy your travel :)
Comment #16
dspring0021 commentedPatch in #7 worked for me. Thanks!