Skip to content

Catching errors before ‘init’ action #73

@ArturMoczulski

Description

@ArturMoczulski

From Wordpress plugin directory forums:

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!

https://wordpress.org/support/topic/catching-errors-before-init-action/

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions