#878 Viewing Webmin with IE 5.50

1.040
closed
nobody
None
5
2002-12-15
2002-12-14
Anonymous
No

There is a bug viewing Webmin 1.040 with IE 5.50. It
says:

Line: 9
Char: 74
Error: Not final character sequence constant
Code: 0
URL : http://...

Any Ideas ?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    On IE 6.0 it also reports

    Line 7
    Error:Unterminated string constant

    If I debug it is yelling about

    defaultStatus="admin logged into Webmin 1.040 on dedicated
    (Redhat Linux 7.2);

    Hope this helps

     
  • Thomas Schulte

    Thomas Schulte - 2002-12-14

    Logged In: YES
    user_id=669171

    I think I've found this error (the comment before was me, too):

    In the file "web-lib.pl" there is this function (line 1381):

    if (!$get_system_hostname) {
    chop($get_system_hostname = `hostname 2>/dev/null`);
    # if ($?) {
    # use Sys::Hostname;
    # $get_system_hostname = eval "hostname()";
    # if ($@ || !$get_system_hostname) {
    # $get_system_hostname = "UNKNOWN";
    # }
    # }
    # elsif ($get_system_hostname !~ /\./ &&
    # $gconfig{'os_type'} =~ /linux$/) {
    # # Try with -f flag to get fully qualified name
    # local $flag = `hostname -f 2>/dev/null`;
    # if ($?) {
    # # -f not supported! We have probably set the
    hostname
    # # to just '-f'. Fix the problem (if we are root)
    # if ($< == 0) {
    # system
    ("hostname '$get_system_hostname' >/dev/null 2>&1");
    # }
    # }
    # else {
    # $get_system_hostname = $flag;
    # }
    # }
    }
    return $get_system_hostname;
    }

    I have commented out the most as you can see. With this,
    the error is gone. I don't understand the most of it, so I can't
    analyse this more specially, but I think that this could help
    others!

     
  • Nobody/Anonymous

    Logged In: NO

    Thanks , that helps :)

    I added the -f flag to the entry below, so the full name is
    displayed ...

    if (!$get_system_hostname) {
    chop($get_system_hostname = `hostname -f
    2>/dev/null`);

     
  • Nobody/Anonymous

    Logged In: NO

    I got the same error on my system ( SuSE 8.0, Webmin
    1.040, IE 6.0

    In Webmin 1.030 there was no error !!!

    Regards
    Rene

    brainkiller2000@gmx.at

     
  • Nobody/Anonymous

    Logged In: NO

    I added the -h flag to the entry below, so the full name is
    displayed ...

    if (!$get_system_hostname) {
    chop($get_system_hostname = `hostname -h
    2>/dev/null`);

    Then i got no error !!!

    Regards
    Rene

     
  • Jamie Cameron

    Jamie Cameron - 2002-12-15
    • status: open --> closed
     
  • Jamie Cameron

    Jamie Cameron - 2002-12-15

    Logged In: YES
    user_id=129364

    The solution to this is either to fix the code as documented
    below, or change
    your system's hostname to something with a . in it (like
    foo.domain.com instead of just foo).

     
  • Jamie Cameron

    Jamie Cameron - 2002-12-16

    Logged In: YES
    user_id=129364

    Actually, there is a better solution - upgrade to 1.050,
    which will be
    released today.

     

Log in to post a comment.