forked from yffaffy/rollbar
-
Notifications
You must be signed in to change notification settings - Fork 21
Milestone
Description
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:
rollbar-php-wordpress/public/js/RollbarWordpressSettings.js
Lines 98 to 116 in 81d487c
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
Labels
No labels