Issue Task Closed

#106984Update PageContentErrorHandler.php

TYPO3 GmbH TYPO3com 06/26/25, 10:35 updated 12/02/25, 14:37

Description

Always reconstitute TSFE

There’s always problems with extbase, solr and pagenotfound handling.

When you call persistAll EXT:solr will initialize all Sites, Sites with Root Pages of type Shortcut to Access restricted pages will trigger PageNotFound handling. This will call stashEnvironment. The, always the error `Undefined array key “SERVER_NAME” in vendor/typo3/cms-core/Classes/Middleware/VerifyHostHeader.php line 97` appears and given exceptionalErrors, it will throw an exception which will be catched too late and TSFE is lost.

This issue was automatically created from https://github.com/TYPO3/typo3/pull/566

Reviews 2

History 26

  1. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-06-26T20:35:08+00:00" > 06/26/25, 20:35 </span>

    Applied in changeset commit:265d6e4d2345119628bec955b89eb4606a63754f.