Bug 14755

Summary: Checking in gives error 500
Product: Koha Reporter: Joonas Kylmälä <joonas.kylmala>
Component: CirculationAssignee: Joonas Kylmälä <joonas.kylmala>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: normal    
Priority: P3 CC: gmcharlt, jonathan.druart, kyle.m.hall, veron
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14762
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15730
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 14762    
Bug Blocks:    

Description Joonas Kylmälä 2015-08-31 06:17:12 UTC
When I try to Check in an item with the top bar Check in functionality I get this error:

An error has occurred!
Error 500

    In Koha this typically means that the Koha team is working on new features
    Wait while system maintenance is being done or email the Koha administrator.
    Use top menu bar to navigate to another part of Koha.

In the koha-error log: http://paste.koha-community.org/57

Checking in from the patron's details page works fine.

I just did today a database upgrade to 3.21.00.21, so not sure if that is the problem or something else. I'm trying to figure out this and will let you know.
Comment 1 Joonas Kylmälä 2015-08-31 14:42:00 UTC
Found the problem:

This bug happens when you import biblio records from an older version of Koha and then you create an item without first manually editing the record (just clicking edit and then saving it is enough to get it working).
Comment 2 Joonas Kylmälä 2015-09-02 11:08:08 UTC
Ok. I found now a more specific reason why this bug happens:

This bug happens when the biblio record which is being processed misses some info / or the info is invalid (see bug 14768 for more info).

I suggest as a fix that we would add an alert / some info text which would tell what went wrong really. For example, "The biblio record you're trying to process is missing some info, please check the compatibility of the biblio record's data with your system."
Comment 3 Jonathan Druart 2015-09-02 11:19:32 UTC
The itemtype of the record is not defined in the itemtypes table, that's it?
Comment 4 Joonas Kylmälä 2015-09-02 11:52:46 UTC
(In reply to Jonathan Druart from comment #3)
> The itemtype of the record is not defined in the itemtypes table, that's it?

That is it. But I guess there could be some other info missing also.
Comment 5 Jonathan Druart 2015-09-14 15:12:26 UTC
So it's a configuration issue, not a bug.