How to fix Nextcloud Can not validate phone numbers without `default_phone_region` being set in the config file

Problem:

When running Nextcloud occ maintenance:repair you see an error message like

nextcloud_phone_error.txt
ERROR: Can not validate phone numbers without `default_phone_region` being set in the config file

Solution

Add the config option using

set_default_phone_region.sh
php occ config:system:set default_phone_region --type string --value="DE"

or, when using docker-compose:

docker_set_default_phone_region.sh
docker-compose exec -u www-data nextcloud php occ config:system:set default_phone_region --type string --value="DE"

and run maintenance:repair again.


Check out similar posts by category: Allgemein