Project

General

Profile

Actions

"Adding default phone region to Nextcloud config file for validating phone numbers in profile settings"

Your installation has no default phone region set. This is required to validate phone numbers in the profile settings without a country code. To allow numbers without a country code, please add "default_phone_region" with the respective ISO 3166-1 code ↗ of the region to your config file.

This message indicates that your Nextcloud installation is missing a default phone region. This is required to validate phone numbers in the profile settings without a country code.

To fix this issue, you need to add the "default_phone_region" parameter to your Nextcloud config file and set it to the appropriate ISO 3166-1 code for your region. Here are the steps to follow:

Open your Nextcloud config file (config/config.php) in a text editor.

Add the following line to the end of the file:

'default_phone_region' => 'XX',

Replace "XX" with the appropriate ISO 3166-1 code for your region (for example, "US" for the United States or "GB" for the United Kingdom).

Save the file and close it.

Clear your browser cache and refresh the Nextcloud page to see the changes take effect.

After completing these steps, the error message should disappear and your users will be able to enter phone numbers without a country code in their profile settings.

This is just an examples, of where you can add it,

  'mail_smtpsecure' => 'ssl',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'memcache.local' => '\OC\Memcache\Memcached',
  'memcached_servers' => array(array('localhost', 11211)),
  'app_install_overwrite' => 
  array (
    0 => 'hancomoffice',
    1 => 'googledocsredirect',
  ),
  'default_phone_region' => 'US',
);

or this

'loglevel' => 2,
'default_phone_region' => 'US',
'memcache.local' => '\OC\Memcache\Memcached',
'memcached_servers' => array(array('localhost', 11211)),
'app_install_overwrite' => 
array (
    0 => 'hancomoffice',
    1 => 'googledocsredirect',
),

Updated by Gareth Eaton 11 months ago · 3 revisions