#1418 Chatbox not auto refreshing Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
+5
JScript
Ange Tuteur
SLGray
_Twisted_Mods_
dcj91x
9 posters

    #1418 Chatbox not auto refreshing

    avatar
    dcj91x
    Forumember


    Male Posts : 51
    Reputation : 0
    Language : English

    In progress #1418 Chatbox not auto refreshing

    Post by dcj91x February 18th 2015, 5:48 pm

    Technical Details

    Forum version : phpBB2
    Position : Founder
    Concerned browser(s) : Internet Explorer
    Who the problem concerns : A few members
    When the problem appeared : When chatbox was changed.
    Forum link : http://mhwiki.forumotion.net/

    Description of problem

    I did not see anywhere if this issue is still ongoing. The Chatbox on my forum still has problems auto refreshing for myself and others. Please check or advise on what can be done.
    avatar
    dcj91x
    Forumember


    Male Posts : 51
    Reputation : 0
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by dcj91x February 20th 2015, 5:42 pm

    Still having this issue. With heavier traffic starting on the forum right now due to new game release this issue is becoming quite a bit more inconvient. Is there any update information this?
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    In progress Re: #1418 Chatbox not auto refreshing

    Post by _Twisted_Mods_ February 20th 2015, 10:12 pm

    try disabling the chat box then turning it back on
    avatar
    dcj91x
    Forumember


    Male Posts : 51
    Reputation : 0
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by dcj91x February 20th 2015, 10:34 pm

    Nope.. didn't work for the refresh issue but the "archives" work better now.

    Anyways.. disableing it and turning it back on did not work.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    In progress Re: #1418 Chatbox not auto refreshing

    Post by _Twisted_Mods_ February 20th 2015, 10:47 pm

    is this just you having the issue?
    avatar
    dcj91x
    Forumember


    Male Posts : 51
    Reputation : 0
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by dcj91x February 20th 2015, 10:49 pm

    My self and one or two others have reported the issue as well. The others were a mod and a regular forum member.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    In progress Re: #1418 Chatbox not auto refreshing

    Post by _Twisted_Mods_ February 20th 2015, 10:53 pm

    try clearing your browser history and cache ..if that don't work make sure your browser is up to date.

    if neither of those work could you find out if the other two members are also running internet explorer
    avatar
    dcj91x
    Forumember


    Male Posts : 51
    Reputation : 0
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by dcj91x February 20th 2015, 10:54 pm

    Sure thing. I'll also try it on a couple of different computers and browsers.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51514
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: #1418 Chatbox not auto refreshing

    Post by SLGray February 21st 2015, 6:04 am

    It could be caused by CSS codes, JavaScript, or modified templates.



    #1418 Chatbox not auto refreshing Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    dcj91x
    Forumember


    Male Posts : 51
    Reputation : 0
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by dcj91x February 25th 2015, 4:57 pm

    I think it may be the Javascript or as you say SLGray. Not sure hoe to fix that though if it is the case.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: #1418 Chatbox not auto refreshing

    Post by Ange Tuteur February 25th 2015, 5:12 pm

    Hi,

    Is it occurring with the chatbox on the index, on the full chatbox page, or both ?

    Also, do you have any scripts installed which modify the chatbox ?
    ( Admin Panel > Modules > JavaScripts codes management )
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    In progress Re: #1418 Chatbox not auto refreshing

    Post by JScript February 25th 2015, 5:25 pm

    @dcj91x
    Hello!
    Look at the screenshot below:
    #1418 Chatbox not auto refreshing FIhFRez

    The file hosted by Forumotion starting with 99xxx.js represents all JavaScript code that you added with placement "In all the pages!"
    There is an error in one of the codes added in this placement, by showing the console browser, seems a CSS ...

    JS
    avatar
    dcj91x
    Forumember


    Male Posts : 51
    Reputation : 0
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by dcj91x February 25th 2015, 7:09 pm

    @Ange: it's on both and I do not have any Javascrips on as far as I can tell.

    @JScript, I either don't see anything or don't know exactly what to look for.
    avatar
    kirabook
    New Member


    Posts : 4
    Reputation : 1
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by kirabook March 3rd 2015, 6:36 pm

    We've been having this issue on our forum as well. The chat simply doesn't refresh, it only refreshes when one of us posts something new (for which we are logged out immediately and have to log back on)

    The only javascript we have is some that I just added today, the ones suggested here like sound notification and removing the "blah has joined/logged out", such things like that. We are using Invision, absolutely everything is pretty much vanilla (except like I mentioned, I JUST added that Javascript today)

    It's very frustrating for us. I believe we both use firefox (though this problem occurs on Chrome as well) I have cleared my cache, she has cleared hers. I disabled and reenabled the chatbox. Nothing seems to have worked. This happens on both the normal forum, and the actual chatbox page. (which I'll also mention that the javascript/jquery doesn't work on the actual chatbox page)
    Shadow
    Shadow
    Manager
    Manager


    Male Posts : 16208
    Reputation : 1832
    Language : French, English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by Shadow March 4th 2015, 11:15 am

    Hello

    Our technicians made a correction yesterday. Could you please check and tell us it improves the situation?

    Thanks for your help :rose:
    Chapo
    Chapo
    Technician
    Technician


    Posts : 37
    Reputation : 14
    Language : PHP ;)

    In progress Re: #1418 Chatbox not auto refreshing

    Post by Chapo March 4th 2015, 12:28 pm

    Hello @dcj91x,

    I may be wrong but for me the only way to have a JS file named as mentioned into your FB console is by adding it from your AP.

    I must also admit that it's very strange to have CSS declarations in a JS file :S

    I've just visited your forum and I don't have any error message in FB and I don't see any script in your AP, is it linked ? Have you deleted some scripts ? Do you always see the console error ?

    Thx
    avatar
    kirabook
    New Member


    Posts : 4
    Reputation : 1
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by kirabook March 4th 2015, 2:06 pm

    I tested it out this morning and it seems nothing has changed. The chat still doesn't update unless someone posts a new post. It will appear like you and everyone else is still logged on when in reality, they timed out.
    Chapo
    Chapo
    Technician
    Technician


    Posts : 37
    Reputation : 14
    Language : PHP ;)

    In progress Re: #1418 Chatbox not auto refreshing

    Post by Chapo March 4th 2015, 2:24 pm

    I'm not sure to understand @kirabook:

    there's no update as long as there's no new message → that's normal.

    everyone else is still logged on when in reality, they timed out → if you have no activity for a moment you'll be logged out. But the system detects you're disconnected when there's an event; without event there's no control otherwise there should be a permanent task controlling if the session token is still active and delete it + publish message when one or more session token have become invalid ... And this would be really too expensive regarding to system resources which are more useful for chatbox than for background tasks Wink
    avatar
    kirabook
    New Member


    Posts : 4
    Reputation : 1
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by kirabook March 4th 2015, 2:48 pm

    Before the chatbox update, the chatbox updated every 5 to 15 minutes right? It would refresh and show the person as away after 5 minutes, and after 15 minutes it would refresh and the person would not appear on the list at all because they have been timed out.

    Now, it does neither of those things. 5 minutes may go by and it appears that everyone is still online. 15 minutes or more go by and it appears that everyone is logged in, including yourself, but as soon as you enter something in the chat, it finally refreshes itself and you get logged out.

    I just want it to work like it did previously, checking to see who is online and who isn't every 5 minutes or so. The "away" feature is pointless as it is, and it's bothersome to type something in and get logged out because you realize that the chat wasn't refreshing and you weren't actually logged in.
    Chapo
    Chapo
    Technician
    Technician


    Posts : 37
    Reputation : 14
    Language : PHP ;)

    In progress Re: #1418 Chatbox not auto refreshing

    Post by Chapo March 4th 2015, 3:37 pm

    @kirabook: the old chatbox was based on "short polling" technology and the new one uses "long polling". In the old mode a request was sent every 5 seconds and now we're waiting for an event so that's completely different but be sure that we gonna discuss about your problem.


    avatar
    kirabook
    New Member


    Posts : 4
    Reputation : 1
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by kirabook March 4th 2015, 3:42 pm

    Thank you for looking into it a little bit.

    Usually, we would be on the chat all the time, but now our activity has decreased so much because it's frustrating when you check and you think the other person isn't there yet, or they think you aren't there, only to find out you missed them by an hour because the chatbox didn't refresh.

    The temporary solution that I have worked out is to install an addon to firefox that will refresh the page every 5 minutes, but I've already run into a downside where I'll have typed out something long and lose everything when the page suddenly refreshes. So I am hoping that somehow, the chatbox will refresh itself like it did before the update, or something similar.
    Shadow
    Shadow
    Manager
    Manager


    Male Posts : 16208
    Reputation : 1832
    Language : French, English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by Shadow March 4th 2015, 3:49 pm

    Hello

    Thanks to @Chapo for taking the time to explain how the chatbox is working Wink 
    The auto-refresh works like that now. If there is no action on the chatbox, nothing happens!

    Maybe the current sytem is not perfect, but we won't spend time to modify this point as it can cause extra problems.

    Thanks for your understanding :rose:
    Niko
    Niko
    Helper
    Helper


    Male Posts : 3242
    Reputation : 251
    Language : English, Italian, French
    Location : Italy

    In progress Re: #1418 Chatbox not auto refreshing

    Post by Niko March 4th 2015, 4:17 pm

    Merci @Chapo :rose:

    Many thanks for you perfect explanation, I was curious about that actually Wink
    avatar
    dcj91x
    Forumember


    Male Posts : 51
    Reputation : 0
    Language : English

    In progress Re: #1418 Chatbox not auto refreshing

    Post by dcj91x March 9th 2015, 6:49 pm

    Apologies in long delay of reply.

    @Chapo, I have not deleted anything as I would not know what to delete.

    I have tried several different devices and browseres and the issue remains.
    Chapo
    Chapo
    Technician
    Technician


    Posts : 37
    Reputation : 14
    Language : PHP ;)

    In progress Re: #1418 Chatbox not auto refreshing

    Post by Chapo March 11th 2015, 4:28 pm

    Hello @dcj91x

    no problem for delay Smile

    I've tried with Firefox and Chrome and I can't see the error message in Console, please gimme the process !

    Here's what I do:

    • Open a new browser and a new debug console (firebug with Firefox and developer tools with Chrome)
    • Copy/past the URL of your forum into addressbar
    • Log in forum
    • Check Console


    Do you do something else (I've also tried logging in Chatbox and there's no difference) ?
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    In progress Re: #1418 Chatbox not auto refreshing

    Post by JScript March 11th 2015, 5:06 pm

    @Chapo
    I also confirm that there are no more errors in the console: https://i.imgur.com/PqKhr9i.png

    @dcj91x
    Could you show us a sample image of the chat box?

    JS