mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Better ErrorPage upgrading guide (#7066)
See https://github.com/silverstripe/silverstripe-framework/issues/4149
This commit is contained in:
parent
cf758ddd4f
commit
52841533ed
@ -883,9 +883,19 @@ public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
|
||||
}
|
||||
```
|
||||
|
||||
#### Install the ErrorPage module
|
||||
#### Moved ErrorPage into a new module
|
||||
|
||||
ErrorPage has been moved to a separate module to allow for alternative approaches to managing error responses. Please install [silverstripe/errorpage](http://addons.silverstripe.org/add-ons/silverstripe/errorpage) to preserve the 3.x functionality.
|
||||
ErrorPage has been moved to a separate [silverstripe/errorpage module](http://addons.silverstripe.org/add-ons/silverstripe/errorpage)
|
||||
to allow for alternative approaches to managing error responses.
|
||||
The module is installed by default on new projects, but needs to be added to existing projects
|
||||
to preserve functionality on the existing "Page not found" and "Server error" pages in the CMS.
|
||||
|
||||
composer require silverstripe/errorpage
|
||||
|
||||
Alternatively you can implement your own `onBeforeHTTPError()` handling to present custom errors.
|
||||
By default, SilverStripe will display a plaintext "not found" message when the module isn't installed.
|
||||
Check the [module upgrading guide](http://addons.silverstripe.org/add-ons/silverstripe/errorpage)
|
||||
for more configuration API changes on the `ErrorPage` class.
|
||||
|
||||
#### Upgrading asset web.config, .htaccess, or other server configuration
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user