Hi,
The GitHub repo has a new 2.6.4 release https://github.com/rollbar/rollbar-php-wordpress/releases/tag/v2.6.4.
When is it going to be published here too?
Thanks,
Chris
Will this plugin be getting updated any time soon?
Both the PHP and JavaScript libraries seem to be old.
]]>Are you planning to fix the error reported to you concerning the register_rest_route call? Not sure why the topic is closed without an answer or a fix: register_rest_route called incorrectly, but we’re having the same issue with the current version 2.6.1 as of this writing.
It’s not an isolated incident as you can see at any plugin compatibility site e.g. https://plugintests.com/plugins/wporg/rollbar/latest.
As the author, you can add the required permission_callback argument to the REST API route definition like so:
Go to ./wp-content/plugins/rollbar/src/Plugin.php line 167 and add
'permission_callback' => '__return_true',
.
I’ve done so in my project to eliminate the error in my debugs, but will get overwritten when I update the plugin next if you don’t fix it yourself as the author.
Please advise if and when the fix is coming, or if you still support it?
Thank you.
]]>We need it ^^) Thx
]]>We’re getting a number of PHP notices while debugging & are hoping you can issue a fix in a future release.
PHP Notice: register_rest_route was called incorrectly. The REST API route definition for rollbar/v1/test-php-logging
is missing the required permission_callback
argument. For REST API routes that are intended to be public, use __return_true
as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
The fix created for package rollbar/rollbar-php-wordpress was never ported over to the WordPress plugin version. I received thousands of occurrences until patched it myself, please release an update with the fix.
Equivalent wpackagist package issue
To resolve, update line 102 of wp-content/plugins/rollbar/src/Settings.php to:
if( !session_id() && !defined( 'DOING_CRON' )) {
as defined here.
Hello team,
your plugin is good. but when I installing your plugin then getting this site health two error please see the screenshot. https://i.imgur.com/ArE6lJf.png please solved my problem please fix this issue and my site report comes will get good. please help me.
Hi,
When Rollbar is active, I get the issues attached in the screenshot in the WordPress Site Health page.
Screenshot:
https://snipboard.io/yAWE1g.jpg
I verified it with ALL other plugins disabled, and with a stock theme.
Thanks,
Asaf
Request url /wp-cron.php?doing_wp_cron=1554191111.1389780044555664062500
File /wp-content/plugins/rollbar/src/Settings.php line 103 in session_start
Issue is this line
if( !session_id()) {
Fixed by this change
if( !session_id() && !defined( 'DOING_CRON' )) {
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!
]]>I have WP_ENV specified in wp-config:
define( ‘WP_ENV’, ‘development’ );
But it doesn’t appear on the settings page: https://take.ms/sGd8U
Also, in email notifications:
Environment: unknown
Hi there
You broke it again! I’ve had to delete the plugin.
Exception: Configuration option custom_data_method doesn’t exist in Rollbar.
+ 2 non-project frames
3
File “public_html/web/wp/wp-includes/class-wp-hook.php”, line 286 in Rollbar\Wordpress\Settings::addSettings [args]
4
File “public_html/web/wp/wp-includes/class-wp-hook.php”, line 310 in WP_Hook::apply_filters
5
File “public_html/web/wp/wp-includes/plugin.php”, line 453 in WP_Hook::do_action [args]
6
File “public_html/web/wp/wp-admin/admin-ajax.php”, line 44 in do_action [args]
Best
M
Hi
Thanks for fixing the previously reported bugs, the plugin is working well now.
A small console error I am seeing in the admin;
Refused to apply style from …themes/settings_page_rollbar_wp.css?ver=4.6′ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Its not affecting the functionality as far as I can see but I thought you would like to know.
Best
M
Hi again
A recent update has meant I am no longer able to use the plugin at all, due to the PHP versions I am running (5.5.9).
PHP Warning: ucwords() expects exactly 1 parameter, 2 given: plugins/rollbar/src/Plugin.php on line 359
Ucwords introduced the delimiter in 5.5.16 and so this generates a warning. Sadly, I have had to disable the plugin.
Regards
M
I’m getting loads of the following errors since updating the plugin:PHP Deprecated: Non-static method Rollbar\Wordpress\UI::getIncludedErrnoDescriptions() should not be called statically in /srv/users/serverpilot/apps/myapp/public/wp-content/plugins/rollbar/src/Settings.php on line 162
Hi there
I managed to paste in the wrong server side access token and the plugin fails with a 500 error which was not recoverable. I removed the plugin and will have to delete the access token manually from the database.
The error is below. Note that I have changed the access token/IP and site name for security reasons.
[Tue Feb 20 13:43:30.596486 2018] [:error] [pid 17710] [client 1.1.1.1:13546] PHP Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘$config[‘access_token’] must be 32 characters long, was ‘66636b3c6bc72528a2b416102cc80c5a4fc9c040a76b4be68990bc5f0af2b90e” in /var/www/site1/httpdocs/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Utilities.php:22\nStack trace:\n#0 /var/www/site1/httpdocs/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Config.php(155): Rollbar\\Utilities::validateString(‘40636b3c6bc6452…’, ‘config[‘access_…’, 32, false)\n#1 /var/www/site1/httpdocs/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Config.php(126): Rollbar\\Config->setAccessToken(Array)\n#2 /var/www/site1/httpdocs/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Config.php(81): Rollbar\\Config->updateConfig(Array)\n#3 /var/www/site1/httpdocs/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/RollbarLogger.php(17): Rollbar\\Config->__construct(Array)\n#4 /var/www/site1/httpdocs/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Rollb in /var/www/site1/httpdocs/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Utilities.php on line 22
]]>Hi there,
The latest update completely destroyed my page load times. Went up to 1 minute plus for loading simple pages. Did some basic testing by just enabling/ disabling rollbar and it’s clearly the culprit.
]]>After updating to 2.0 I immediately started getting logs in rollbar for the site.
E_ERROR: Class ‘Rollbar\Wordpress\Rollbar\RollbarJsHelper’ not found: Class ‘Rollbar\Wordpress\Rollbar\RollbarJsHelper’ not found
File “/home/nativeedge/nativeedgelandscape.com/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Rollbar.php”, line 184, in Rollbar\DataBuilder::generateErrorWrapper
File “/home/nativeedge/nativeedgelandscape.com/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Rollbar.php”, line 161, in Rollbar\Rollbar::generateErrorWrapper
File “/home/nativeedge/nativeedgelandscape.com/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/DataBuilder.php”, line 981, in Rollbar\Rollbar::fatalHandler
The admin side of things was humming along just fine, but when I visited my site I just had a blank screen with nothing rendered.
]]>I can’t seem to configure it on multisite, Does it have multisite support?
]]>