@@ -, +, @@ You will see quite some occurrences of: DBD::mysql::st execute failed: Table 'koha_master.systempreferences' doesn't exist [for Statement "SELECT `me`.`variable`, `me`.`value`, `me`.`options`, `me`.`explanation`, `me`.`type` FROM `systempreferences` `me` WHERE ( `me`.`variable` = ? )" with ParamValues: 0='casauthentication'] at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1832. --- C4/Serials.pm | 2 +- Koha/Virtualshelf.pm | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) --- a/C4/Serials.pm +++ a/C4/Serials.pm @@ -20,7 +20,6 @@ package C4::Serials; use Modern::Perl; -use C4::Auth qw(haspermission); use C4::Context; use DateTime; use Date::Calc qw(:all); @@ -2690,6 +2689,7 @@ sub _can_do_on_subscription { my $flags = C4::Context->userenv->{flags}; $userid ||= C4::Context->userenv->{'id'}; + require C4::Auth; if ( C4::Context->preference('IndependentBranches') ) { return 1 if C4::Context->IsSuperLibrarian() --- a/Koha/Virtualshelf.pm +++ a/Koha/Virtualshelf.pm @@ -19,8 +19,6 @@ use Modern::Perl; use Carp; -use C4::Auth; - use Koha::Patrons; use Koha::Database; use Koha::DateUtils qw( dt_from_string ); @@ -243,6 +241,7 @@ sub can_be_deleted { my $patron = Koha::Patrons->find( $borrowernumber ); + require C4::Auth; return 1 if $self->category == $PUBLIC and C4::Auth::haspermission( $patron->userid, { lists => 'delete_public_lists' } ); return 0; --