Bug #95586
closedPageNotFound handling doesn't work in debug mode
100%
Description
If debug mode is enabled, the page not found handler throws an exception:
Error handler could not fetch error page "http://localhost/404", reason: PHP Warning: Undefined property: GuzzleHttp\Psr7\Response::$getStatusCode in /private/typo3/sysext/core/Classes/Error/PageErrorHandler/PageContentErrorHandler.php line 147
Settings in SiteConfiguration:
errorCode = 404
errorHandler: Show content from page
To fix it:
Use "if ($response->getStatusCode() === 200)" instead of "if ($response->getStatusCode === 200)"
Updated by Georg Ringer almost 3 years ago
- Status changed from New to Accepted
- Assignee set to Georg Ringer
- Target version set to next-patchlevel
Updated by Gerrit Code Review almost 3 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71563
Updated by Christian Kuhn almost 3 years ago
- Related to Bug #94402: Don't issue second HTTP request for error handling added
Updated by Gerrit Code Review almost 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71563
Updated by Gerrit Code Review almost 3 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71563
Updated by Georg Ringer almost 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 502b6d4f02edc7e7169b0cc631576036691f7055.
Updated by Christian Kuhn almost 3 years ago
- Related to Bug #95940: Error on random urls which should show 404 page added