Adding "force_language" => "en", to config/config.php ( as it says on the manual) breaks nextcloud

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 21.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.41
PHP version (eg, 7.4): 7.4.3

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. add ‘force_language’ => ‘en’, to config/config.php
  2. save the document and then visit the site
  3. get an internal server error

The output of your Nextcloud log in Admin > Logging:

Warning	no app in context	Login failed:  (Remote IP: )		2021-06-21T11:18:59-0300
Warning	no app in context	Login failed: wadmin (Remote IP)		2021-06-18T19:56:40-0300
Warning	appstoreFetcher	Could not connect to appstore: cURL error 28: Operation timed out after 60001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://apps.nextcloud.com/api/v1/apps.json		2021-06-18T18:21:03-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one lower and one upper case character.		2021-06-18T17:52:48-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one lower and one upper case character.		2021-06-18T17:52:43-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one special character.		2021-06-18T17:52:10-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one lower and one upper case character.		2021-06-18T17:51:57-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one numeric character		2021-06-18T17:50:41-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one numeric character		2021-06-18T17:50:31-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one numeric character		2021-06-18T17:50:23-0300
Error	ocs_api	Swift_TransportException: Expected response code 354 but got code "503", with message "503-All RCPT commands were rejected with this error: 503-The mail server could not deliver mail to <REDACTED>. 503-The account or domain may not exist, they may be blacklisted, or missing 503-the proper dns entries. 503 Valid RCPT command must precede DATA "		2021-06-18T17:49:28-0300
Warning	core	Login failed: '' (Remote IP: '')		2021-06-18T17:30:28-0300
Fatal	webdav	Sabre\VObject\ParseException: This parser only supports VCARD and VCALENDAR files		2021-06-18T16:45:07-0300
Error	PHP	Error: Undefined index: extension at /var/www/nextcloud/apps/files_versions/lib/Storage.php#465		2021-06-18T16:41:44-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one special character.		2021-06-18T16:37:27-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one special character.		2021-06-18T16:37:20-0300
Error	index	OCP\Files\NotFoundException: File does not exist		2021-06-17T22:24:58-0300
Error	PHP	Error: file_get_contents(/mnt/ncdata/appdata_ocuk8kamyi6r/css/icons/icons-list.template): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#274		2021-06-17T22:24:58-0300
Warning	no app in context	Login failed: usuario6 (Remote IP: )		2021-06-17T17:01:28-0300
Warning	no app in context	Login failed: wadmin (Remote IP: )		2021-06-17T17:00:59-0300
Error	index	OCP\Files\NotFoundException: File does not exist		2021-06-17T15:10:32-0300
Error	PHP	Error: file_get_contents(/mnt/ncdata/appdata_ocuk8kamyi6r/css/icons/icons-list.template): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#274		2021-06-17T15:10:32-0300
Warning	ocs_api	OC\HintException: Password needs to contain at least one lower and one upper case character.		2021-06-17T12:33:58-0300
Fatal	webdav	Sabre\VObject\ParseException: This parser only supports VCARD and VCALENDAR files		2021-06-17T12:28:39-0300
Error	PHP	TypeError: Argument 3 passed to OCA\UserStatus\Controller\UserStatusController::__construct() must be of the type string, null given at /var/www/nextcloud/apps/user_status/lib/Controller/UserStatusController.php#62		2021-06-17T11:25:28-0300
Error	index	OCP\Files\NotFoundException: File does not exist		2021-06-17T11:22:46-0300
Error	PHP	Error: file_get_contents(/mnt/ncdata/appdata_ocuk8kamyi6r/css/core/9df6-5d0d-css-variables.css.gzip): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#274		2021-06-17T11:22:46-0300
Warning	no app in context	Login failed: ncadmin (Remote IP: )		2021-06-17T11:07:46-0300
Fatal	webdav	Sabre\VObject\ParseException: This parser only supports VCARD and VCALENDAR files		2021-06-17T09:29:09-0300
Error	PHP	Error: Undefined index: isTemplate at /var/www/nextcloud/apps/onlyoffice/templates/editor.php#36		2021-06-16T22:59:32-0300
Error	PHP	Error: Trying to access array offset on value of type int at /var/www/nextcloud/lib/private/Files/Node/Node.php#328		2021-06-16T16:46:51-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 5242880 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1032192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-16T12:46:59-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 5242880 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1318912 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-16T12:46:59-0300
Fatal	webdav	Sabre\VObject\ParseException: This parser only supports VCARD and VCALENDAR files		2021-06-16T12:01:21-0300
Error	index	OCP\Files\NotPermittedException: Could not create folder		2021-06-16T00:40:06-0300
Error	index	OCP\Files\NotPermittedException: Could not create folder		2021-06-16T00:40:06-0300
Error	index	OCP\Files\NotPermittedException: Could not create folder		2021-06-16T00:40:06-0300
Error	PHP	Error: Undefined index: isTemplate at /var/www/nextcloud/apps/onlyoffice/templates/editor.php#36		2021-06-15T17:58:50-0300
Error	PHP	Error: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at /var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php#94		2021-06-15T14:44:53-0300
Error	PHP	Error: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at /var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php#94		2021-06-15T14:43:35-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 9822208 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:36:24-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 6299648 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:35:32-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 458752 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 319488 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 679936 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 319488 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 884736 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 270336 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 368640 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 204800 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 573440 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1081344 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:41-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1220608 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:12-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1187840 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:12-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1138688 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:12-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 770048 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:33:12-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 4554752 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:32:25-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 10248192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:32:25-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 5988352 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:32:25-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 9682944 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:32:25-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 647168 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:21:34-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2580480 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:21:34-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1687552 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:21:34-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 778240 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:21:34-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1949696 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:21:34-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 794624 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:21:34-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2088960 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 3825664 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1204224 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 3022848 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2088960 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2826240 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 4939776 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1400832 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 4710400 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 10635049 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 3006464 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T14:15:55-0300
Warning	core	Login failed: '' (Remote IP: '')		2021-06-15T13:41:41-0300
Warning	core	Login failed: '' (Remote IP: '')		2021-06-15T13:41:30-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 65492945 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 12926976 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T12:54:14-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 65492945 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 18759680 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T12:53:25-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 65492945 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 29802496 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T12:52:20-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 65492945 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 34873344 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-15T12:50:21-0300
Fatal	ocs_api	Failed addUser attempt: User already exists.		2021-06-15T09:19:34-0300
Fatal	ocs_api	Failed addUser attempt: User already exists.		2021-06-15T09:19:33-0300
Fatal	ocs_api	Failed addUser attempt: User already exists.		2021-06-15T09:19:30-0300
Fatal	ocs_api	Failed addUser attempt: User already exists.		2021-06-15T09:19:26-0300
Warning	user_status	Lazy initial state provider for status took 2.32 seconds.		2021-06-15T09:15:49-0300
Error	index	Exception: Argument 1 passed to OCA\UserStatus\Controller\HeartbeatController::heartbeat() must be of the type string, null given, called in /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 218		2021-06-14T23:05:04-0300
Warning	user_status	Lazy initial state provider for status took 1.59 seconds.		2021-06-14T23:05:04-0300
Error	settings	Exception: App "documentserver_community" cannot be installed because appinfo file cannot be read.		2021-06-14T23:05:01-0300
Error	settings	GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 129998 milliseconds with 319733760 out of 394596631 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://github-releases.githubusercontent.com/205429728/b84ecd00-7087-11eb-894d-b3966e396c01?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210615%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210615T015202Z&X-Amz-Expires=300&X-Amz-Signature=62b7e4ed0d4fd4903d0a67042fc5ccd84802b407605ba0d04deb6a807cb4b0c8&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=205429728&response-content-disposition=attachment%3B%20filename%3Ddocumentserver_community.tar.gz&response-content-type=application%2Foctet-stream		2021-06-14T22:55:28-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 104857600 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 35004416 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-14T20:02:36-0300
Error	no app in context	Sabre\DAV\Exception\BadRequest: Expected filesize of 104857600 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 98394112 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.		2021-06-14T19:59:42-0300
Error	index	OCP\Files\NotPermittedException: Could not create folder		2021-06-14T19:01:25-0300

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '',
    2 => '',
    3 => '',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '21.0.2.1',
  'overwrite.cli.url' => 'https:///',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'instanceid' => '',
  'upgrade.disable-web' => true,
  'log_type' => 'file',
  'logfile' => '',
  'loglevel' => '2',
  'log.condition' => 
  array (
    'apps' => 
    array (
      0 => 'admin_audit',
    ),
  ),
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '1800',
  'log_rotate_size' => '10485760',
  'trashbin_retention_obligation' => 'auto, 60',
  'versions_retention_obligation' => 'auto, 180',
  'activity_expire_days' => '120',
  'simpleSignUpLink.shown' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => '',
  ),
  'default_phone_region' => 'es',
  'logtimezone' => '',
  'htaccess.RewriteBase' => '/',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    11 => 'OC\\Preview\\PNG',
    12 => 'OC\\Preview\\JPEG',
    13 => 'OC\\Preview\\GIF',
    14 => 'OC\\Preview\\BMP',
    15 => 'OC\\Preview\\MarkDown',
    16 => 'OC\\Preview\\MP3',
    17 => 'OC\\Preview\\TXT',
    18 => 'OC\\Preview\\Movie',
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'maintenance' => false,
  'mail_sendmailmode' => '',
  'mail_smtphost' => '',
  'mail_domain' => '',
  'mail_from_address' => '',
  'mail_smtpauthtype' => '',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '
  'mail_smtpsecure' => '',
);
'force_language' => 'en',

The output of your Apache/nginx/system log in /var/log/____:

[Mon Jun 21 00:00:02.201663 2021] [mpm_event:notice] [pid 838:tid 140547262606400] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Mon Jun 21 00:00:02.201707 2021] [core:notice] [pid 838:tid 140547262606400] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jun 21 02:44:04.888131 2021] [access_compat:error] [pid 38041:tid 140546916091648] [client ] AH01797: client denied by server configuration: /var/www/nextcloud/, referer: http:// /
[Mon Jun 21 02:44:04.888458 2021] [access_compat:error] [pid 38041:tid 140546916091648] [client c32843] AH01797: client denied by server configuration: /var/www/nextcloud/index.php, referer: http:// /
[Mon Jun 21 08:32:53.398656 2021] [access_compat:error] [pid 38041:tid 140546932877056] [client  :47848] AH01797: client denied by server configuration: /var/www/nextcloud/
[Mon Jun 21 08:32:53.398936 2021] [access_compat:error] [pid 38041:tid 140546932877056] [client  :47848] AH01797: client denied by server configuration: /var/www/nextcloud/index.php
[Mon Jun 21 10:25:39.520446 2021] [access_compat:error] [pid 38042:tid 140545582147328] [client  :48100] AH01797: client denied by server configuration: /var/www/nextcloud/, referer:  
[Mon Jun 21 10:25:39.520667 2021] [access_compat:error] [pid 38042:tid 140545582147328] [client  :48100] AH01797: client denied by server configuration: /var/www/nextcloud/index.php, referer:  
[Mon Jun 21 10:46:55.638231 2021] [access_compat:error] [pid 38041:tid 140546907698944] [client  :38074] AH01797: client denied by server configuration: /var/www/nextcloud/
[Mon Jun 21 10:46:55.638439 2021] [access_compat:error] [pid 38041:tid 140546907698944] [client  :38074] AH01797: client denied by server configuration: /var/www/nextcloud/index.php
[Mon Jun 21 11:16:40.563678 2021] [access_compat:error] [pid 38041:tid 140546538456832] [client  :52691] AH01797: client denied by server configuration: /var/www/nextcloud/.env
[Mon Jun 21 11:16:40.563899 2021] [access_compat:error] [pid 38041:tid 140546538456832] [client  :52691] AH01797: client denied by server configuration: /var/www/nextcloud/index.php
[Mon Jun 21 11:17:46.151806 2021] [proxy_fcgi:error] [pid 38042:tid 140546958055168] [client ] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /var/www/nextcloud/config/config.php on line 84'
[Mon Jun 21 11:17:46.638799 2021] [proxy_fcgi:error] [pid 38042:tid 140546958055168] [client 9] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /var/www/nextcloud/config/config.php on line 84'
[Mon Jun 21 11:23:49.416853 2021] [access_compat:error] [pid 38042:tid 140546907698944] [client 2] AH01797: client denied by server configuration: /var/www/nextcloud/images
[Mon Jun 21 11:23:49.417280 2021] [access_compat:error] [pid 38042:tid 140546907698944] [client 2] AH01797: client denied by server configuration: /var/www/nextcloud/index.php

Hi @Robert2

You should place the line before the );

Like this…

  'mail_smtpsecure' => '',
  'force_language' => 'en',
);
1 Like

oops that was easy, thanks!!!

1 Like