Can't deactivate dark mode

[details=“Support intro”]
Nextcloud version (eg, 20.0.5): 23.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): built-in from docker hub container
PHP version (eg, 7.4): built-in from docker hub container

The issue you are facing:
Today the dark mode (which can be set in accessibility settings) just randomly popped up some days ago and I can’t deactivate it anymore. The “Dark Mode” checkbox is unset, however if I check it and afterwards uncheck again, the design is back to normal (light theme). After switching pages, however, it switches back to black.

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

Steps to replicate it:

  1. Visit Nextcloud website

The output of your Nextcloud log in Admin > Logging:
I just tried to download the log file and stopped at 5.4GB. How do I clear this log?

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

<?php
$CONFIG = array (
  'instanceid' => 'myinstanceid',
  'passwordsalt' => 'mypasswordsalt',
  'secret' => 'mysecret',
  'trusted_domains' =>
  array (
    0 => 'domain',
  ),
  'trusted_proxies' =>
  array (
    0 => 'proxy',
  ),
  'overwritehost' => 'my.nextcloud.domain',
  'overwriteprotocol' => 'https',
  'overwritewebroot' => '/',
  'datadirectory' => '/usr/lib/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '23.0.2.1',
  'overwrite.cli.url' => 'https://my.nextcloud.domain',
  'dbname' => 'ncdbname',
  'dbhost' => 'ncdbhost',
  'dbport' => 'ncdbhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ncdbuser',
  'dbpassword' => 'ncdbpw',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'admin',
  'mail_domain' => 'mail.domain',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.my.domain',
  'mail_smtpport' => '123',
  'mail_smtpauthtype' => 'AUTHTYPE',
  'mail_smtpname' => 'admin@my.domain',
  'mail_smtppassword' => 'mystrongsmtppassword',
  'maintenance' => false,
  'theme' => '',
  'logfile' => '/var/log/nextcloud.log', # this file doesn't exist
  'loglevel' => 0,
  'log_rotate_size' => '104857600',
  'updater.release.channel' => 'stable',
  'mysql.utf8mb4' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'app_install_overwrite' =>
  array (
    0 => 'spreed',
    1 => 'social',
  ),
  'data-fingerprint' => 'mydatafingerprint',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'default_phone_region' => 'DE',
  'updater.secret' => 'updatersecret',
);

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

nextcloud    | 127.0.0.1 - - [22/Mar/2022:15:04:12 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.52 (Debian) PHP/8.0.16 (internal dummy connection)"
nextcloud    | 172.24.0.20 - user [22/Mar/2022:15:04:13 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications? HTTP/1.1" 200 931 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.19.1"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:15 +0100] "PUT /ocs/v2.php/apps/accessibility/api/v1/config/theme HTTP/1.1" 200 887 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:15 +0100] "GET /index.php/apps/accessibility/css/user-d41d8cd98f00b204e9800998ecf8427e?v=1647957854986 HTTP/1.1" 200 5294 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:18 +0100] "DELETE /ocs/v2.php/apps/accessibility/api/v1/config/theme HTTP/1.1" 200 886 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:18 +0100] "GET /index.php/apps/accessibility/css/user-d41d8cd98f00b204e9800998ecf8427e?v=1647957857637 HTTP/1.1" 200 804 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:20 +0100] "GET /index.php/settings/user/sharing HTTP/1.1" 200 11709 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:20 +0100] "GET /apps/federatedfilesharing/l10n/de.js?v=3f9e44b0-43 HTTP/1.1" 200 2812 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:20 +0100] "GET /apps/federatedfilesharing/js/settings-personal.js?v=3f9e44b0-43 HTTP/1.1" 200 1331 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:20 +0100] "GET /apps/files/js/dist/personal-settings.js?v=3f9e44b0-43 HTTP/1.1" 200 193956 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:20 +0100] "GET /index.php/css/federatedfilesharing/a472-a87e-settings-personal.css?v=1600aa26ab656115c6a9643c7af478ac-3f9e44b0-43 HTTP/1.1" 200 1263 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:20 +0100] "GET /apps/files_sharing/js/dist/personal-settings.js?v=3f9e44b0-43 HTTP/1.1" 200 80472 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 961 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "PUT /index.php/apps/user_status/heartbeat HTTP/1.1" 200 943 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/search/providers?from=%2Fsettings%2Fuser%2Fsharing HTTP/1.1" 200 1262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/files_sharing/api/v1/sharees?format=json&itemType=file&search=&perPage=20&lookup=false HTTP/1.1" 200 2502 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/statuses/a HTTP/1.1" 200 929 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/statuses/b HTTP/1.1" 404 900 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/statuses/c HTTP/1.1" 200 928 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/statuses/d HTTP/1.1" 200 927 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/statuses/e HTTP/1.1" 200 932 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/statuses/f HTTP/1.1" 200 927 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/statuses/g HTTP/1.1" 200 929 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - - [22/Mar/2022:15:04:21 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/statuses/h HTTP/1.1" 200 952 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36"
nextcloud    | 172.24.0.20 - user [22/Mar/2022:15:04:23 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications? HTTP/1.1" 200 931 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.19.1"
nextcloud    | 172.24.0.20 - user [22/Mar/2022:15:04:24 +0100] "PROPFIND /remote.php/dav/files/i/ HTTP/1.1" 207 1032 "-" "Mozilla/5.0 (Windows) mirall/3.4.0stable-Win64 (build 20211129) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
nextcloud    | 172.24.0.20 - i [22/Mar/2022:15:04:24 +0100] "PROPFIND /remote.php/dav/files/i/ HTTP/1.1" 207 1030 "-" "Mozilla/5.0 (Windows) mirall/3.4.0stable-Win64 (build 20211129) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
nextcloud    | 127.0.0.1 - - [22/Mar/2022:15:04:28 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.52 (Debian) PHP/8.0.16 (internal dummy connection)"
nextcloud    | 127.0.0.1 - - [22/Mar/2022:15:04:30 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.52 (Debian) PHP/8.0.16 (internal dummy connection)"
nextcloud    | 127.0.0.1 - - [22/Mar/2022:15:04:31 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.52 (Debian) PHP/8.0.16 (internal dummy connection)"
nextcloud    | 127.0.0.1 - - [22/Mar/2022:15:04:32 +0100] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.52 (Debian) PHP/8.0.16 (internal dummy connection)"
nextcloud    | 172.24.0.20 - user [22/Mar/2022:15:04:33 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications? HTTP/1.1" 200 931 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.19.1"
1 Like

You should also be able to check your nextcloud.log as admin for errors, either within Nextcloud or in /var/www/

Alright I found the log file, however since it’s about 10GB in size, is there some keyword I could possibly search for?

You should be able to grep it for errors. Might be easiest to filter by errors under the Nextcloud admin interface on the top right.

Okay, there are two errors:

[PHP] Fehler: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero at /var/www/html/apps/news/vendor/fivefilters/readability.php/src/Readability.php#199

GET /index.php/apps/news/api/v1-2/feeds/update?userId=taibsu&feedId=3
from 172.24.0.20 by taibsu at 2022-03-22T14:53:01+00:00
[PHP] Fehler: Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#100

GET /index.php/settings/admin/overview
from 172.24.0.20 by taibsu at 2022-03-22T14:42:32+00:00

I have the same problem.

Linux Mint 20.3, Firefox 100, Nextcloud 23.0.4 with all apps up to date.

It works normally in Chromium 101.0.4951.54

@taiBsu can you (or someone else) open a ticket in github? I don’t have the time right now but I will follow and provide more info if needed.

Done.

1 Like