https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44318 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 212757 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212757&action=edit Bug 44318: Koha::Util::Navigation::local_referer fails with older URI local_referer calls $uri->query_param_delete but only loads URI, not URI::QueryParam. Newer URI releases (5.30 in Debian 13) autoload URI::QueryParam on first use, but older ones (5.10 in Ubuntu 22.04) do not, so the call dies with: Can't locate object method "query_param_delete" via package "URI::_generic" This makes the 'Tests for local_referer' subtest in t/Koha/Util/Navigation.t fail on Jammy only, and would break the language switcher / login redirects there at runtime. Load URI::QueryParam explicitly. Test plan: 1. On Ubuntu 22.04 (liburi-perl 5.10), run: prove t/Koha/Util/Navigation.t 2. Without the patch: 'Tests for local_referer' dies with the error above. With the patch: all tests pass. 3. On Debian 12/13 and Ubuntu 24.04 the test passes before and after. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.