Page 1 of 1
Issues with agent_time_detail.php in HTML view
Posted:
Tue Nov 26, 2013 10:31 am
by Lukeyyz
Hi,
I've been having some issues with the agent_time_detail.php in html view.
Server Information:
Version of Vicibox = ViciBox Redux v.4.0.1. VERSION: 2.8-417a, BUILD: 131019-0849
OS = OpenSuSE v.12.1 (I Think!)
SVN: Revision: 2040
I'm getting the following error on every line of the code where it makes the HTML table rows.
- Code: Select all
[Tue Nov 19 14:35:56 2013] [error] [client IPADDRESS] PHP Warning: Division by zero in /blah/AST_agent_time_detail.php on line 1175, referer: IPADDRESS/vicidial/AST_agent_time_detail.php
Have there been any issues with the new SVN revision and this script?
Hope someone can help!
Re: Issues with agent_time_detail.php in HTML view
Posted:
Tue Nov 26, 2013 10:41 am
by Lukeyyz
Just to add this is a 3 server cluster!
Server 1: Web/DB
Server 2: Asterisk
Server 3: Asterisk
Re: Issues with agent_time_detail.php in HTML view
Posted:
Tue Nov 26, 2013 10:44 am
by geoff3dmg
SVN r2042 has changes to the realtime display.
Re: Issues with agent_time_detail.php in HTML view
Posted:
Tue Nov 26, 2013 11:04 am
by Lukeyyz
Updated to SVN 2043 on a test box and getting the bellow errors in /var/log/apache2/error_log
- Code: Select all
[Tue Nov 26 16:01:36 2013] [error] [client 192.168.2.122] PHP Warning: Division by zero in /srv/www/htdocs/vicidial/AST_agent_time_detail.php on line 1112, referer: 192.168.2.163/vicidial/AST_agent_time_detail.php
[Tue Nov 26 16:01:36 2013] [error] [client 192.168.2.122] PHP Warning: Division by zero in /srv/www/htdocs/vicidial/AST_agent_time_detail.php on line 1113, referer: 192.168.2.163/vicidial/AST_agent_time_detail.php
[Tue Nov 26 16:01:36 2013] [error] [client 192.168.2.122] PHP Warning: Division by zero in /srv/www/htdocs/vicidial/AST_agent_time_detail.php on line 1114, referer: 192.168.2.163/vicidial/AST_agent_time_detail.php
[Tue Nov 26 16:01:36 2013] [error] [client 192.168.2.122] PHP Warning: Division by zero in /srv/www/htdocs/vicidial/AST_agent_time_detail.php on line 1115, referer: 192.168.2.163/vicidial/AST_agent_time_detail.php
[Tue Nov 26 16:01:36 2013] [error] [client 192.168.2.122] PHP Warning: Division by zero in /srv/www/htdocs/vicidial/AST_agent_time_detail.php on line 1116, referer: 192.168.2.163/vicidial/AST_agent_time_detail.php
Re: Issues with agent_time_detail.php in HTML view
Posted:
Wed Nov 27, 2013 7:08 am
by DomeDan
That's not really an error, it's just a warning.
Yes division by zero is not good but php won't do the division,
but the variable should be checked if its zero before trying to divide it.
Do you experience any problem with some report?
Re: Issues with agent_time_detail.php in HTML view
Posted:
Thu Nov 28, 2013 7:24 am
by Lukeyyz
H
DomeDan wrote:That's not really an error, it's just a warning.
Yes division by zero is not good but php won't do the division,
but the variable should be checked if its zero before trying to divide it.
Do you experience any problem with some report?
The report doesn't show in HTML view, but does in TEXT view. The first row of the table shows, but no data.
Re: Issues with agent_time_detail.php in HTML view
Posted:
Fri Nov 29, 2013 9:04 am
by DomeDan
Tried it on a default vicibox 5.0.3 and the problem was there,
I can take a better look at it next week and do some debugging
Re: Issues with agent_time_detail.php in HTML view
Posted:
Fri Nov 29, 2013 10:26 am
by mflorell
Should be fixed in svn/trunk now.
Re: Issues with agent_time_detail.php in HTML view
Posted:
Mon Dec 02, 2013 5:03 am
by Lukeyyz
Thanks Matt, All good now it seems on my test box.
Could someone else confirm this also?
Just need to do this on a 3 server cluster next!
Re: Issues with agent_time_detail.php in HTML view
Posted:
Mon Dec 02, 2013 5:58 am
by DomeDan
Yeah its working,
"division by zero" usually does not end the script, but maybe the new version of apache is a bit more strict, well well
Re: Issues with agent_time_detail.php in HTML view
Posted:
Mon Dec 02, 2013 6:25 am
by Lukeyyz
Cool, thanks Dan, much appreciated.
And thank you Matt for fixing this so quickly!