[Koha-bugs] [Bug 33903] New: HTML::Table 2.08a breaks the About page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 6 09:24:13 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33903

            Bug ID: 33903
           Summary: HTML::Table 2.08a breaks the About page
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: About
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: magnus at libriotech.no
        QA Contact: testopia at bugs.koha-community.org

Symptoms: 

- The "About" page gives a 500 Internal Server Error
- plack-error.log shows: "Invalid version format (non-numeric data) at
/usr/share/koha/lib/C4/Installer/PerlModules.pm line 83, <DATA> line 755."

This is on Ubuntu 20.04.5 and Perl 5.30.0. 

/usr/share/koha/lib/C4/Installer/PerlModules.pm line 83 looks like this:

    my $pkg_version = $module->can("VERSION") ? $module->VERSION : 0;

After some digging it looks like HTML::Table version 2.08a is causing this.
Test script:

    #!/usr/bin/perl

    use Modern::Perl;
    use Data::Dumper;

    my $module = "HTML::Table";
    eval "require $module";

    say Dumper $module->can("VERSION");
    say $module->VERSION;

    say "OK";

Output: 

    $VAR1 = sub { "DUMMY" };
    Invalid version format (non-numeric data) at test_version.pl line 10.

Not sure how to work around this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list