Bug 33903

Summary: HTML::Table 2.08a breaks the About page
Product: Koha Reporter: Magnus Enger <magnus>
Component: AboutAssignee: Bugs List <koha-bugs>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Magnus Enger 2023-06-06 07:24:13 UTC
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.
Comment 1 Magnus Enger 2023-06-06 07:27:01 UTC
Looks like this problem was reported ~13 years ago: https://rt.cpan.org/Public/Bug/Display.html?id=62165
Comment 2 Magnus Enger 2023-06-06 07:35:51 UTC
Ah looks like this was caused by us applying the work from bug 27510 a bit prematurely. Never mind!