[Bug 32075] New: Staff mainpage crashed on Can't use an undefined value as a HASH reference
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32075 Bug ID: 32075 Summary: Staff mainpage crashed on Can't use an undefined value as a HASH reference Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Staff Client Assignee: koha-bugs@lists.koha-community.org Reporter: m.de.rooy@rijksmuseum.nl QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com Found under 21.11 Can't use an undefined value as a HASH reference at /usr/share/koha/mainpage.pl line 87 Log shows: [02/Nov/2022:08:36:51 +0100] "POST /intranet/mainpage.pl HTTP/1.1" 500 41624 Line 87: my $local_pendingsuggestions_count = $pendingsuggestions->search({ 'me.branchcode' => C4::Context->userenv()->{'branch'} })->count(); Note: In master this is line 88. Apparently there is no user context. So no branch key. But when you get here, you came thru Auth.pm. So we should expect one? Could not find a way to reproduce this one yet. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32075 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |32124 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32124 [Bug 32124] [OMNIBUS] Problems with C4::Context->userenv -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32075 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=31908 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32075 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- *** This bug has been marked as a duplicate of bug 31908 *** -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org