Can you put the lines PHP: echo get_filename($virtual_host); echo $virtual_host; after line 95 and run Code: /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php again? What's the output?
I wonder why it doesn't display any virtual hosts... Also, why does it say that web8 is an invalid group? Did you maybe delete some groups and directories manually?