Backend Chat page refreshing
-
Hello,
We recently ran into an issue in which the live chat backend change occasionally refreshes and sometimes breaks chats. The refreshes themselves are disrupting, but the fact that it can mess with the chats as well is more concerning.The issues (I’m not sure if they are all related) are: frequent page refreshing, chat messages lost sometimes when page refreshed, option to end/leave chat not available occasionally, chat messages get reorganized sometimes when page refreshed, occasionally messages sent before agent joins don’t show, webpage becomes unresponsive, error message “This site can’t be reached” occasionally happens.
For the refreshes I’ve been able to narrow those down to a specific event in the Network tab of Chrome Inspect tools. Essentially WP Live Chat is making hundreds of ajax calls (https://www.domain.com/wp-admin/admin-ajax.php?_fs_blog_admin=true) in a short time period (it ranges from about 10 every couple seconds to about 100 every couple seconds). Usually after 1-1.5 thousand calls one of the them will fail and it’ll initiate a page refresh.
The number of ajax calls seem to increase based off how many visitors are there, but usually doesn’t cause any issues until a chat starts.Before the failed ajax call there is only one error and one warning in Chrome Inspector Console (Warning: DevTools failed to parse SourceMap, Error: 404 Not Found for resources ui-icons_444444_256x240.png). After the failed ajax call there are a few errors that appear (Error: Uncaught TypeError cannot read property ‘name’ of undefined, Error: 502 GET request for total-visitors-online api?, and then an error of that same GET request being blocked based off of CORS policy).
I’m working on seeing it this issue is related to the theme on a test site (currently the issue has only been seen on our live site). I’ve ruled out caching and optimization plugins and installing and configuring the Heartbeat API plugin to send ajax calls less frequently seems to help a bit, but doesn’t solve the issue. I’m wondering if it’s related to this issue here. https://www.ads-software.com/support/topic/429-erros-too-many-requests/
Thank you.
- The topic ‘Backend Chat page refreshing’ is closed to new replies.