Bug 30038

Summary: Check in error
Product: Koha Reporter: Paolo Berti <d.paolo.berti>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, kyle
Version: 21.05   
Hardware: All   
OS: Linux   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Paolo Berti 2022-02-07 18:20:08 UTC
I did a fresh install of Koha and uploaded biographic data and am testing the program.
I was able to check out an item but ..
when I check in the item using the right barcode I get a general error message.

In the intranet-error.log it si reported:

[Mon Feb 07 19:19:57.552543 2022] [cgi:error] [pid 7561] [client ::1:57816] AH01215: Use of uninitialized value $returnbranch in string ne at /usr/share/koha/lib/C4/Circulation.pm line 2289.: /usr/share/koha/intranet/cgi-bin/circ/returns.pl, referer: http://localhost:8080/cgi-bin/koha/mainpage.pl
[Mon Feb 07 19:19:57.560086 2022] [cgi:error] [pid 7561] [client ::1:57816] AH01215: The to parameter is mandatory: /usr/share/koha/intranet/cgi-bin/circ/returns.pl, referer: http://localhost:8080/cgi-bin/koha/mainpage.pl
[Mon Feb 07 19:19:57.621340 2022] [cgi:error] [pid 7561] [client ::1:57816] End of script output before headers: returns.pl, referer: http://localhost:8080/cgi-bin/koha/mainpage.pl

so it looks like the problem is in a uninitialized value of $returnbranch

I looked for a solution from the koha markmail forum but without result.
Comment 1 Katrin Fischer 2022-02-07 21:17:44 UTC
Hi Paolo, this sounds more like a support request/configuration issue that should go on the mailing list or IRC. Bugzilla should only be used to report bugs and enhancement requests.

For a start: check that in your item you have homebranch and holding branch set to a valid branch of your Koha instance.