Bug 38774

Summary: Error when accessing Libraries in Koha Administrator Interface
Product: Koha Reporter: Nadeem Sohail <nadeemsohail4u>
Component: AccessibilityAssignee: Bugs List <koha-bugs>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: martin.renvoize, matt.blenkinsop, oleonard
Version: 24.11   
Hardware: All   
OS: All   
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 Nadeem Sohail 2024-12-23 12:41:59 UTC
Description: I am experiencing an issue when trying to open the Libraries section in the Koha administrator interface. Specifically, when I click on the Libraries option in the Administrator menu and then attempt to access the link:

http://localhost:8001/cgi-bin/koha/admin/branches.pl

I encounter the following error message:

Error: "Something went wrong when loading the table.
500: Internal Server Error."

This issue occurs every time I try to load the Libraries page. I have tried reloading the page and restarting the Koha service, but the error persists. The problem seems to be related to the table loading process within the branches.pl script.

Steps to Reproduce:

    Log into Koha administrator interface.
    Click on the Libraries option in the Administrator menu.
    Attempt to access the Branches page via the link: http://localhost:8001/cgi-bin/koha/admin/branches.pl
    The error appears: "Something went wrong when loading the table. 500: Internal Server Error."

Expected Result: The page should load correctly, displaying the list of libraries (branches).

Actual Result: The page fails to load and returns a "500: Internal Server Error" message.
Comment 1 Katrin Fischer 2024-12-23 12:44:34 UTC
Hi Nadeem, as this is more of a support request, please post to our mailing list or ask in chat (https://chat.koha-community.org). 

First thing you'll probably be asked is to check your logs. You can do that with tail -f /var/log/koha/name-of-your-instance/*.log

Then access the libraries page to provoke the error and check what is printed.