Page 1 of 1

Webstats not working

Posted: Sat May 25, 2019 10:12 am
by rj2010ism
Good day.

lately iv been getting strange error messages with VestaCp.


Anyone know how to fix this error: ( Warning: HostAliases parameter is not defined )

" Last Update: No qualified records found in log (0 corrupted, 0 comments, 0 Blank, 0 dropped) "

when i open webstats its not showing any data. with the above message

Thanks

Re: Webstats not working

Posted: Sat May 25, 2019 10:45 am
by rj2010ism
For anyone who may get this error in the future here is a fix.



Open 'awstats.pl' and go to around line 1356 and change from:

my @arrayunreg = map {
if (/\(\?[-\w]*:(.*)\)/) { $1 }
} @$array;

To:

my @arrayunreg = map { UnCompileRegex($_) } @$array;

Go to around line 7811 and change from:

shift =~ /\(\?[-\w]*:(.*)\)/;

To:

shift =~ /\(\?[-^\w]*:(.*)\)/;



source credit: https://www.howtoforge.com/community/th ... ing.65735/

Regards..