Bug 33740

Summary: Error 500, when editing authority TAG 000 (leader).
Product: Koha Reporter: Pablo Jones <pablo.joneslobos>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart, m.de.rooy
Version: 21.11   
Hardware: All   
OS: Linux   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Pablo Jones 2023-05-15 18:55:27 UTC
In the Authority module, when entering a new Personal Name Authority record, clicking on the field fills in the default value " nz a22 n 4500", correctly, but when trying to edit the field, the popup window says " An error has occurred!
Error 500...". In general, it does not happen with other types of Authority, "Corporate Names", "Geographical Names", "Chronological Term", etc.

Tests performed:
-Empty browser cookies (Firefox), does not improve the situation.
-In a private window, it works "better", open the editor in the pop-up window first, (Personal Authority Sheet).
-In Normal window, it loads without error, after loading default fields like 003,005,008, and open to edit field 008.
-When it opens, I can make the changes in the editor, and they are applied to the 000 field.
Comment 1 Jonathan Druart 2023-05-16 12:12:53 UTC
do you have access to the Koha logs on the server?
Comment 2 Pablo Jones 2023-05-17 17:22:38 UTC
(In reply to Jonathan Druart from comment #1)
> do you have access to the Koha logs on the server?

Hi! Joneathan, thanks for answering, yes, I already checked the log files, I can't find anything related to the error.
Comment 3 Jonathan Druart 2023-05-23 08:44:21 UTC
(In reply to Pablo Jones from comment #2)
> (In reply to Jonathan Druart from comment #1)
> > do you have access to the Koha logs on the server?
> 
> Hi! Joneathan, thanks for answering, yes, I already checked the log files, I
> can't find anything related to the error.

Run `sudo tail -f /var/log/koha/*/*` on the server then recreate the error. You should see the error appearing in the output.