A new request with request id 13208 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is :

Title : Koha-devel Digest, Vol 194, Issue 10
Category :
Description :
Send Koha-devel mailing list submissions to
    koha-devel@lists.koha-community.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
or, via email, send a message with subject or body 'help' to
    koha-devel-request@lists.koha-community.org

You can reach the person managing the list at
    koha-devel-owner@lists.koha-community.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Koha-devel digest..."


Today's Topics:

1. Can't locate object method "output_with_http_headers" via
package "CGI" (Michael Kuhn)
2. Re: Can't locate object method "output_with_http_headers" via
package "CGI" (Jonathan Druart)
3. Re: Can't locate object method "output_with_http_headers" via
package "CGI" (Fridolin SOMERS)
4. Re: [Koha] Opening bids for KohaCon22 (Fridolin SOMERS)
5. Call for news - Newsletter January 2022 (Michael Kuhn)
6. Re: Can't locate object method "output_with_http_headers" via
package "CGI" (Michael Kuhn)


----------------------------------------------------------------------

Message: 1
Date: Wed, 12 Jan 2022 17:17:13 +0100
From: Michael Kuhn <mik@adminkuhn.ch>
To: Koha-devel <koha-devel@lists.koha-community.org>, Koha
    <koha@lists.katipo.co.nz>
Subject: [Koha-devel] Can't locate object method
    "output_with_http_headers" via package "CGI"
Message-ID: <982d4148-6daa-f646-b71e-f47d85980b84@adminkuhn.ch>
Content-Type: text/plain; charset=utf-8; format=flowed

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@adminkuhn.ch · W www.adminkuhn.ch


------------------------------

Message: 2
Date: Wed, 12 Jan 2022 17:40:53 +0100
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
To: Michael Kuhn <mik@adminkuhn.ch>
Cc: Koha-devel <koha-devel@lists.koha-community.org>, Koha
    <koha@lists.katipo.co.nz>
Subject: Re: [Koha-devel] Can't locate object method
    "output_with_http_headers" via package "CGI"
Message-ID:
    <CAJzKNY5dHy_NMDV-VvjKDKQoi21+sAwo7Fc0OEpWjz-QDOyrdw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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@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@adminkuhn.ch · W www.adminkuhn.ch
> _______________________________________________
> 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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220112/9cf61213/attachment-0001.htm>

------------------------------

Message: 3
Date: Wed, 12 Jan 2022 12:05:31 -1000
From: Fridolin SOMERS <fridolin.somers@biblibre.com>
To: koha-devel@lists.koha-community.org
Subject: Re: [Koha-devel] Can't locate object method
    "output_with_http_headers" via package "CGI"
Message-ID: <a4719a75-52e7-2fbb-2390-8e6a6aaef623@biblibre.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

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 <mik@adminkuhn.ch
> <mailto:mik@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 mik@adminkuhn.ch
> <mailto:mik@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.somers@biblibre.com>
Software and system maintainer 🦄
BibLibre, France


------------------------------

Message: 4
Date: Wed, 12 Jan 2022 12:22:15 -1000
From: Fridolin SOMERS <fridolin.somers@biblibre.com>
To: koha@lists.katipo.co.nz
Cc: koha-devel <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] [Koha] Opening bids for KohaCon22
Message-ID: <a161c244-ec25-f38a-892d-b773cd592178@biblibre.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hello dear world-wide community.

Limit date is over and unfortunately we have no proposals.
https://wiki.koha-community.org/wiki/KohaCon22_Proposals

Community agreed to extend the end date to February 28.

World-wide situation is still chaotic so an entirely online event can be
proposed.
This will not impact the next years continental rotation.
https://wiki.koha-community.org/wiki/Processes_for_KohaCons#Continent_rotation

I hope we can all be together around our common project.
Long live Koha.

Fridolin Somers, BibLibre France, actual release manager.

Le 18/11/2021 à 03:24, Katrin Fischer a écrit :
> Hello dear Koha community,
>
> another year is coming to an end. It's time to turn our attention to the
> new year that's coming up, full of possibilities!
>
> If you or your organization would like to organize KohaCon22, please
> enter all relevant information on this wiki page:
> https://wiki.koha-community.org/wiki/KohaCon22_Proposals (if you do not
> already have an account to edit the wiki, you can request one, it is
> usually pretty fast to get access).
>
> The community has agreed that KohaCon conferences must be either hybrid
> with an in-person conference streamed online, or entirely online. Apart
> from keeping the community members safe, this will also allow for
> greater accessibility, so that everyone can attend and learn from each
> other no matter their availability, ability to travel, or budget.
>
> Know that the community stands behind anyone who volunteers to organize
> and that help is always available if you're unsure how to proceed.
>
> Call for proposals will end on January 8, 2022 at 23:59 UTC. If there is
> more than one proposal, we will organize a vote, which will be announced
> on this mailing list.
>
> Best regards,
>
>
> Katrin
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

--
Fridolin SOMERS <fridolin.somers@biblibre.com>
Software and system maintainer 🦄
BibLibre, France


------------------------------

Message: 5
Date: Thu, 13 Jan 2022 09:45:31 +0100
From: Michael Kuhn <mik@adminkuhn.ch>
To: koha <koha@lists.katipo.co.nz>, koha-devel
    <koha-devel@lists.koha-community.org>
Subject: [Koha-devel] Call for news - Newsletter January 2022
Message-ID: <59c197d1-07ad-eb6e-e9b4-5dfbf22d36d3@adminkuhn.ch>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi

I'm collecting news for the January 2022 Koha Community Newsletter.
Please send anything noteworthy to:

kohanews (at) gmail (dot) com

News criteria:
* News items can be of any length.
* Images are fine.
* Anything and everything Koha.
* Submit by the 26th of the month.

Text format criteria:
* Just structured plain text, or
* HTML text to include tables or similar

For events:
* Consider adding your event to the Koha Community calendar at
https://koha-community.org/calendar/

Thank you!

Michael Kuhn
Editor, Koha Community Newsletter
--
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@adminkuhn.ch · W www.adminkuhn.ch


------------------------------

Message: 6
Date: Thu, 13 Jan 2022 11:52:21 +0100
From: Michael Kuhn <mik@adminkuhn.ch>
To: Jonathan Druart <jonathan.druart@bugs.koha-community.org>,
    fridolin.somers@biblibre.com
Cc: Koha-devel <koha-devel@lists.koha-community.org>, Koha
    <koha@lists.katipo.co.nz>
Subject: Re: [Koha-devel] Can't locate object method
    "output_with_http_headers" via package "CGI"
Message-ID: <c937663e-4acc-5bcf-a458-c40ba8870086@adminkuhn.ch>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi Jonathan and Fridolin

You wrote:

> use C4::Output qw( output_with_http_headers )
>
> will fix it.

Thank you very much, this was the solution! Now our script again works
as intended.

> 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/

Unfortunately I didn't understand very much of the information there.

> Also avoid this syntax :
> my $query = new CGI;
>
> Prefer :
> my $query = CGI->new;
>
> See Bug 25898: Prohibit indirect object notation

I have changed this line, thanks for the suggestion!

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@adminkuhn.ch · W www.adminkuhn.ch





Am 12.01.22 um 17:40 schrieb Jonathan Druart:
> 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 <mik@adminkuhn.ch
> <mailto:mik@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 mik@adminkuhn.ch
> <mailto:mik@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/>
>




------------------------------

Subject: Digest Footer

_______________________________________________
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/


------------------------------

End of Koha-devel Digest, Vol 194, Issue 10
*******************************************


NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.