Skip to content

Commit

Permalink
BUGFIX: Use "useCustomErrorView()" method in exception handler
Browse files Browse the repository at this point in the history
Flow versions prior to 6.3.16 would render static exceptions
when "templatePathAndFilename" was null. Since 6.3.16, Flow
only checks if the array key is set, which it is in our case.
  • Loading branch information
paxuclus committed May 16, 2022
1 parent 8291531 commit 715d569
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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

0 comments on commit 715d569

Please sign in to comment.