Rollbar full-stack error tracking for WordPress
The full documentation is available here.
Rollbar collects errors that happen in your application, notifies you, and analyzes them so you can debug and fix them.
This plugin integrates Rollbar into your WordPress installation.
Find out how Rollbar can help you decrease development and maintenance costs.
See real companies improving their development workflow thanks to Rollbar.
The easiest way to install the plugin is from the WordPress Plugin directory. If you have an existing WordPress installation and you want to add Rollbar:
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
.Settings
→ 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
.Warning: This installation method might not be suitable for complex WordPress projects. The plugin installed this way will be self-contained and include all of the required dependencies for itself and 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.
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": "*"
}
composer install
in the root directory of your WordPress project.If you run into any issues, please email us at support@rollbar.com
For bug reports, please open an issue on GitHub.
The original author of this package is @flowdee. This is a fork and continuation of his efforts.
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)In order to run the tests, you will need to install the dependencies for @wordpress/env including Node.js, git, and docker.
WP_ENV_PHP_VERSION
enviormental variable to test with different versions of PHP. If you are changing the version, you can do so by running WP_ENV_PHP_VERSION="8.2" npm run wp-env start -- --update
and setting the enviornmental variable based on This is only for contributors with committer access:
readme.txt
under Stable tag
.Changelog
section of the readme.txt
.Upgrade Notice
section of the readme.txt
.rollbar-php-wordpress.php
in the Version:
comment.src/Plugin.php
in the \Rollbar\Wordpress\Plugin::VERSION
constant.git add readme.txt rollbar-php-wordpress.php src/Plugin.php && git commit -m"Bump version to v[version number]"
git push origin master
master
branch and push upstream with git tag v[version number] && git push --tags
.svn update
.trunk/
with rm -Rf trunk
.trunk/
with a clone of the tag you created in step 2.
git clone https://github.com/rollbar/rollbar-php-wordpress.git trunk
cd trunk && git checkout tags/v[version number] && cd ..
rm -Rf trunk/.git
svn add trunk --force
svn commit -m"Sync with GitHub repo"
svn copy https://plugins.svn.wordpress.org/rollbar/trunk https://plugins.svn.wordpress.org/rollbar/tags/[version number] -m"Tag [version number]"
. Notice the version number in Subversion doesn't include the "v" prefix.This plugin is a community-driven contribution. All rights reserved to Rollbar.