Title: Catching errors before &#8216;init&#8217; action
Last modified: February 6, 2019

---

# Catching errors before ‘init’ action

 *  Resolved [indrek_k](https://wordpress.org/support/users/indrek_k/)
 * (@indrek_k)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/catching-errors-before-init-action/)
 * Hi there!
 * I had a case of a fatal error not being reported to Rollbar at all. Looking at
   the plugin source, it seems like Rollbar PHP logging is initialized only at the
   init action:
 * \add_action(‘init’, array(&$this, ‘initPhpLogging’));
 * This is a pretty big problem, because a lot of stuff tends to happen before ‘
   init’. Wouldn’t it be possible to run the whole thing on ‘plugins_loaded’ instead?
 * In addition to that, it would be great if this plugin could be used as a mu-plugin.
   This would make it possible to catch errors from other (regular) plugins. (Sentry’s
   WP plugin has that feature, for example)
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [arturmoczulski](https://wordpress.org/support/users/arturmoczulski/)
 * (@arturmoczulski)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/catching-errors-before-init-action/#post-11198951)
 * Thanks for reporting. I’ve recreated this as a GitHub issue in the repo: [https://github.com/rollbar/rollbar-php-wordpress/issues/73](https://github.com/rollbar/rollbar-php-wordpress/issues/73)
 * And looking into implementing this now.
 *  Plugin Contributor [arturmoczulski](https://wordpress.org/support/users/arturmoczulski/)
 * (@arturmoczulski)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/catching-errors-before-init-action/#post-11224609)
 * This has been implemented and included in release 2.5.0
 *  Thread Starter [indrek_k](https://wordpress.org/support/users/indrek_k/)
 * (@indrek_k)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/catching-errors-before-init-action/#post-11225958)
 * Awesome!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Catching errors before ‘init’ action’ is closed to new replies.

 * ![](https://ps.w.org/rollbar/assets/icon-256x256.png?rev=3380576)
 * [Rollbar](https://wordpress.org/plugins/rollbar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rollbar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rollbar/)
 * [Active Topics](https://wordpress.org/support/plugin/rollbar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rollbar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rollbar/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [indrek_k](https://wordpress.org/support/users/indrek_k/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/catching-errors-before-init-action/#post-11225958)
 * Status: resolved