Page 1 of 1

Cannot to export Inbound daily report after migration

PostPosted: Mon Feb 23, 2015 6:49 pm
by saulortega
Hello.

I recently migrated Vicidial to a new server with Vicibox 6.0.2 (without any update).

Now when I want to download a inbound daily report of a date before the migration, it appears instead download the CSV:

Image


The dates after migration can be downloaded. Before not. The online report for dates before migration is shown fine, the problem is only when I try download it.

Is there any way to fix it without update Vicidial?

Re: Cannot to export Inbound daily report after migration

PostPosted: Thu Feb 26, 2015 9:00 am
by mav2287
The band-aid super cheat way to do it is when you see this page do a File->Save and save it as a .csv and then just click "Back" when you are done. That is the no effort deal with the way it is way.

The RIGHT way to go and try to see what is causing this then fix it is to go in and start looking at things like the .htacess file and the file permissions. Most times I have seen things like this it is one of those two. That said updating Vicidial may solve that for you, but there are no guarantees.

Re: Cannot to export Inbound daily report after migration

PostPosted: Wed Mar 11, 2015 10:45 am
by saulortega
I just noticed that it happen only with one specific in-group.

In the source code of the page, appears it:

Code: Select all
<!-- 0+=0.00 //-->
<!-- 0+=0.00 //-->
<!-- 0+=0.00 //-->
<!-- 0+=0.00 //-->
<!-- 0+=0.00 //-->
<!-- 0+=0.00 //-->
<!-- 0+=0.00 //-->
<!-- 0+=59.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=0.00 //-->
<!-- 59+=59.00 //-->
<!-- 118+=111.00 //-->
<!-- 229+=67.00 //-->
<!-- 296+=56.00 //-->
<!-- 352+=0.00 //-->
<!-- 352+=0.00 //-->
<!-- 352+=0.00 //-->
<!-- 352+=0.00 //-->
<!-- 352+=0.00 //-->
<!-- 352+=0.00 //-->
<!-- 352+=0.00 //-->
<!-- 352+=0.00 //-->
<!-- 352+=81.00 //-->
<!-- 433+=47.00 //-->
<!-- 480+=149.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=0.00 //-->
<!-- 629+=64.00 //-->
<!-- 693+=0.00 //-->
<!-- 693+=59.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=0.00 //-->
<!-- 752+=55.00 //-->
<!-- 807+=63.00 //-->
<!-- 870+=0.00 //-->
<!-- 870+=150.00 //-->
<!-- 1020+=125.00 //-->
<!-- 1145+=104.00 //-->
<!-- 1249+=121.00 //-->
<!-- 1370+=131.00 //-->
<!-- 1501+=133.00 //-->
<!-- 1634+=124.00 //-->
<!-- 1758+=164.00 //-->
<!-- 1922+=0.00 //-->
<!-- 1922+=0.00 //-->
<!-- 1922+=79.00 //-->
<!-- 2001+=56.00 //-->
<!-- 2057+=0.00 //-->
<!-- 2057+=0.00 //-->
<!-- 2057+=0.00 //-->
<!-- 2057+=0.00 //-->
<!-- 2057+=0.00 //-->
<!-- 2057+=210.00 //-->
<!-- 2267+=225.00 //-->
<!-- 2492+=157.00 //-->
<!-- 2649+=165.00 //-->
<!-- 2814+=157.00 //-->
<!-- 2971+=94.00 //-->
<!-- 3065+=56.00 //-->
<!-- 3121+=62.00 //-->
<!-- 3183+=86.00 //-->
<!-- 3269+=60.00 //-->
<!-- 3329+=0.00 //-->
<!-- 3329+=0.00 //-->
<!-- 3329+=83.00 //-->
<!-- 3412+=0.00 //-->
<!-- 3412+=0.00 //-->
<!-- 3412+=0.00 //-->
<!-- 3412+=0.00 //-->
<!-- 3412+=0.00 //-->
<!-- 3412+=0.00 //-->
<!-- 3412+=0.00 //-->
<!-- 3412+=0.00 //-->
<!-- 3412+=104.00 //-->
<!-- 3516+=54.00 //-->
<!-- 3570+=0.00 //-->
<!-- 3570+=101.00 //-->
<!-- 3671+=100.00 //-->
<!-- 3771+=130.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
<!-- 3901+=0.00 //-->
"Inbound Daily Report","2015-03-11 10:39:36"
Selected in-groups: xxxxxxxxxxxxxxx
"Time range 1 days:","2015-02-19 00:00:00 to 2015-02-19 23:59:59"

"","TOTAL","TOTAL","TOTAL","TOTAL","TOTAL","AVG","AVG","AVG","TOTAL","TOTAL","TOTAL"
"","CALLS","CALLS","AGENTS","CALLS","ABANDON","ABANDON","ANSWER","TALK","TALK","WRAP","CALL"
"SHIFT DATE-TIME RANGE","OFFERED","ANSWERED","ANSWERED","ABANDONED","PERCENT","TIME","SPEED","TIME","TIME","TIME","TIME"
...

Re: Cannot to export Inbound daily report after migration

PostPosted: Wed Mar 11, 2015 10:58 am
by saulortega
Solution:

In AST_inbound_daily_report.php, comment this line:
Code: Select all
print "<!-- $FtotANSWERSspeed+=$qs[$i] //-->\n";

Re: Cannot to export Inbound daily report after migration

PostPosted: Wed Mar 11, 2015 11:18 am
by mflorell
Or you could upgrade to the latest svn/trunk, this bug was fixed last month.