Bug 33903 - HTML::Table 2.08a breaks the About page
Summary: HTML::Table 2.08a breaks the About page
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: About (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-06 07:24 UTC by Magnus Enger
Modified: 2024-07-04 20:37 UTC (History)
0 users

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!