[Koha-bugs] [Bug 26163] Add plugin directories to PERL5LIB

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 19 17:19:48 CEST 2020


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Failed QA                   |Needs Signoff

--- Comment #14 from Kyle M Hall <kyle at bywatersolutions.com> ---
This is actually due to the plugin design being bad. Can you try again using
the curbside pickup plugin
(https://github.com/bywatersolutions/koha-plugin-curbside-pickup)? Basically,
to make this work, the plugin needs to 'require' libraries in the lib directory
using of 'use'ing them, as the libs won't be available until the plugin is
installed and plack is restarted.

(In reply to David Cook from comment #13)
> Failing QA.
> 
> The plugin doesn't show at
> http://localhost:8081/cgi-bin/koha/plugins/plugins-home.pl
> 
> I also get the following in /var/log/koha/kohadev/plack-error.log:
> 
> Can't locate TestModule.pm in @INC (you may need to install the TestModule
> module) (@INC contains: /kohadevbox/koha /kohadevbox/koha/installer
> /kohadevbox/koha/lib/installer /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/loca
> l/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24
> /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base
> /var/lib/koha/kohadev/plugins) at /var/lib/ko
> ha/kohadev/plugins/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm line 27.
> Compilation failed in require at /usr/share/perl/5.24/Module/Load.pm line 77.
> Can't locate Koha/Plugin/Com/ByWaterSolutions/KitchenSink in @INC (@INC
> contains: /kohadevbox/koha /kohadevbox/koha/installer
> /kohadevbox/koha/lib/installer /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24
> .1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24
> /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base
> /var/lib/koha/kohadev/plugins) at /usr/share/perl/5.24/Module/
> Load.pm line 77.
> Kitchen Sink test module was loaded! at
> /var/lib/koha/kohadev/plugins/Koha/Plugin/Com/ByWaterSolutions/KitchenSink/
> lib/TestModule.pm line 4.

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


More information about the Koha-bugs mailing list