Hi,

Also avoid this syntax :
  my $query = new CGI;

Prefer :
  my $query = CGI->new;

See Bug 25898: Prohibit indirect object notation

Best regards,

Le 12/01/2022 à 06:40, Jonathan Druart a écrit :
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/ <https://koha-community.org/koha-21-11-released/>

Le mer. 12 janv. 2022 à 17:17, Michael Kuhn <m...@adminkuhn.ch <mailto:m...@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
    <http://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 m...@adminkuhn.ch
    <mailto:m...@adminkuhn.ch> · W www.adminkuhn.ch <http://www.adminkuhn.ch>
    _______________________________________________
    Koha-devel mailing list
    Koha-devel@lists.koha-community.org
    <mailto:Koha-devel@lists.koha-community.org>
    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
    <https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel>
    website : https://www.koha-community.org/
    <https://www.koha-community.org/>
    git : https://git.koha-community.org/ <https://git.koha-community.org/>
    bugs : https://bugs.koha-community.org/
    <https://bugs.koha-community.org/>


_______________________________________________
Koha-devel mailing list
Koha-devel@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/

--
Fridolin SOMERS <fridolin.som...@biblibre.com>
Software and system maintainer 🦄
BibLibre, France
_______________________________________________
Koha-devel mailing list
Koha-devel@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/

Reply via email to