Issue Bug Resolved

#100488Broken Response creation in core

Christian Kuhn 04/05/23, 20:17 updated 10/12/26, 20:35

Description

sysext/frontend/Classes/Middleware/StaticRouteResolver.php
return new Response(‘Invalid route’, 404, [‘Content-Type’ => ‘text/plain’]);

This triggers a warning in Stream __construct() fopen().

For a basic fix, see #100487, headers might be a topic at other places, too.

There are some further places in core that should be checked. Grep for ‘new Response’ and check factory usages as well.

Reviews 2

History 710

  1. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-12T20:35:13+00:00" > 10/12/26, 20:35 </span>

    Applied in changeset commit:514eced0ff5d95c586d3b71724eb224332f3914f.