Bug 37387 - Tools>HTML customizations Error 500
Summary: Tools>HTML customizations Error 500
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: 24.05
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-17 01:00 UTC by Vivek
Modified: 2024-07-27 16:52 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Error (56.29 KB, image/png)
2024-07-17 01:00 UTC, Vivek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vivek 2024-07-17 01:00:41 UTC
Created attachment 169071 [details]
Error

Server was upgraded to 24.05.01 and it started showing Error 500 in Tools>HTML customizations option.

In the browser console it shows Internal Server Error;

GET https://matlis-intra.unitech.ac.pg/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations 500 (Internal Server Error)Understand this error
jquery-migrate-3.3.2.min_24.0501000.js:2 JQMIGRATE: Migrate is installed, version 3.3.2
chext_driver.js:500 Initialized driver at: Wed Jul 17 2024 10:34:22 GMT+1000 (Papua New Guinea Time)
chext_loader.js:66 Initialized chextloader at: 1721176462708

Any clue how to resolve it.
Comment 1 Vivek 2024-07-26 00:36:03 UTC
Running below command shows the following errors;

perl -c /usr/share/koha/intranet/cgi-bin/tools/additional-contents.pl

unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 171.
Use of uninitialized value in subroutine entry at /usr/share/perl5/Module/Find.pm line 204.
Use of uninitialized value in subroutine entry at /usr/share/perl5/Module/Find.pm line 204.
unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 171.
Use of uninitialized value $file in exists at /usr/share/koha/lib/Koha/Config.pm line 78.
Use of uninitialized value $file in hash element at /usr/share/koha/lib/Koha/Config.pm line 79.
Use of uninitialized value $file in hash element at /usr/share/koha/lib/Koha/Config.pm line 82.
Use of uninitialized value $file in exists at /usr/share/koha/lib/Koha/Config.pm line 78.
Use of uninitialized value $file in hash element at /usr/share/koha/lib/Koha/Config.pm line 82.
unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4/Context.pm line 171.
/usr/share/koha/intranet/cgi-bin/tools/additional-contents.pl syntax OK

Please advice how this issue can be resolved.
Comment 2 Katrin Fischer 2024-07-27 16:52:08 UTC
You can't see the error by running perl -c. The correct way to extract the error from the sytem logs is:
tail -f /var/log/koha/name_of_instance/*.log and then hit the page in your browser.