NC 13 UI Broken

Hi,

I just finished install NC13 on ubuntu and all went well. However the UI seems broken. I’ve already try to disable theming and enable it back but it does not solve the problem. I’m so new to this please advice.

Nextcloud version 13.0.12.1
Operating system and version Ubuntu 16.04)
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2019-04-03T13:34:47
PHP version 7.2

The issue you are facing:
UI broken (Refer to screenshot)

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

<?php
$CONFIG = array (
  'instanceid' => 'o',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '10.16.44.233',
  ),
  'datadirectory' => '/media/nextcloud/',
  'overwrite.cli.url' => 'http://10.16.44.233/nextcloud',
  'dbtype' => 'mysql',
  'version' => '13.0.12.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',

);

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

x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
60.52.108.4 - - [04/May/2019:18:47:18 +0800] "GET /nextcloud/core/vendor/purify.min.js.map HTTP/1.1" 404 532 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
60.52.108.4 - - [04/May/2019:18:47:17 +0800] "GET /nextcloud/index.php/css/core/ba23-ce2b-share.css?v=c0091620 HTTP/1.1" 200 2139 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
60.52.108.4 - - [04/May/2019:18:47:18 +0800] "GET /nextcloud/index.php/css/files_sharing/35c3-ce2b-mergedAdditionalStyles.css?v=c0091620 HTTP/1.1" 200 1990 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
60.52.108.4 - - [04/May/2019:18:47:18 +0800] "GET /nextcloud/index.php/css/comments/1980-ce2b-autocomplete.css?v=c0091620 HTTP/1.1" 200 1611 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
60.52.108.4 - - [04/May/2019:18:47:17 +0800] "GET /nextcloud/index.php/css/core/ba23-ce2b-server.css?v=c0091620 HTTP/1.1" 200 17182 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
60.52.108.4 - - [04/May/2019:18:47:18 +0800] "GET /nextcloud/index.php/css/core/ba23-ce2b-systemtags.css?v=c0091620 HTTP/1.1" 200 1570 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"

Here are some logs that i found for this issue. Please advice.

The output of your Nextcloud log in Admin > Logging:

{“reqId”:“DlkR1TYDKh4veFDsQYSv”,“level”:3,“time”:“2019-05-05T01:41:22+08:00”,“remoteAddr”:“60.52.108.4”,“user”:“nextcloudadmin”,“app”:“PHP”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/files/",“message”:“Invalid argument supplied for foreach() at /var/www/html/nextcloud/lib/private/Template/SCSSCacher.php#160”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36”,“version”:“13.0.12.1”}
{“reqId”:“DlkR1TYDKh4veFDsQYSv”,“level”:3,“time”:“2019-05-05T01:41:22+08:00”,“remoteAddr”:“60.52.108.4”,“user”:“nextcloudadmin”,“app”:“PHP”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/files/",“message”:“Invalid argument supplied for foreach() at /var/www/html/nextcloud/lib/private/Template/SCSSCacher.php#160”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36”,“version”:“13.0.12.1”}

SCSSCacher.php#160" <—Below is the line for this file.

foreach ($deps as $file=>$mtime) {
if (!file_exists($file) || filemtime($file) > $mtime) {
return false;

hey… i dunno anything about your problems… but this just caught my eyes…
dbhost asks for your host
dpport asks for your port

you inserted all of the information under dbhosts… but i think it should be

‘dbhost’ => ‘localhost’,
‘dbport’ => ‘3306’,

plus: I’m not sure if entering an IP would be valid unter trusted domains… could happen that it has to be a full URL.

plus: overwrite.cli.url should not feature a http, i guess.

please refer to the manual for correct settings.

and last but not least: why do you install a more or less almost almost outdated version of nextcloud. if this is really a new installation why don’t you take nc15 or even nc16? where nc15 is really stable now.

Hi,

I’ve already tried all your suggestion on modifying config.php and i also have upgrade NC using the latest version 16 but the problem still persist.

Log is different now.

{“reqId”:“S5pNVz98SRAIvnS4lZkC”,“level”:3,“time”:“2019-05-06T12:50:46+08:00”,“remoteAddr”:“175.136.131.243”,“user”:“nextmaster”,“app”:“PHP”,“method”:“GET”,“url”:"/nextcloud/index.php/core/preview?fileId=593&x=32&y=32",“message”:“imagecreatefromstring(): Data is not in a recognized format at /var/www/html/nextcloud/lib/private/legacy/image.php#622”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0”,“version”:“16.0.0.9”}
{“reqId”:“84KtODhOMjMl8DFikxmF”,“level”:3,“time”:“2019-05-06T12:50:46+08:00”,“remoteAddr”:“175.136.131.243”,“user”:“nextmaster”,“app”:“PHP”,“method”:“GET”,“url”:"/nextcloud/index.php/core/preview?fileId=590&x=32&y=32",“message”:“imagecreatefromstring(): Data is not in a recognized format at /var/www/html/nextcloud/lib/private/legacy/image.php#622”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0”,“version”:“16.0.0.9”}
/var/log/nextcloud.log

umm… have you installed any apps?
does that happen right after first login with a fresh installation?
would you mind trying a fresh installation using nc15 (only to be sure that its no bug in nc16)?

Hi,

I managed to solve the issue. I forgot to change the server name on my apache setting.


<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/nextcloud/
ServerName test.net.com <— This part
ServerAlias www.test.net.com <— This part
Alias /nextcloud “/var/www/html/nextcloud/”

Once change it works like charm…