Notice: Undefined property: stdClass::$nat in nat_form_alter() (line 181 of /drupal/sites/all/modules/contrib/nat/nat.module).
Warning: Invalid argument supplied for foreach() in nat_form_alter() (line 181 of /drupal/sites/all/modules/contrib/nat/nat.module).

The actual associated term is being created just fine, but I'm not sure why $form['#node']->nat is not set properly on the edit form.

Comments

Zen’s picture

Status: Active » Postponed (maintainer needs more info)

I'm unable to duplicate this. Please provide more info, ideally with a -dev checkout.

Thanks.
-K

jaypark’s picture

Zen, i had the same issue, didn't note the details at the time, but warning occurred when assigning nat to existing content type and vocabulary. when i created a new vocabulary and content type just for testing, this warning didn't recur.

Zen’s picture

Version: 7.x-1.0-alpha4 » 7.x-1.x-dev

I have tested this again by associating NAT with an existing node type and vocabulary and then visiting the node creation form. I did not encounter a notice.

-K

jaypark’s picture

yeah... after updating to March 4 dev version, this notice and warning disappeared (note that my comment was made at ~9PM EST on the 3rd). i'm not going to git reset just to revisit this issue if it was resolved with corrected code.

there is no variable $nat anywhere within the form alter hook with the last dev update.

kristen pol’s picture

Status: Postponed (maintainer needs more info) » Fixed

It appears to be working for a couple users. Reopen this if it is still an issue (using *dev* version).

Status: Fixed » Closed (fixed)

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