Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#845 Webmin module broken in new Webmin

open
nobody
5
2013-03-27
2011-02-05
Chris Gordon
No

Since updating Webmin to 1.53, the Add New Config File screen layout is totally messed up and unusable.

Discussion

  • I have the same problem. Basically looks like its in a loop when generating the panel. Results in multiple forms within themselves.

     
  • Leon
    Leon
    2011-02-21

    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;
    }

     
  • meyerg
    meyerg
    2011-12-02

    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?

     
  • plucked
    plucked
    2012-02-03

    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
    Attachments