Download the PHP package renakdup/whoops-wordpress-error-handler without Composer
On this page you can find all versions of the php package renakdup/whoops-wordpress-error-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download renakdup/whoops-wordpress-error-handler
More information about renakdup/whoops-wordpress-error-handler
Files in renakdup/whoops-wordpress-error-handler
Package whoops-wordpress-error-handler
Short Description Whoops PHP Error handler for WordPress.
License MIT
Homepage https://github.com/renakdup/whoops-error-handler
Informations about the package whoops-wordpress-error-handler
Whoops WordPress error handler
Whoops PHP error handler for WordPress with different themes.
It catches fatal errors and exceptions and shows in beautiful format.
We can see a stack trace, go through the stack trace to see the called parts in the code.
In the debug information we can find GET, POST, Files, Cookie, Session, Server/Request Data, Environment Variables.
How to install WordPress error handler
-
Require via Composer
Or if you want to use it just for local environment
-
Create a file of mu-plugin by the address
wp-content/mu-plugins/mu-plugins/whoops-error-handler.php
: - Add the calling code to the file
That's it!
How to configure
Showing conditionals
By the default error handler isn't displayed for wp_get_environment_type() === 'production'
.
If you want to exclude additional envs, you should use the filter:
If you want to disable error handler for some special conditionals then use this filer:
Themes
To use one of the available themes, you can pass theme's name while instantiating object.
Available themes
Smooth material dark
Material dark
Gray
Original optimized
Original Default