Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: Layout Paragraphs 3.0.0-beta5 — New beta version released for module layout_paragraphs (3.0.0-beta5). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Search API Safe Render

No security coverage

Part of the Search ecosystem · 124 projects

View on drupal.org

This module prevents fatal session errors that happen when Search API indexes content containing embedded views after a page has been rendered. It achieves this by safely suppressing only the exposed form part of views during indexing, without affecting the rendering of view results themselves, thus ensuring full content is indexed without breaking the process.

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2026
Latest release
5 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Apr 9, 2026