Seems like the issue is on
wordpress-chat/js/mpmudev-chat.js Line: 211
You are calling
wpmudev_chat.chat_session_message_update();
without checking any conditions.
Either around that call or in the chat_session_message_update: function itself there should be a conditional set.
For now I just commented out line: 211 and it seems to be working fine now.
} else {
//wpmudev_chat.chat_session_message_update();
}
Hi @gravitate,
Thanks for posting on the forum.
Are you using chat on specific pages using chat shortcode and want the polling should only happen on those pages?
Please advise.
Kind Regards,
WPMU DEV
Yes, that is correct.
I am only having the Chat on a specific page.
It seems to me that there is no reason for the polling to happen on non-chat pages.
I suggest running a condition to check to see if the Chat is being displayed before running the Polling.
Your init function seems to do that, but there is the }else{ statement that bypasses that condition and runs the
wpmudev_chat.chat_session_message_update();
even if there is no chat.
Thanks
Hi @gravitate,
Thanks for clarifying that, I see what you mean. I think the plugin may do that because of the bottom chat but if you’re not using any chat at all in a specific area, it’s definitely helpful not to call that.
I’ll run this by the developers, this could especially help in cutting down server requirements.
Thanks!
David
Glad to hear it.
Please reply back if there is an update that resolves this issue.
Thanks
Sure we will reply on this thread if there is any update regarding this.