Help
General ArrowChat talk that doesn't fit any other forum.
User avatar
JInfem
Customer
 
Posts: 6
Joined: 21 Jul 2016, 21:13

 

by JInfem 30 Dec 2017, 08:03

Is it expected/known behavior for the user list in chat room to remain static until you change pages or refresh? Room lists don't seem to update when people enter or leave unless you refresh or go to a new page. Is this true of all arrowchat sites and expected behavior, or did I do something wrong? The main user list (outside of rooms) refreshes as people join/leave.
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 31 Dec 2017, 20:53

The list should update every 30 seconds. This time is configurable via the admin panel under System > Configuration.
User avatar
JInfem
Customer
 
Posts: 6
Joined: 21 Jul 2016, 21:13

 

by JInfem 04 Jan 2018, 17:32

I've adjusted this value from the default of 60 seconds to several different values, but nothing seems to work. This doesn't seem to have any impact on the chat room user list. The friends list updates correctly, but the list of room users does not. It remains static until you either press F5 to refresh the page, go to another room and come back, or change pages on the site. It would appear to be some sort of caching issue, but I can't seem to narrow it down. I submitted a ticket with a test login/password, but wasn't sure if this was the better place to ask. Thanks for anything that you can do to help. This is one of my users #1 complaints, and after days of troubleshooting I'm still at a loss on how to fix it.
User avatar
JInfem
Customer
 
Posts: 6
Joined: 21 Jul 2016, 21:13

 

by JInfem 04 Jan 2018, 19:02

Ok. After days of digging, I think that I figured it out. I noticed in bootstrap.php that error_reporting was turned off, so I turned it on and looked around through my arrowchat folders. In doing so, I found some error_logs in includes/json/receive that helped narrow it down.

There were 2 big main errors:

1) I was already doing a session_start through the header of my site. This was being duplicated on /includes/integration.php . I changed the line on integration.php from session_start(); to if (!isset($_SESSION)) { session_start(); }

2) I was seeing a number of errors that the headers had already been sent. I commented out the "header('Content-type: application/json; charset=UTF-8');" line at the bottom of includes/json/receive/receive_chatroom and /includes/json/receive/receive_chatroom_room.php .

These changes seem to have fixed the issues with the user list not refreshing in rooms, and doesn't appear to have caused any other issues with chat or site functionality.

I hope that this is helpful to somebody else who is having similar problems.