I enabled debug and krumo
it looked like the following was causing the notice:
conditional_fields_element_after_build();

when I disabled conditional fields the error went away

Comments

SocialNicheGuru’s picture

Status: Active » Closed (cannot reproduce)

it was in face the search_api_facetapi module

adellefrank’s picture

I was not using this module, just the basic search module in core. I encountered this error after adding a hook_form_alter() to my template.php which tried to alter all forms (and, unknowingly, included the basic 'search_block_form' I was using). To "fix" this error, I made sure the first line of my if statement did NOTHING if the $form_id == 'search_block_form'. For example:

function MYTHEMENAME_form_alter(&$form, $form_state, $form_id) {

    global $user;

    if ($form_id == 'search_block_form') {
        
    } else {
        if (in_array('anonymous user', $user->roles)) {
            $form['revision_information']['#access'] = FALSE;
        } else {
            $form['revision_information']['#access'] = TRUE;
        }
    }
}