[Koha-bugs] [Bug 16520] Per-virtualhost SetEnvs don't work with Plack

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 9 09:53:29 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16520

Magnus Enger <magnus at libriotech.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |magnus at libriotech.no

--- Comment #35 from Magnus Enger <magnus at libriotech.no> ---
Reading this bug, I thought I had to do thos step in order to be able to set
per-OPAC variables in my Apache config: 

Add the following line to your plack.psgi (near the bottom, just above "mount
..."): enable "+Koha::Middleware::Plack";

But there is no such thing as Koha::Middleware::Plack, so adding the line made
this error show up in the Plack error log: 

Error while loading /etc/koha/sites/x/plack.psgi: Can't locate
Koha/Middleware/Plack.pm in @INC (you may need to install the
Koha::Middleware::Plack module) (@INC contains: /usr/share/koha/lib
/usr/share/koha/installer /usr/share/koha/lib/installer /etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2
/usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20
/usr/local/lib/site_perl .) at /usr/share/perl5/Plack/Util.pm line 23, <DATA>
line 309.

Turns out Koha::Middleware::Plack is not needed, all you need is already in the
out-of-the-box .psgi file. Not sure why. Maybe Koha::Middleware::Plack was 
just a typo for Koha::Middleware::SetEnv all along? 

http://git.koha-community.org/gitweb/?p=koha.git;a=commit;h=1e6df24d6cbf44c865805712e6a15ecc601273aa

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list