开发者 |
arturmoczulski
jorbin |
---|---|
更新时间 | 2023年9月14日 06:37 |
PHP版本: | 4.4.0 及以上 |
WordPress版本: | 6.3.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Please note In order to use this plugin, a Rollbar account is required.技术支持
Plugins
→ Add New
.Rollbar
by Rollbar in the search results.Install Now
next to the Rollbar
plugin.Plugins
→ Installed plugins
find Rollbar
and click activate
underneath.Settings
→ Project Access Tokens
.post_client_item
and post_server_item
.Tools
→ Rollbar
.PHP error logging
and/or Javascript error logging
depending on your needs.Access Token
section.Environment
. By default, the environment will be taken from WP_ENV
environment variable if it's set otherwise it's blank. We recommend to fill this out either with development
or production
.Save Changes
.rollbar/rollbar-php
library. In complex projects, this might lead to version conflicts between dependencies and other plugins/packages. If this is an issue in your project, we recommend the "Advanced" installation method. For more information why this might be important for you, read Using Composer with WordPress.
Through wpackagist (if you manage your project with Composer) recommended
This is a recommended way to install Rollbar plugin for advanced projects. This way ensures the plugin and all of its' dependencies are managed by Composer.
composer.json
add wpackagist-plugin/rollbar
to your require
section, i.e.:"require": {
"php": ">=5.5",
...,
"wpackagist-plugin/rollbar": "*"
}
3. Issue command composer install
in the root directory of your WordPress project.
4. In Plugins
→ Installed plugins
find Rollbar
and click Activate
underneath.
5. Log into your Rollbar account dashboard.
6. Go to Settings
→ Project Access Tokens
.
7. Copy the token value under post_client_item
and post_server_item
.
8. Navigate to Tools
→ Rollbar
.
9. Enable PHP error logging
and/or Javascript error logging
depending on your needs.
10. Paste the tokens you copied in step 7 in Access Token
section.
11. Provide the name of your environment in Environment
. By default, the environment will be taken from WP_ENV
environment variable if it's set otherwise it's blank.
12. Pick a minimum logging level. Only errors at that or higher level will be reported. For reference: PHP Manual: Predefined Error Constants.
13. Click Save Changes
.Yes of course. Additionally, you can assign different environments to each of your blogs.
Yes. It's actually the recommended method of installation.
plugins_loaded
hook to the invocation of the main plugin file (https://github.com/rollbar/rollbar-php-wordpress/issues/73)Enable as a Must-Use plugin
settings (https://github.com/rollbar/rollbar-php-wordpress/issues/73)rollbar_plugin_settings
filter