Bug 33760 - Error 500 showing with self-registration form due to mandatory and optional fields
Summary: Error 500 showing with self-registration form due to mandatory and optional f...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: 22.11
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-18 09:38 UTC by R Bradshaw
Modified: 2023-06-09 12:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R Bradshaw 2023-05-18 09:38:00 UTC
We have been having a lot of difficulty with our self-registration form on the OPAC. We set up some fields as mandatory but this triggered an error 500 message.

On our self-registration form we have the employment details mandatory: https://elms.koha-ptfs.co.uk/cgi-bin/koha/opac-memberentry.pl (we have had to make them optional for the time being due to the error showing). 

Whilst these fields were mandatory and new users completed them an error 500 would trigger when the form was saved. However, the user record would still be made (this led to many new users creating multiple records as they thought it had not saved the first time).

The user record, however, would not contain the completed employment details or the consent (yes/no) answer for whether users would like to sign up to the Knowledge Share or Open Athens. 

This appears to have been because the mandatory fields in the staff interface user record form were not being shown on the OPAC self-registration form. This has meant that the fields staff must complete on the staff interface have had to be made optional so they 
1. don't show on the self-registration form and 
2. don't create an error 500 message from showing.

Is it possible for the bug to be looked into please?
Comment 1 Katrin Fischer 2023-06-09 12:33:18 UTC
Could you please add step by step instructions on how to set up the system to reproduce your error? There are several preferences at play for configuring the self registration form.