Bug 29793

Summary: Commenting "listen" biblioserver in KOHA_CONF crashes about.pl
Product: Koha Reporter: Lari Taskula <lari.taskula>
Component: Searching - ZebraAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P5 - low CC: fridolin.somers
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Lari Taskula 2022-01-04 18:51:16 UTC
To replicate:
1. Comment out or delete <listen id="biblioserver">...</listen> from your Koha config file
2. Navigate to staff client /cgi-bin/koha/about.pl
3. Observe error 500
4. Check error logs, see
Can't use an undefined value as a HASH reference at C4/Context.pm line 536.

Question: If you are using ElasticSearch, is it still necessary to have Zebra related configurations in KOHA_CONF?

Bug appears after Bug 28306 commit 4605304f62228172be094393875625b1e9666bda
Comment 1 Lari Taskula 2022-01-04 18:52:37 UTC
(In reply to Lari Taskula from comment #0)
> Can't use an undefined value as a HASH reference at C4/Context.pm line 536.

The correct line as of 442fb97155285ff4063cdd6279328ebed62ea6d4 is 534 not 536.
Comment 2 Fridolin Somers 2022-01-05 08:13:52 UTC
I'd say we move this code into the eval:

    my $host = _common_config($server, 'listen')->{content};
    my $serverinfo = _common_config($server, 'serverinfo');
    my $user = $serverinfo->{user};
    my $password = $serverinfo->{password};