Skip to content

Commit

Permalink
Merge pull request #13 from netlogix/bugfix/custom-error-view-flow-6
Browse files Browse the repository at this point in the history
BUGFIX: Fix static error pages on Flow 6.3.16+
  • Loading branch information
stephanschuler authored May 16, 2022
2 parents 8291531 + 9f0c9b6 commit f173ac4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 10 additions & 0 deletions Classes/Handler/ProductionExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,14 @@ protected function findErrorPageConfigurationForRequest(int $statusCode)
);
}

/**
* Override new method introduced in Flow 6.3.16
*
* @return bool
*/
protected function useCustomErrorView(): bool
{
return false;
}

}
5 changes: 0 additions & 5 deletions Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ Neos:
error:
exceptionHandler:
renderingGroups:
notFoundExceptions:
options:
# Force static exception rendering.
templatePathAndFilename: null
viewClassName: Neos\FluidAdaptor\View\StandaloneView
serverErrorExceptions:
matchingStatusCodes: [ 500 ]
options:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"php": "~7.2",
"ext-curl": "*",
"guzzlehttp/guzzle": "~6.0 || ~7.0",
"neos/neos": "~5.0"
"neos/neos": "^5.0",
"neos/flow": "^6.3.16"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit f173ac4

Please sign in to comment.