Skip to content

Unable send test message on Rollbar #94

@0xkynz

Description

@0xkynz

Hi,
My website: http://localhost/wordpress, when I click "Send test message to Rollbar" Button on rollbar setting. It appears:

There was a problem accessing Rollbar service.
Code: undefined
Message: undefined
I can not connect to the rollbar.

I found the problem:

logThroughPhp = function(config) {
jQuery.post(
"/index.php?rest_route=/rollbar/v1/test-php-logging",
config,
function(response) {
if (response.err || response.code == 0) {
phpFailNotice(response);
} else {
phpSuccessNotice();
}
}
).fail(function(response) {
phpFailNotice(response);
});
},

My solution:
We can use rest_url function to improve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions