PHPackages                             renakdup/whoops-wordpress-error-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. renakdup/whoops-wordpress-error-handler

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

renakdup/whoops-wordpress-error-handler
=======================================

Whoops PHP Error handler for WordPress.

1.1.3(1y ago)71.0kMITPHPPHP &gt;=7.3.0

Since Mar 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/renakdup/whoops-wordpress-error-handler)[ Packagist](https://packagist.org/packages/renakdup/whoops-wordpress-error-handler)[ Docs](https://github.com/renakdup/whoops-error-handler)[ RSS](/packages/renakdup-whoops-wordpress-error-handler/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (15)Used By (0)

Whoops WordPress error handler
==============================

[](#whoops-wordpress-error-handler)

[![Total Downloads](https://camo.githubusercontent.com/29a3fc7de04303e9aa586658538c1f3edd77760e9a9a8b553a39eebcb1cd6d6b/68747470733a2f2f706f7365722e707567782e6f72672f72656e616b6475702f77686f6f70732d776f726470726573732d6572726f722d68616e646c65722f646f776e6c6f616473)](https://packagist.org/packages/renakdup/whoops-wordpress-error-handler) [![PHP Version Require](https://camo.githubusercontent.com/148ad66da1b6ea8fc06a22a5a29818453466dcb4cf9411fd5b54ecfc98811205/68747470733a2f2f706f7365722e707567782e6f72672f72656e616b6475702f77686f6f70732d776f726470726573732d6572726f722d68616e646c65722f726571756972652f706870)](https://packagist.org/packages/renakdup/whoops-wordpress-error-handler) [![Latest Stable Version](https://camo.githubusercontent.com/514fcbdab8ba29e5e2f62d406232be28f05595f1cbdbd318941fd6e9f87bd64d/68747470733a2f2f706f7365722e707567782e6f72672f72656e616b6475702f77686f6f70732d776f726470726573732d6572726f722d68616e646c65722f76)](https://packagist.org/packages/renakdup/whoops-wordpress-error-handler) [![License](https://camo.githubusercontent.com/36f52d0673f406e5fae5d553049bdb9b05795e0c47493914e594b4249b64ca05/68747470733a2f2f706f7365722e707567782e6f72672f72656e616b6475702f77686f6f70732d776f726470726573732d6572726f722d68616e646c65722f6c6963656e7365)](https://packagist.org/packages/renakdup/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.

[![Whoops Error Handler for WordPress](./doc/img/material-dark-smooth.png)](./doc/img/material-dark-smooth.png)

How to install WordPress error handler
--------------------------------------

[](#how-to-install-wordpress-error-handler)

1. Require via Composer

    ```
    composer require renakdup/whoops-wordpress-error-handler
    ```

    Or if you want to use it just for local environment

    ```
    composer require renakdup/whoops-wordpress-error-handler --dev
    ```
2. Create a file of mu-plugin by the address `wp-content/mu-plugins/mu-plugins/whoops-error-handler.php`:

    ```
    mkdir wp-content/mu-plugins
    touch wp-content/mu-plugins/whoops-error-handler.php
    ```
3. Add the calling code to the file

    ```
