Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catching errors before ‘init’ action #73

Closed
ArturMoczulski opened this issue Feb 12, 2019 · 1 comment
Closed

Catching errors before ‘init’ action #73

ArturMoczulski opened this issue Feb 12, 2019 · 1 comment
Assignees

Comments

@ArturMoczulski
Copy link

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/

@ArturMoczulski ArturMoczulski self-assigned this Feb 12, 2019
@ArturMoczulski
Copy link
Author

This got released in v2.5.0: https://github.com/rollbar/rollbar-php-wordpress/releases/tag/v2.5.0

Also, I added UI for switching between Must-Use plugin and not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant