When navigating to a node/add page, Drupal will throw a strict notice regarding commons_search module's attempt to determine if the path being viewed is a group:

Notice: Trying to get property of non-object in commons_search_form_alter() (line 57 of /.../profiles/commons/modules/contrib/commons_search/commons_search.module).

Comments

jrbeeman’s picture

The attached patch checks if a node was actually loaded before attempting to determine if it's a group node.

ezra-g’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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