This warning appears in search_result.inc because build the content type block going after return them.

Reproduce

1. Add the panel "Search results" in your page, in plugin settings enable “Display text if no search keywords were submitted“.
2. Submit the empty search form (just press enter key :).

UPD: Or navigate in to yout search results page (ex. /search/node).

Comments

dunin created an issue. See original summary.

dunin’s picture

Status: Active » Needs review
StatusFileSize
new1008 bytes

Small patch.

dunin’s picture

Issue summary: View changes
chris matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 3 year old patch in #2 to search_result.inc does not apply to the latest ctools 7.x-1.x-dev and (if applicable) needs to be rerolled.

Checking patch plugins/content_types/search/search_result.inc...
Hunk #1 succeeded at 52 (offset 4 lines).
error: while searching for:
    return;
  }

  // Build the content type block.
  $block = new stdClass();
  $block->module  = 'search';
  $block->delta   = 'result';

  $results = '';

  // Only search if there are keywords or non-empty conditions.

error: patch failed: plugins/content_types/search/search_result.inc:58
error: plugins/content_types/search/search_result.inc: patch does not apply
japerry’s picture

Status: Needs work » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.