Download & Extend

Missing argument 3 for node_form()

Project:Formfilter
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

When clicking on the link 'filter all node forms' i get this error (clean D7.8 install):

Error message
Warning: Missing argument 3 for node_form(), called in /home/office/public_html/sites/all/modules/formfilter/formfilter_ui/formfilter_ui.module on line 48 and defined in node_form() (line 83 of /home/office/public_html/modules/node/node.pages.inc).
Notice: Undefined property: stdClass::$type in node_object_prepare() (line 939 of /home/office/public_html/modules/node/node.module).
Notice: Undefined property: stdClass::$type in _node_extract_type() (line 370 of /home/office/public_html/modules/node/node.module).
Notice: Undefined property: stdClass::$type in comment_node_prepare() (line 1278 of /home/office/public_html/modules/comment/comment.module).
Notice: Undefined property: stdClass::$type in menu_node_prepare() (line 544 of /home/office/public_html/modules/menu/menu.module).
Notice: Undefined property: stdClass::$type in _node_extract_type() (line 370 of /home/office/public_html/modules/node/node.module).
Notice: Undefined property: stdClass::$type in node_form() (line 270 of /home/office/public_html/modules/node/node.pages.inc).
Notice: Undefined property: stdClass::$type in node_form() (line 276 of /home/office/public_html/modules/node/node.pages.inc).
Notice: Undefined property: stdClass::$type in node_form() (line 297 of /home/office/public_html/modules/node/node.pages.inc).
Notice: Undefined property: stdClass::$language in node_form() (line 302 of /home/office/public_html/modules/node/node.pages.inc).
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7389 of /home/office/public_html/includes/common.inc).
The website encountered an unexpected error. Please try again later.

Comments

#1

Thanks, looking into this..

#2

Hi Yuri,

Can you try the latest dev release (NOTE: The beta1 release has a minor menu path bug in it.. I didn't know how to make development snapshots until after I did this, so I won't release another version of this until I've received feedback on the latest dev release)

Thanks!

#3

I was experiencing this bug using 7.x-3.0-rc1. Switching to 7.x-3.x-dev resolved the above problem. However, another is present (possibly as a result?)

I had the above problem when assigning created reference to the Show > User Relationship field. It allowed me to enable the relationship without breaking the view but now gives me the following error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_data_field_client.nid' in 'on clause'

Having looked in `field_data_field_client` it would appear that views should be looking for the column `field_client_nid` rather than `nid`

Anyone have a resolution for this problem?

Cheers

Ben

#4

Looks like it might be a problem with the references module

http://drupal.org/node/1275096