Loading documents in a mobile browser fails

system information

Nextcloud version (eg, 26.0.1):
Operating system and version (eg, Ubuntu 22.04): Debian 11 (5.10.0-21-amd64)
Apache or nginx version (eg, Apache 2.4.25): 2.4.56
PHP version (eg, 8.1): 8.2
Database (sqlite or MariaDB or Postgres) maria DB
Docker (compose) no
Snap no
Is this the first time you’ve seen this error? yes

The issue you are facing:

Nextcloud office loads documents just fine on my desktop computer using Firefox. However, when I try to load the same document in my phone in Firefox I get an error message, saying it failed to load. No specific error message whatsoeve. In my nextcloud log is nothing regarding that, in my CODE server is nothing regarding that and I am just clueless right as to what the problem is.

It could of course be a artificial restriction, like with onlyoffice. That would really suck, because I just installed nextcloud office so I can edit documents from a mobile browser…

The output of your Nextcloud log in Admin > Logging:

nothing that has to do with the issue

The output of your config.php file in /path/to/nextcloud**:

  GNU nano 5.4                                                                                                                                 /var/www/nextcloud/config/config.php                                                                                                                                          <?php
$CONFIG = array (
  'instanceid' => 'REDACTED',
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'REDACTED',
    2 => '',
    3 => 'REDACTED',
  'trusted_proxies' =>
  array (
    0 => '',
    1 => '',
    2 => '',
    3 => '',
    4 => '',
  'forwarded_for_headers' =>
  array (
    0 => 'HTTP_X_FORWARDED',
  'datadirectory' => '/media/array/owncloud',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'REDACTED',
  'dbpassword' => 'REDACTED',
  'logtimezone' => 'UTC',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'mail_domain' => 'REDACTED',
  'mail_from_address' => 'owncloud',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'REDACTED',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'REDACTED',
  'mail_smtppassword' => 'REDACTED',
  'loglevel' => 2,
  'debug' => false,
  'theme' => '',
  'maintenance' => false,
  'has_rebuilt_cache' => true,
  'allow_user_to_change_mail_address' => '',
  'remember_login_cookie_lifetime' => 1296000,
  'session_lifetime' => 86400,
  'mysql.utf8mb4' => true,
  'default_phone_region' => 'DE',
  'overwrite.cli.url' => 'REDACTED',
  'htaccess.RewriteBase' => '/',
  'app_install_overwrite' =>
  array (
    0 => 'news',
    1 => 'camerarawpreviews',

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

[Tue Jul 04 21:25:02.708107 2023] [core:info] [pid 3151616] [client REDACTED] AH00128: File does not exist: /var/www/nextcloud/apps/richdocuments/settings/fonts.json

errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors.

nothing that has to do with the issue

The error in the apache log sound most likely. I didn’t get the “pretty url” to work. I am running nextcloud in an apache server which is behind an nginx reverse proxy.

Hard to say without the support template. Since you just installed Collabora the most likely reason is incorrectly configuring it. Here you go:

Hi @BentiGorlich,
You are missing the required support template. Please fill this form out and edit into your post.

This will give us the technical info and logs needed to help you! Thanks.

Thanks for your reply, I edited my post and added the new information

thank you for update. default support template might be no very good for CODE issues. Please describe your config im more details - CODE built-in or separated, which technology etc…

Take a look at this guide: Nextcloud Collabora integration

You might need to focus on the client side where “F12” tools are useful - this is not easy on mobile but there are ways as well. Start checking you can visit all the URLs from your mobile. problems specific to mobile often result from the fact such devices heavily prefer IPv6 over IPv4.

my CODE is behind the same proxy as apache (running nextcloud) is. I use a docker container for it and its at a different subdomain (as in nextcloud on next.cloud and CODE on office.next.cloud)
I will have a look at the browser tools on my phone tomorrow.

I found the problem on my phone: uBlock origin… It blocked the request on my phone. I already whitelisted my domain on my PC, so thats why it worked there

1 Like