Page 1 of 1

500 error for User Stats report only

PostPosted: Wed Apr 01, 2020 6:04 pm
by doberUSA
1) Version of VICIDIAL: 2.14-735a ;BUILD: 200127-1620
2) loadavg: 0.03 0.14 0.15 1/286 5414
3) 9 ECUs, 2 vCPUs, 3.4 GHz, Intel Xeon Platinum 8124M, 4 GiB memory, 2 x 50 GiB SSD Storage Capacity
4) Codecs used: Viciphone web phone
5) VOIP
6) OS: Linux version 4.4.155-68-default

Hello,

For whatever reason the only report that does not work is user stats. Throws an instant 500 error.
Increased memory in php.ini just in case.
Checked permissions on file and folder. All are as should be.

Any idea why this report, and only this report, would not function?

Re: 500 error for User Stats report only

PostPosted: Wed Apr 01, 2020 6:23 pm
by doberUSA
Found this in the logs:

PHP Fatal error: Allowed mem
ory size of 262144 bytes exhausted (tried to allocate 49152 bytes) in /srv/www/htdocs/agc/conf_exten_check.php on line 139, referer: domain/agc/vicidial.php

Re: 500 error for User Stats report only

PostPosted: Wed Apr 01, 2020 6:30 pm
by doberUSA
and now this one a bunch: [php5:error] [pid 1197] [client 98.117.212.62:63127] PHP Parse error: syntax error, unexpected end of file in /srv/www/htdocs/vicidial/user_stats.php on line 1789, referer: domain/vicidial/admin.php?ADD=999999

Re: 500 error for User Stats report only

PostPosted: Wed Apr 01, 2020 9:15 pm
by williamconley
get a fresh copy of the file. I suspect you edited it while trying to get it to work earlier. Or diff against the one in the trunk folder.

Re: 500 error for User Stats report only

PostPosted: Thu Apr 02, 2020 2:28 pm
by doberUSA
Thanks for that. I pulled down a new copy and just swapped it out and that fixed it. I guess next time I Won't waste hours trying to fix and will just replace. Appreciate it.

Re: 500 error for User Stats report only

PostPosted: Thu Apr 02, 2020 2:48 pm
by williamconley
That was from experience. I've broken so many things while trying to fix something else I can't even begin to count them. And you described the symptom very clearly. 8-)