Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable send test message on Rollbar #94

Open
0xkynz opened this issue Mar 28, 2020 · 0 comments · May be fixed by #95
Open

Unable send test message on Rollbar #94

0xkynz opened this issue Mar 28, 2020 · 0 comments · May be fixed by #95

Comments

@0xkynz
Copy link

0xkynz commented Mar 28, 2020

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.

@0xkynz 0xkynz linked a pull request Mar 28, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant