WordPress integration guide
Typical installation time: 5 minutes
Hi there! You’ve found Honeybadger’s guide to WordPress error and exception tracking. Once installed, Honeybadger will automatically report errors wherever they may happen, both in the front-end (JavaScript) and back-end (PHP) of your WordPress site.
Installation
Section titled “Installation”First, install the Honeybadger Application Monitoring plugin via the WordPress plugin repository:
- In your WordPress admin panel, go to Plugins > Add New.
- Search for “Honeybadger Application Monitoring”.
- Click Install Now next to the Honeybadger plugin.
- After installation, click Activate.
Alternatively, you can install the plugin manually:
- Download the plugin from the WordPress plugin repository.
- Upload the plugin files to the
/wp-content/plugins/honeybadger-application-monitoringdirectory. - Activate the plugin through the Plugins page in WordPress.
Configuration
Section titled “Configuration”After activating the plugin, you need to configure it with your Honeybadger API key(s):
- In your WordPress admin panel, go to Settings > Honeybadger.
- Grab your API key(s) from your Honeybadger project settings. It is recommended that you have two separate projects, one for PHP and another for JavaScript error tracking.
- Enter your Honeybadger API key(s) in the PHP API Key and JS API Key fields.
- Ensure that PHP error reporting enabled is checked if you want to track PHP errors, as well as JS error reporting enabled if you want to track JavaScript errors.
- (Optional) You can also configure the Environment and Version settings to better track your errors.
- Click Save Changes.
Testing the integration
Section titled “Testing the integration”To ensure everything is set up correctly, you can trigger a test error:
- In your WordPress admin panel, go to Settings > Honeybadger.
- Check the Send test notification from PHP or Send test notification from JS checkboxes.
- Click Save Changes.
If everything is set up correctly, you should now have an error (or two if you checked both checkboxes) reported in Honeybadger!