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. Gerrit Code Review pushed patch set 1 for main to change 89914 status New Under Review 06/26/25, 10:36

  2. Gerrit Code Review pushed patch set 2 for main to change 89914 06/26/25, 19:42

  3. Gerrit Code Review pushed patch set 3 for main to change 89914 06/26/25, 19:44

  4. Gerrit Code Review pushed patch set 1 for 13.4 to change 89927 06/26/25, 20:19

  5. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 06/26/25, 20:35

    Applied in changeset commit:265d6e4d2345119628bec955b89eb4606a63754f.

  6. Benni Mack changed status Resolved Closed 12/02/25, 14:37