Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedit was in face the search_api_facetapi module
Comment #2
adellefrank CreditAttribution: adellefrank commentedI 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: