Title: Rollbar
Author: rollbar
Published: <strong>November 4, 2015</strong>
Last modified: April 3, 2026

---

Search plugins

![](https://ps.w.org/rollbar/assets/banner-772x250.png?rev=3380576)

![](https://ps.w.org/rollbar/assets/icon-256x256.png?rev=3380576)

# Rollbar

 By [rollbar](https://profiles.wordpress.org/rollbar/)

[Download](https://downloads.wordpress.org/plugin/rollbar.3.1.3.zip)

 * [Details](https://twd.wordpress.org/plugins/rollbar/#description)
 * [Reviews](https://twd.wordpress.org/plugins/rollbar/#reviews)
 *  [Installation](https://twd.wordpress.org/plugins/rollbar/#installation)
 * [Development](https://twd.wordpress.org/plugins/rollbar/#developers)

 [Support](https://wordpress.org/support/plugin/rollbar/)

## Description

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.

#### Features

 * PHP & JavaScript error logging.
 * Define an environment for each single WordPress installation or Multisite blog.
 * Specify your desired logging level.
 * Regular updates and improvements!

**Please note:**
 In order to use this plugin, a [Rollbar account](https://rollbar.com/)
is required.

#### Support

 * Browse [issue tracker](https://github.com/rollbar/rollbar-php-wordpress/issues)
   on GitHub and report new issues.
 * If you run into any issues, please email us at [support@rollbar.com](https://twd.wordpress.org/plugins/rollbar/support@rollbar.com?output_format=md).
 * For bug reports, please [open an issue on GitHub](https://github.com/rollbar/rollbar-php-wordpress/issues/new).

#### You like it?

You can at least support the plugin development and rate it up!

#### Disclaimer

This plugin is a community-driven contribution. All rights reserved to [Rollbar](https://rollbar.com/).

## Screenshots

 * [[
 * Settings page.

## Installation

The installation and configuration of the plugin are as simple as it can be.

#### Through WordPress Plugin directory

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:

 1. In your WordPress administration panel go to `Plugins`  `Add New`.
 2. Search for “Rollbar” and find `Rollbar` by Rollbar in the search results.
 3. Click `Install Now` next to the `Rollbar` plugin.
 4. In `Plugins`  `Installed plugins` find `Rollbar` and click `Activate` underneath.

**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 the `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 “Packagist”
installation method.

#### Through Packagist

_Note: this only works if your WordPress project is managed with Composer.
 Read
[Using Composer with WordPress](https://roots.io/using-composer-with-wordpress/)
for more details.

This is a recommended way to install the Rollbar plugin for advanced projects. This
way ensures the plugin and all of
 its dependencies are managed by Composer.

You can install the plugin by running the following command in the root directory
of your WordPress project:

    ```
    `
    ```

composer require rollbar/rollbar-php-wordpress:^3.0
 `

#### Through WPackagist

_Note: if your WordPress project is managed with Composer, we strongly recommend
installing the plugin through
 Packagist instead.

_Installing the plugin from wpackagist.org instead of packagist.org will result 
in the plugin being managed by
 Composer. However, the downside is that it’s dependencies
will not be managed by composer. Instead they will be packaged in the plugin’s `
vendor` directory not in your project’s `vendor` directory. This has the potential
to cause name collisions if other plugins or your project use different versions
of the same dependencies.

To install the plugin from wpackagist.org run the following steps command in the
root directory of your WordPress
 project:

    ```
    `
    ```

composer require wpackagist-plugin/rollbar
 `

#### Configuration

The plugin can be configured in the WordPress Admin or programmatically.

**WordPress Admin**

The plugin provides a settings page in the WordPress Admin that allows you to configure
the plugin. This settings page
 can be disabled by setting the `ROLLBAR_DISABLE_ADMIN`
constant to `true` in your `wp-config.php` file.

 1. In `Plugins`  `Installed plugins` find `Rollbar` and click `Activate` underneath.
 2. Log into your [Rollbar account dashboard](https://rollbar.com/login/):
 3.  a. Go to `Settings`  `Project Access Tokens`.
     b. Copy the token value under `post_client_item` and `post_server_item`.
 4. In WordPress, navigate to `Settings`  `Rollbar`:
 5.  a. Enable `PHP error logging` and/or `Javascript error logging` depending on your
        needs.
     b. Paste the tokens you copied in step 7 in `Access Token` section.
     c. 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.
        We recommend to fill this out either with `development` or production.
     d. Pick a minimum logging level. Only errors at that or higher level will be reported.
        For
         reference: [PHP Manual: Predefined Error Constants](http://php.net/manual/en/errorfunc.constants.php).
     e. Click `Save Changes`.

**Programmatic Configuration**

The plugin can also be configured programmatically. This is useful if you want to
configure the plugin in a more
 advanced way or if you want to disable the admin
settings page.

    ```
    `
    ```

// wp-config.php

// Configure the plugin.
 define( ‘ROLLBAR_SETTINGS’, [ ‘php_logging_enabled’ =>
true, ‘server_side_access_token’ => ”, ‘js_logging_enabled’ => true, ‘client_side_access_token’
=> ”, ‘environment’ => ‘development’, ‘included_errno’ => E_ERROR, ‘enable_person_reporting’
=> true, ] );

// Optional: disable the admin settings page so the plugin is configured only programmatically.

define( ‘ROLLBAR_DISABLE_ADMIN’, true ); `

## FAQ

### Multisite supported?

Yes, of course. Additionally, you can assign different environments to each of your
blogs.

### I have a complex WordPress project and use composer for managing dependencies. Is your plugin composer friendly?

Yes. It’s actually the recommended method of installation. You can install the `
rollbar/rollbar-php-wordpress` package
 using composer.

## Reviews

![](https://secure.gravatar.com/avatar/5e5c6a8e0a1eb194e45b33c361596e2ccb6342b7ecec3b69af9e988b01653ffb?
s=60&d=retro&r=g)

### 󠀁[Works, but outdated](https://wordpress.org/support/topic/works-but-outdated/)󠁿

 [mondalaci](https://profiles.wordpress.org/mondalaci/) May 31, 2023

Rollbar should update this plugin because it causes PHP deprecation warnings. I 
emailed them half a year ago, and they still haven’t updated it.

![](https://secure.gravatar.com/avatar/a42fc2280fbcf46560c203bb7a0dc56a26ab8cf99f574b6aeb3f2cb95eaa3862?
s=60&d=retro&r=g)

### 󠀁[Works a treat; but update rollbar-php](https://wordpress.org/support/topic/works-a-treat-but-update-rollbar-php/)󠁿

 [Sander van Dragt](https://profiles.wordpress.org/pacifika/) September 3, 2016 
1 reply

rollbar-php version 0.18.0 is now available. (This project is currently using version
0.15.0). Set this up to track my errors (roller is reasonable free for personal 
projects). Works great. Roller says that a new version is available so would be 
good to see that shipped with this plugin.

![](https://secure.gravatar.com/avatar/128a524c3d061dc4a055ec94e2cfed81d97281b4e8938ed75fdbe97914b2c6aa?
s=60&d=retro&r=g)

### 󠀁[Happy to spread my plugin!](https://wordpress.org/support/topic/happy-to-spread-my-plugin-3/)󠁿

 [flowdee](https://profiles.wordpress.org/flowdee/) September 3, 2016

Of course I like it 🙂

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/rollbar/reviews/)

## Contributors & Developers

“Rollbar” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ rollbar ](https://profiles.wordpress.org/rollbar/)
 *   [ arturmoczulski ](https://profiles.wordpress.org/arturmoczulski/)
 *   [ Aaron Jorbin ](https://profiles.wordpress.org/jorbin/)
 *   [ danielmorell ](https://profiles.wordpress.org/danielmorell/)

“Rollbar” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/rollbar/contributors)
for their contributions.

[Translate “Rollbar” into your language.](https://translate.wordpress.org/projects/wp-plugins/rollbar)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/rollbar/), check out
the [SVN repository](https://plugins.svn.wordpress.org/rollbar/), or subscribe to
the [development log](https://plugins.trac.wordpress.org/log/rollbar/) by [RSS](https://plugins.trac.wordpress.org/log/rollbar/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### Version 3.1.3 (April 3rd 2026)

 * Updated Rollbar JS snippet to v3.1.0.
 * Updated Rollbar PHP core SDK to v4.2.1.
 * Updated other dependencies.

#### Version 3.1.2 (March 6th 2026)

 * Fixed namespace strings not prefixed by PHPScoper.
 * Added NamespaceTokenFixer to fix unscoped namespace strings.

#### Version 3.1.1 (December 22nd 2025)

 * Fixed composer autoload ClassLoader namespace not replaced by PHPScoper in v3.1.0.

#### Version 3.1.0 (December 18th 2025)

 * Fixed settings values not being saved correctly when they match the default.
 * Added `rollbar_js_nonce` filter to allow customizing the nonce used in the Rollbar
   JS snippet.
 * Added support for WordPress 6.9.
 * Moved vendored files into a scoped namespace.
 * Updated the Rollbar core PHP SDK to v4.2.

#### Version 3.0.0 (October 17th 2025)

 * Fixed CSRF vulnerability.
 * Removed support for PHP 8.0 and below.
 * Updated and improved the settings page.
 * Updated the Rollbar core PHP SDK to v4.1.
 * Updated the Rollbar core JavaScript SDK to v2.26.
 * Added support for telemetry and added auto-instrumentation.
 * Added support for `ROLLBAR_DISABLE_ADMIN` to remove the plugin settings page 
   from the admin.
 * Added support for `ROLLBAR_SETTINGS` to configure the plugin without the admin
   page.
 * Added support for `ROLLBAR_CLIENT_ACCESS_TOKEN` constant or environment variable
   to set the client access token.
 * Added support for `WP_PROXY_BYPASS_HOSTS`, `WP_PROXY_USERNAME`, and `WP_PROXY_PASSWORD`
   for better proxy management.
 * Added `rollbar_api_admin_permission` filter to allow custom authorization of 
   the admin API.
 * Added `rollbar_user_can_view_admin` filter to allow custom disabling of the admin
   page.
 * Added `rollbar_php_config` filter to allow more exact control over Rollbar PHP
   configurations.
 * Added `rollbar_telemetry_actions` filter to allow control of which actions are
   logged via telemetry.
 * Added `rollbar_telemetry_custom_handlers` filter to allow custom control over
   what is logged in telemetry messages.
 * Added ‘framework’ details with the WordPress version to the item payload.

#### Version 2.7.1 (September 13th 2023)

 * Fix issue that could lead to fatal error with some settings (https://github.com/
   rollbar/rollbar-php-wordpress/pull/120)

#### Version 2.7.0 (September 11th 2023)

 * Updated PHP Dependencies including loading seperate dependencies for PHP7 and
   PHP8. (https://github.com/rollbar/rollbar-php-wordpress/pull/114)
 * Updated node development dependencies (https://github.com/rollbar/rollbar-php-
   wordpress/pull/115)

#### Version 2.6.4 (June 13th 2022)

 * Updated admin test results to show a skipped test as a success (https://github.
   com/rollbar/rollbar-php-wordpress/pull/110)
 * Fixed new session being created on every request (https://github.com/rollbar/
   rollbar-php-wordpress/pull/111)
 * Added search for WP_ENV as a constant or the environment (https://github.com/
   rollbar/rollbar-php-wordpress/pull/108)
 * Added a link to settings from the plugins page (https://github.com/rollbar/rollbar-
   php-wordpress/pull/109)

#### Version 2.6.3 (April 18th 2022)

 * Update the tested WP versions

#### Version 2.6.2 (March 4th 2020)

 * don’t start a session for wp-cron (https://github.com/rollbar/rollbar-php-wordpress/
   pull/88)

#### Version 2.6.1 (December 27th 2019)

 * fix(initPhpLogging): Moving fetch settings to before settings check. (https://
   github.com/rollbar/rollbar-php-wordpress/pull/84)

#### Version 2.5.1 (February 20th 2019)

 * Fixed a call to Rollbar\WordPress\Defaults for enableMustUsePlugin (https://github.
   com/rollbar/rollbar-php-wordpress/pull/75)

#### Version 2.5.0 (February 19th 2019)

 * Moved Rollbar initialization from `plugins_loaded` hook to the invocation of 
   the main plugin file (https://github.com/rollbar/rollbar-php-wordpress/issues/
   73)
 * Added support for running the plugin as a Must-Use plugin (https://github.com/
   rollbar/rollbar-php-wordpress/issues/73)
 * Added `Enable as a Must-Use plugin` settings (https://github.com/rollbar/rollbar-
   php-wordpress/issues/73)
 * UI improvements

#### Version 2.4.10 (February 5th 2019)

 * Added support for ROLLBAR_ACCESS_TOKEN constant and respecting the ROLLBAR_ACCESS_TOKEN
   environment variable (https://github.com/rollbar/rollbar-php-wordpress/issues/
   72)
 * Fixed tests
 * Updated dependencies

#### Version 2.4.9 (January 24th 2019)

 * Fix for issue #69 (https://github.com/rollbar/rollbar-php-wordpress/issues/69)

#### Version 2.4.8 (January 17th 2019)

 * Update rollbar-php to v1.7.4

#### Version 2.4.7 (August 14th 2018)

 * Update rollbar-php to v1.6.2

#### Version 2.4.6 (August 13th 2018)

 * Configuration option custom_data_method doesn’t exist in Rollbar (https://github.
   com/rollbar/rollbar-php-wordpress/issues/66)

#### Version 2.4.5 (August 7th 2018)

 * Update rollbar-php to v1.6.1
 * Remove mentions of IRC channel from README.md and readme.txt

#### Version 2.4.4 (June 18th 2018)

 * Update rollbar-php to v1.5.3

#### Version 2.4.3 (June 11th 2018)

 * Update rollbar-php to v1.5.2
 * Use rollbar-php:v1.5.2 new defaults methods to handle restoring default settings.

#### Version 2.4.2 (25th May 2018)

 * Fixed the plugin not always respecting the boolean true settings (https://github.
   com/rollbar/rollbar-php-wordpress/issues/58)

#### Version 2.4.1 (19th May 2018)

 * Updated rollbar-php dependency to v1.5.1

#### Version 2.4.0 (17th May 2018)

 * Added capture_ip, capture_email, and capture_username to the config options.
 * Fixed populating config options from the database to the plugin for boolean values.
 * Updated rollbar-php dependency to v1.5.0

#### Version 2.3.1 (10th April 2018)

 * Fixed a bug in strict PHP setups (https://github.com/rollbar/rollbar-php-wordpress/
   issues/44)

#### Version 2.3.0 (5th April 2018)

 * Added `rollbar_plugin_settings` filter
 * Added majority of Rollbar PHP config options to the User Interface.
 * Moved the settings from Tools -> Rollbar to Settings -> Rollbar

#### Version 2.2.0 (4th December 2017)

 * Fixed the logging level to correctly inlude errors from specified level and up.
 * Changed the default logging level setting.
 * Added instructions on tagging the repo to the README.md file.
 * Added tests for logging level.
 * Set up a PHPUnit test suite.
 * Add rollbar_js_config filter for JS config data customization.
 * Updated dependencies.

#### Version 2.1.2 (11th October 2017)

 * Use the default rest route instead of permalink /wp-json
 * Dynamically build the Rollbar JS snippet URL

#### Version 2.1.1 (11th October 2017)

 * Fixed location of the Rollbar JS snippet

#### Version 2.1.0 (11th October 2017)

 * Added “Send test message to Rollbar” button
 * Fixed the plugin’s name inconsistency between WordPress plugin directory and 
   composer.

#### Version 2.0.1 (6th October 2017)

 * Fixed RollbarJsHelper class loading bug in src/Plugin.php (https://github.com/
   rollbar/rollbar-php-wordpress/issues/23)

#### Version 2.0.0 (9th September 2017)

 * Added support for the WP_ENV environment variable
 * Organized the code into namespaces
 * Moved helper functions into static methods
 * Updated Rollbar PHP library
 * Included dependencies to make the plugin self-contained when installing through
   WP plugin directory
 * Rewrote readme files

#### Version 1.0.3 (12th August 2016)

 * Updated rollbar php lib to latest v0.18.2
 * Added .pot translation file
 * Removed WP.org assets from plugin folder

#### Version 1.0.2 (28th March 2016)

 * Updated rollbar js lib
 * Added escaping for setting values

#### Version 1.0.0 (4th November 2015)

 * Initial release!

## Meta

 *  Version **3.1.3**
 *  Last updated **1 day ago**
 *  Active installations **500+**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 8.1 or higher **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/rollbar/) and [English (US)](https://wordpress.org/plugins/rollbar/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/rollbar)
 * Tags
 * [error](https://twd.wordpress.org/plugins/tags/error/)[error tracking](https://twd.wordpress.org/plugins/tags/error-tracking/)
   [rollbar](https://twd.wordpress.org/plugins/tags/rollbar/)[tracking](https://twd.wordpress.org/plugins/tags/tracking/)
 *  [Advanced View](https://twd.wordpress.org/plugins/rollbar/advanced/)

## Ratings

 4 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/rollbar/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/rollbar/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/rollbar/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/rollbar/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/rollbar/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/rollbar/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/rollbar/reviews/)

## Contributors

 *   [ rollbar ](https://profiles.wordpress.org/rollbar/)
 *   [ arturmoczulski ](https://profiles.wordpress.org/arturmoczulski/)
 *   [ Aaron Jorbin ](https://profiles.wordpress.org/jorbin/)
 *   [ danielmorell ](https://profiles.wordpress.org/danielmorell/)

## Support

Issues resolved in last two months:

     0 out of 1

 [View support forum](https://wordpress.org/support/plugin/rollbar/)