Integration of the whoops error handler base/framework for PHP into the OXID eShop.
whoops is an error handler base/framework for PHP. Out-of-the-box, it provides a pretty error interface that helps you debug your web projects, but at heart it's a simple yet powerful stacked error handling system.
- To your OXID composer.json (usualy in modules folder) add
"filp/whoops": "^2.0"
Or just runcomposer require filp/whoops
to get it added automatically. - If you have added step 1 line to composer.json file by yourself run
composer update
from console to get dependencies updated. - Copy modules folder contents to your OXID installation modules folder.
- Enable module via OXID admin.
- Enjoy very nice exceptions!
Productive mode should be disabled to see error messages. Enable productive mode only on your production environment. Then you'll get shop offline message on exceptions without revealing code parts to the users.
This whoops library was primarily developed by Filipe Dobreira, and was originaly created by Denis Sokolov. A lot of awesome fixes and enhancements were also sent in by various contributors.
The smx_whoops module for integrating whoops into OXID was developed by shoptimax GmbH, Gernot Payer and Stefan Moises.
This is modified version of the module with some improvements made by Justinas Bolys.