400 on admin-ajax.php but everything looks correctly configured
-
WordPress/Website Integration (In 3CX): https://dev.exampleurl.com; https://exampleurl.com; https://test.exampleurl.com
The dev URL is with a custom theme. The test URL is a clean WP installation that has only ‘WP-Live Chat by 3CX’ with the ‘Twenty Twenty’ theme. I am able to reproduce the same behavior with both instances, thus I excluded something in my custom theme or plugins is breaking ‘WP-Live Chat by 3CX’.
I configured ‘WP-Live Chat by 3CX’ as ‘3CX PBX Integration’ and used my test extension ‘https://pbx_url:port/callus/#friendly_name’ (The value that I used in WP was a copy/paste from 3CX).
When I load a page that has the chat popup, I see that icon disabled because a request to ‘https://wp_url/wp-admin/admin-ajax.php’ returns 400 (The response is 0). When I mimic the same request with postman (The request had an ‘action’ and a ‘security’ value) I receive this
{
“Data”: {
“dictionary”: {
“OfflineFormTitle”: “Leave a message”,
……
“ChatEndMessage”: “Chat session ended”
}
},
“ErrorFound”: false,
“ErrorMessage”: “”,
“Status”: 17
}which I assume is what it should return.
Any tips on how to troubleshot this one?*This is a 3am post, after spending 5hours searching and testing (but unfortunately everything looks OK according to the solutions that people offered in other posts).
- The topic ‘400 on admin-ajax.php but everything looks correctly configured’ is closed to new replies.