When I try to create a patron from opac. A message appears (can't call method "default-privacy" on an undefind value /usr/share/koha/lib/c4/members.pm line 753) on submitting the form after filling it.
Could you please confirm that your system preference PatronSelfRegistrationDefaultCategory is filled with a valid patron category?
Testing: If PatronSelfRegistrationDefaultCategory is empty, the link for self registration is not displayed in OPAC If PatronSelfRegistrationDefaultCategory is set to a category that does not exist, the error can be triggered. It happens as well if there is a leading space char by mistake. Example with a valid category PT: [PT] -> OK [PT ] -> OK (one or more trailing space chars) [ PT] -> Software error (Leading space char) [ ] -> Software eror (one or more space chars) Maybe we could - validate the syspref field for not having leading spaces or spaces only - give some more explanation in the syspref descriptions for PatronSelfRegistration depending on a correct value for PatronSelfRegistrationDefaultCategory - add a warning on the about page (tab system information) if PatronSelfRegistration is set and PatronSelfRegistrationDefaultCategory is wrong or does not exist - not display the self registration link if PatronSelfRegistration is set and PatronSelfRegistrationDefaultCategory is wrong or does not exist
(In reply to Marc Véron from comment #2) > - not display the self registration link if PatronSelfRegistration is set > and PatronSelfRegistrationDefaultCategory is wrong or does not exist I think this is probably the best option, as well as updating the descriptions for both system preferences. For example, update PatronSelfRegistration to say that even when set to Allow, the link will not display if PatronSelfRegistrationDefaultCategory is incorrectly set. Then update PatronSelfRegistrationDefaultCategory and give options of common patron categories.
Lowering the severity as it comes from a configuration issue.
(In reply to Aleisha Amohia from comment #3) > (In reply to Marc Véron from comment #2) > > > - not display the self registration link if PatronSelfRegistration is set > > and PatronSelfRegistrationDefaultCategory is wrong or does not exist > > I think this is probably the best option, as well as updating the > descriptions for both system preferences. For example, update > PatronSelfRegistration to say that even when set to Allow, the link will not > display if PatronSelfRegistrationDefaultCategory is incorrectly set. Then > update PatronSelfRegistrationDefaultCategory and give options of common > patron categories. This has both been implemented since :)