Notifications
Clear all

[Solved] POST400 error

15 Posts
3 Users
2 Likes
1,009 Views
(@dooomer)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

Hello, sometimes I see in Chrome Developer Tools this error:

POST https://mysite.com/wp-admin/admin-ajax.php 400 error

It happens randomly - not for every article open/reload. When I inspect this issue, I can see in Headers this code:

wouAjaxData:

 

{"users":[{"email":"qsieieie@t3teir.pm","name":"loko"},{"email":"jrgu@pragehz.pm","name":"weth"},{"email":"re.re@pragehz.pm","name":"Lolo71"},{"email":"jynffrx@rznvy.pm","name":"Mirko H."}]}
action: wouPushNotification
 
And I found "wouAjaxData" is something to do with WpDiscuz, but I have no idea what is this. I am using native AJAX functions of Wordpress, because custom wpDiscuz AJAX doesn't work with my theme.
 
Do you have any idea how can I fix this? 🙂

   
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

First of all, please don't worry about this error, it doesn't affect on your site.

Also please note it comes from wpDiscuz Online Users add-on, not from wpDiscuz plugin.
Or maybe your site work overload, that's the reason you get this issue rarely.


   
(@dooomer)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

thanks for reply. And what exactly is causing this in Online Users add-on? Is there any way how to fix this? We have our custom server, so our site can't overload (we checked the server logs) and server usage is about 20 - 30 percent. We are trying to have "good" site with no errors in Chrome Dev Tools, so I hope there is a chance to solve this 🙂


   
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

@dooomer,

I'm really sorry, but we can't say the exact reason of the issue. The issue is happening when WordPress can't find the action of the ajax, so we can't manage the reason for it. 
We need access to check it on your website, but as you already mention you get the error rarely, so it will be so hard to detect the issue and try to fix it.

 


   
(@dooomer)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

Hello Elvina, I've checked our server log and this issue is causing so much errors and time-delays for loading page, as you can see on this screenshots:

https://imgur.com/JwflECc

https://imgur.com/UoMkbKj

If you want, I can send you access to our staging site to inspect that issue, but please tell me where, because I don't want to post the credentials here on the forum board 🙂


   
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

@dooomer,

Please send the admin login details to info[at]gvectors.com email address. I'll ask the developers to check it for you.


   
(@dooomer)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

Thank you. Email sent 🙂


   
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

@dooomer,

The issue is fixed by our developers. 

Please delete all caches, reset all JS minifications, then press CTRL+F5(twice) on the frontend and check. 

 


   
(@dooomer)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

thank you, I will check it soon. And what changes exactly your developer did on our site? Can you please let me know 🙂 


   
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

@dooomer,

There was a small bug in the wpDiscuz Online Users add-on, and it's already fixed by our developers.

 


   
dooomer reacted
(@dooomer)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

ok, thanks for letting me know. So you updated the Online plugin to the new version, or you fixed it on your server side? 🙂


   
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5911
 

@dooomer,

The issue is fixed in both cases (in the core of the add-on and on your website). Once we release the add-on you can update it without any worries. The changes made by our developers will not be lost. 


   
dooomer reacted
(@dooomer)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

ok, thanks for reply. And can you please tell me where exactly you did the changes? I need to know for our server admin, because we have no access from WP admin to filesystem on the server 🙂 so we need to know what (or where) you did the changes 🙂 


   
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5911
 

@dooomer,

All changes were done in the /wp-content/plugins/wpdiscuz-online-users/assets/js/wou.js file. 


   
(@dooomer)
Active Member
Joined: 4 years ago
Posts: 19
Topic starter  

Amazing, thank you very much 🙂


   
Share:
Scroll to top