Where to specify default phone region parameter?


I’m in the process of solving Nextcloud configuration warnings one by one. One of them is that I haven’t got a default phone region set for my installation. I’ve edited the config.php as described in the support doc, but when I do so, Nextcloud stops running. When I do it another way, my ‘default_phone_region’ parameter simply doesn’t work. Could someone help me pointing out what I’m doing wrong? Below my config.php.

$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'xxx',
  'datadirectory' => '/volume1/web/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'xxx',
  'dbname' => 'Nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'default_phone_region => 'be',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
  'twofactor_enforced_excluded_groups' => 
  array (
    0 => 'xxx',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'xxx',
  'mail_domain' => 'xxx',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => 'xxx',
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'maintenance' => false,

Thanks in advance!


1 Like

Could you post what you added to the config? Sounds like a syntax error if the nextcloud stops working…

Edit: Sorry, now I saw it. You are missing an ’ after default_phone_region

Thanks for your reply @swindhab!

I had deleted the ’ because otherwise Nextcloud just stops working and I get an 404 error. By deleting the ’ the statement isn’t compliant/taken into account and thus Nextcloud keeps working.

'default_phone_region => ‘be’, is the only thing I’ve added to the original config.php.

Did you try capital letters?
‘default_phone_region’ => ‘BE’,

And make sure it’s ’ not ’ (like pressing shift and #)

Otherwise: Is there any error in nextcloud or webserver logs?

I was indeed using the wrong '. Solved, thanks! :smiley:

You forgot the " ’ " after default_phone_region