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 <[email protected]> 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 [email protected] · W www.adminkuhn.ch > _______________________________________________ > Koha-devel mailing list > [email protected] > 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/ > _______________________________________________ Koha mailing list http://koha-community.org [email protected] Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

