I get the following error when I try to do a search on the OPAC without logging in: Software error: Can't use an undefined value as a HASH reference at /home/jcamins/kohaclone/opac/opac-search.pl line 719. For help, please send mail to the webmaster (webmaster@koha), giving this error message and the time and date of the error. This is caused by commit 4def1cb4 (bug 7740). The solution is to wrap the C4::Context->userenv bit in an if statement. Since we are so late in the release cycle, and reverting is easy, I will plan to revert 7740 on or about April 5 if this bug is not adopted by then.
*ping* Kyle
Hmm yep this is a massive blocker, working on the fix now, otherwise bug 7740 is going to be reverted
Created attachment 17229 [details] [review] Bug 9980 : Fix for anonymous searches To test Search in the OPAC both logged and logged out
Created attachment 17250 [details] [review] Bug 9980 : Fix for anonymous searches To test Search in the OPAC both logged and logged out Signed-off-by: Magnus Enger <magnus@enger.priv.no> When I turn off XSLT for the OPAC I can recreate the problem. After applying the patch things work as expected for all combinations of: - Search results and detail view - Logged in and not logged in - XSLT and non-XSLT view
Created attachment 17251 [details] [review] Bug 9980 : [SIGNED-OFF] Fix for anonymous searches To test Search in the OPAC both logged and logged out Signed-off-by: Magnus Enger <magnus@enger.priv.no> When I turn off XSLT for the OPAC I can recreate the problem. After applying the patch things work as expected for all combinations of: - Search results and detail view - Logged in and not logged in - XSLT and non-XSLT view
Created attachment 17252 [details] [review] [PASSED QA] Bug 9980: Fix for anonymous searches To test Search in the OPAC both logged and logged out Signed-off-by: Magnus Enger <magnus@enger.priv.no> When I turn off XSLT for the OPAC I can recreate the problem. After applying the patch things work as expected for all combinations of: - Search results and detail view - Logged in and not logged in - XSLT and non-XSLT view Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes all tests, QA script and test plan.
This patch has been pushed to master and 3.12.x.