This project is not covered by Drupal’s security advisory policy.

Search API Safe Render prevents session-related fatal errors that occur when Search API indexes content containing embedded views during Drupal's post-request (terminate) phase.

When a node is saved, Search API can render it for indexing after the HTTP response has already been sent. If the rendered content includes embedded views (e.g. listing blocks), those views attempt to build exposed forms, which triggers session_start(). Since headers have already been sent, this fails with a RuntimeException and indexing breaks silently.

This module takes a minimal approach: it only suppresses the exposed form widget (the source of the error) while letting views execute their queries and render results normally.

Features

  • Suppresses only exposed forms – Views still execute their queries and render results normally, so view content is fully included in the search index.
  • Works on all indexes – Ships as a locked, hidden Search API processor that is automatically active on every index.
  • Zero configuration – Install the module and the problem is solved. No settings, no admin pages.

When to use this module: You need this module if your site uses Search API with the Rendered item field and your content includes paragraphs (e.g. via Layout Paragraphs or Paragraphs module) that embed Views displays. The symptom is a logged warning like:

RuntimeException while trying to render item entity:node/XXX: Failed to start the session because headers have already been sent

Post-Installation

After enabling, save a node that previously triggered the error and confirm the warning no longer appears in Admin → Reports → Recent log messages. The processor is locked and hidden – it won't appear on the Processors tab but is active on all indexes automatically.

Additional Requirements

  • Search API (search_api) – Core dependency. This module extends Search API's processor system.
  • Views (views) – Drupal core module. Required because this module implements a Views hook to suppress exposed form rendering during indexing.

Supporting this Module

This module was developed by LOOM GmbH.

Supporting organizations: 
Sponsored

Project information

  • Ecosystem: Search API
  • Created by d0t15t on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases