http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6473 --- Comment #62 from Mason James <mtj@kohaaloha.com> --- Created attachment 13473 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13473&action=edit Bug 9066: VirtualShelves db access not Plack+MariaDB compatible The $dbh database handle in C4::VirtualShelves was declared at the module level, which means under Plack it is initialized only once, when the server first starts. With the default MySQL configuration this is not a problem, since the MySQL connection does not time out, but the MariaDB default configuration does time out, resulting in every page that calls any sub in C4::VirtualShelves failing after a certain period. This patch eliminates the module-level $dbh variable and replaces it with $dbh handles in each subroutine that requires it. To test: Confirm that Virtual Shelves functionality still works as expected. The problem is not reproducible when using Apache or Plack+MySQL, but if everything works after the patch has been applied, the changes are safe. -- You are receiving this mail because: You are watching all bug changes.