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.
Here's a very simple way to install:
-
Download whoops OR use the provided "src" and "vendor" dirs (see 3.) from this repository.
-
If you want to install yourself (and not use the provided "src" and "vendor" dirs), use Composer to install Whoops:
Note: the proposed composer command for installing whoops didn't work for me:
composer require filp/whoops:1
So I had to add the composer lib to the composer.json file ("filp/whoops": "1.*") - see "composer_edited.json" - and do a
php composer.phar install
instead. In the end, either of these should create the "src" and "vendor" dirs for you.
-
Upload "/modules", "/src" and "/vendor" to your shop root.
-
Activate the module in the shop backend.
This whoops library was primarily developed by Filipe Dobreira, and is currently maintained 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.