Koha 20.11 has as default "AddressFormat" systempreference "US". If you want to create a new user, you get the error "Template process failed: file error - member-main-address-style-US: not found at /usr/share/koha/lib/C4/Templates.pm line 122" because the system expects "us", not "US".
Changing the systempreference solves the problem.
Which exact version of 20.11? It works for me on the latest (20.11.03).
Right, scratch the last comment.
How did you end up with "US" instead of "us"?
It looks ok in the installer data (installer/data/mysql/mandatory/sysprefs.sql):
13 ('AddressFormat','us','us|de|fr','Choose format to display postal addresses', 'Choice'),
I had this problem updating 19.11 to 20.11.03.
My sysprefs.sql is ok. I'm closing this bug.
The "US" in AddressFormat is in installer/data/mysql/localization/es-ES/custom.sql
Created attachment 117527 [details] [review]
Bug 27822: Fix default value for AddressFormat (es-ES)
It must be "us" not "US" otherwise you get
Template process failed: file error - member-main-address-style-US: not found at /usr/share/koha/lib/C4/Templates.pm line 122" because the system expects "us", not "US".
A workaround is to, using the UI, save it to another value than "us", then back to "us". It should be set to "us" in DB.
Pushed to master for 21.05, thanks to everybody involved!
Pushed to 20.11.x for 20.11.04
Missing dependency, not backported to 20.05