I had the same problem...
Solved by adding a return statement in sub hblink in /usr/libexec/webmin/awstats/awstats-lib.pl
original:
sub hblink
{
my $t=shift;
my $url=shift;
print "$t";
}
modified:
sub hblink
{
my $t=shift;
my $url=shift;
print "$t";
return;
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same problem. Basically looks like its in a loop when generating the panel. Results in multiple forms within themselves.
I had the same problem...
Solved by adding a return statement in sub hblink in /usr/libexec/webmin/awstats/awstats-lib.pl
original:
sub hblink
{
my $t=shift;
my $url=shift;
print "$t";
}
modified:
sub hblink
{
my $t=shift;
my $url=shift;
print "$t";
return;
}
I have the same issue, I tried the fix suggested, but there is not a "sub hblink" within the code. Is there something else that I can try?
This fix from @leonleon33 worked well. In my case the file was
/usr/share/webmin/awstats/awstats-lib.pl
Any chance this fix will get incorporated soon?
Reading the code the problem was that it tries to print to time the help link.
The return must be like this in file awstats-lib.pl (line 25):
sub hblink
{
my $t=$[0];
my $url=$[1];
return "<a href="javascript:neww('$url');">$t</a>";
}
In that way, the function return the value instead of printing it, giving the value to the print functions on edit_config.cgi.
Last edit: Juan Carlos Arevalo 2013-03-27