Issues with agent_time_detail.php in HTML view

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Issues with agent_time_detail.php in HTML view

Postby Lukeyyz » Tue Nov 26, 2013 10:31 am

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!
Lukeyyz
 
Posts: 7
Joined: Tue Nov 26, 2013 10:21 am

Re: Issues with agent_time_detail.php in HTML view

Postby Lukeyyz » Tue Nov 26, 2013 10:41 am

Just to add this is a 3 server cluster!

Server 1: Web/DB
Server 2: Asterisk
Server 3: Asterisk
Lukeyyz
 
Posts: 7
Joined: Tue Nov 26, 2013 10:21 am

Re: Issues with agent_time_detail.php in HTML view

Postby geoff3dmg » Tue Nov 26, 2013 10:44 am

SVN r2042 has changes to the realtime display.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Issues with agent_time_detail.php in HTML view

Postby Lukeyyz » Tue Nov 26, 2013 11:04 am

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
Lukeyyz
 
Posts: 7
Joined: Tue Nov 26, 2013 10:21 am

Re: Issues with agent_time_detail.php in HTML view

Postby DomeDan » Wed Nov 27, 2013 7:08 am

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?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: Issues with agent_time_detail.php in HTML view

Postby Lukeyyz » Thu Nov 28, 2013 7:24 am

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.
Lukeyyz
 
Posts: 7
Joined: Tue Nov 26, 2013 10:21 am

Re: Issues with agent_time_detail.php in HTML view

Postby DomeDan » Fri Nov 29, 2013 9:04 am

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
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: Issues with agent_time_detail.php in HTML view

Postby mflorell » Fri Nov 29, 2013 10:26 am

Should be fixed in svn/trunk now.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Issues with agent_time_detail.php in HTML view

Postby Lukeyyz » Mon Dec 02, 2013 5:03 am

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!
Lukeyyz
 
Posts: 7
Joined: Tue Nov 26, 2013 10:21 am

Re: Issues with agent_time_detail.php in HTML view

Postby DomeDan » Mon Dec 02, 2013 5:58 am

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
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: Issues with agent_time_detail.php in HTML view

Postby Lukeyyz » Mon Dec 02, 2013 6:25 am

Cool, thanks Dan, much appreciated.

And thank you Matt for fixing this so quickly!
Lukeyyz
 
Posts: 7
Joined: Tue Nov 26, 2013 10:21 am


Return to Support

Who is online

Users browsing this forum: No registered users and 128 guests