[Koha] [Koha-devel] Can't locate object method "output_with_http_headers" via package "CGI"

Jonathan Druart jonathan.druart at bugs.koha-community.org
Thu Jan 13 05:40:53 NZDT 2022


use C4::Output qw( output_with_http_headers )

will fix it. See also the "Other" section of the tech release note from
21.11 (related to bug 17600)
https://koha-community.org/koha-21-11-released/

Le mer. 12 janv. 2022 à 17:17, Michael Kuhn <mik at adminkuhn.ch> a écrit :

> Hi
>
> Our library uses a non-Koha Perl script to authenticate with Divibib
> Onleihe (a digital distributor like Overdrive). The script worked with
> Koha 18.05 but after the update to Debian 11 with Perl 5.032001 und Koha
> 21.11.01 the following error appears:
>
>   Can't locate object method "output_with_http_headers" via package
> "CGI" at /usr/share/koha/opac/cgi-bin/opac/onleihe_auth.pl line 91.
>
> The script file actually contains these lines (among others):
>
>   use CGI;
>   use XML::Simple;
>   use Koha::Patrons;
>   use Koha::AuthUtils qw(hash_password);
>   use Digest::MD5 qw(md5_base64);
>   use C4::Output;
>   use C4::Context;
>   my $query = new CGI;
>   ...
>   output_with_http_headers $query, undef, $xml, 'xml';
>
> Can anyone please give me a hint how to solve this problem?
>
> Best wishes: Michael
> --
> Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
> Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
> T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : https://www.koha-community.org/
> git : https://git.koha-community.org/
> bugs : https://bugs.koha-community.org/
>


More information about the Koha mailing list