BigPipe causes PHP notices with JavaScript disabled on error pages

Created on 2 March 2016, over 8 years ago
Updated 29 February 2024, 4 months ago

Problem/Motivation

Under some circumstances, BigPipe throws PHP notices because it tries to explode on <drupal-big-pipe-scripts-bottom-marker> in \Drupal\big_pipe\Render\BigPipe::sendPreBody(), while that marker is missing.

This seems to happen when subrequests are created via DefaultExceptionHtmlSubscriber with javascript disabled.

Notices:

Notice: Undefined offset: 1 in Drupal\big_pipe\Render\BigPipe->sendPreBody() (line 143 of core/modules/big_pipe/src/Render/BigPipe.php).
Notice: Undefined offset: 2 in Drupal\big_pipe\Render\BigPipe->sendPreBody() (line 143 of d8/core/modules/big_pipe/src/Render/BigPipe.php).

Steps to reproduce:

On a fresh D8.1.x, create some content, disable javascript in your browser, visit /page-does-not-exist: this should trigger the above notices in the log.

πŸ› Bug report
Status

Fixed

Version

9.2

Component
BigPipeΒ  β†’

Last updated about 13 hours ago

Created by

πŸ‡§πŸ‡ͺBelgium mr.baileys πŸ‡§πŸ‡ͺ (Ghent)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024