Error in log file

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12
  • Web server and version (e.g, Apache 2.4.25):
    • ???
  • PHP version (e.g, 8.3):
    • Php 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • after update to 34.0.0
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • VM in proxmox with pve help script
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:I see this error message :

[PHP] Erreur: TypeError: OCA\Theming\Service\BackgroundService::__construct(): Argument #3 ($config) must be of type OCP\IConfig, OC\AppConfig given, called in /var/www/nextcloud/lib/private/Server.php on line 1157 at /var/www/nextcloud/apps/theming/lib/Service/BackgroundService.php#186
POST /index.php/login
de 192.168.150.73 par – à 21 juin 2026, 15:46:13

and also

[index] Erreur: OCA\Theming\Service\BackgroundService::__construct(): Argument #3 ($config) must be of type OCP\IConfig, OC\AppConfig given, called in /var/www/nextcloud/lib/private/Server.php on line 1157
POST /index.php/login
de 192.168.150.73 par – à 21 juin 2026, 15:46:13

What does it mean ? How can I solve this ?

Thanks for your help

Steps to replicate it (hint: details matter!):

  1. update from 18 version to 30 version (step by step)

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

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

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Please provide the other information requested in the support template.

Also note that log entries/stack traces must be posted in full, not the limited excerpts, as also is noted in the support template

Also, how precisely did you perform the updates? Manual, web, CLI, etc.

Lastly, make sure you’re testing against the latest maintenance release in whatever major version branch you’ve upgraded to (so if it’s really v30 use 30.0.17). Otherwise you’re missing out on 17 different maintenance releases and may just be encountering long ago fixed bugs.