Page 1 of 1

[SOLVED] Agent screen not showing call info

PostPosted: Thu Nov 07, 2019 12:16 pm
by Marco Zink
Hello there,

I have a server with ViciBox v.8.1.2 181002 VERSION: 2.14-723a BUILD: 191106-093 and I am having a strange problem after updating to the latest SVN version.

When auto calls are made the call gets answered but no information is shown in the agent screen and no hangup button is enabled. I can see the "Customer Time" field shows NaN NaN:NaN:NaN AM, the browser console shows two errors:

Code: Select all
Uncaught TypeError: Cannot read property 'length' of undefined
    at f_tcal_hideAll (calendar_db.js:306)

Which shows when signing in, I've seen before without any mayor issues

Code: Select all
Uncaught TypeError: Cannot read property 'length' of undefined
    at XMLHttpRequest.xmlhttprequestcheckauto.onreadystatechange (vicidial.php:7012)

Which shows whenever a call is sent to the session, the line 7012 shows:
Code: Select all
if (VDIC_data_VDIG[38].length > 0)


We can only make manual calls, they show no problem at all, but any kind of auto calls show this behavior.]

Any ideas?

Re: Agent screen not showing call info

PostPosted: Thu Nov 07, 2019 1:21 pm
by Marco Zink
Just updated another completely different test server that was working correctly and the problem started presenting itself.

Heres the full traceback of the error in the console:

Code: Select all
xmlhttprequestcheckauto.onreadystatechange   @   vicidial.php:7012
XMLHttpRequest.send (async)      
(anonymous)   @   VM2706:1
check_for_auto_incoming   @   vicidial.php:6893
start_all_refresh   @   vicidial.php:14433
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4076:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4074:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4072:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4069:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4068:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4066:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4064:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4062:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4060:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4058:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4056:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4054:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4052:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4050:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4047:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4044:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4041:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4039:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4037:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4035:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4033:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4031:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4029:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4027:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4025:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4023:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4021:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4019:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4017:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4015:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4013:1
setTimeout (async)      
start_all_refresh   @   vicidial.php:14836
all_refresh   @   vicidial.php:15040
(anonymous)   @   VM4011:1

Re: Agent screen not showing call info

PostPosted: Thu Nov 07, 2019 5:07 pm
by mflorell
Looks like it was a bug related to a recent change. I've fixed vdc_db_query.php in svn/trunk, so if you upgrade it should be fixed now.

Thanks!

Re: Agent screen not showing call info

PostPosted: Thu Nov 07, 2019 7:58 pm
by Marco Zink
Thank you Matt, just went to revision 3159 and everything is working now.

Have a great night!

Re: [SOLVED] Agent screen not showing call info

PostPosted: Thu Nov 07, 2019 11:53 pm
by mflorell
Thanks for the post-back!