PHP Error: … App/AppManager.php#881

Dear all,

I am new on Nextcloud. Hosted on a provider machine.

Every 10 minutes we face theses PHP errors below:

[PHP] Fehler: foreach() argument must be of type array|object, null given at /home/myself/www/mydomain.org/ewc/lib/private/App/AppManager.php#881
	GET /ewc/index.php/settings/admin/logging
	von 2001:1708:230b:c200:edce:6cf1:ad8:85d5 von myself um 20 Dec 2024, 18:10:05

[PHP] Fehler: Trying to access array offset on value of type null at /home/myself/www/mydomain.org/ewc/lib/private/App/AppManager.php#881
	GET /ewc/index.php/settings/admin/logging
	von 2001:1708:230b:c200:edce:6cf1:ad8:85d5 von myself um 20 Dec 2024, 18:10:05

What did I wron? Any ideas?

Do you, perhaps, have some non-app folders in your apps/ folder / configured apps_paths?

Dear jtr
Do not completely understand your question. Can you help me out?

Looking at the code, the situation you’re in should not occur under normal circumstances. One theory I have is that you have some unexpected folders within your apps/ directory (located in the directory Nextcloud is installed in on your server).

So I suggest browsing your Nextcloud installation directory and locating the apps/ directory (and possibly some others, but I can’t say since you seem to have overlooked the support template so there’s really not much else I can propose).

Dear jtr,
many thanks for clarification. My apps folder looks like on the picture. Any suggestions?

Do you have any errors or warnings under Admin settings->Overview?

Also please post the output of:

occ app:list

and

occ config:list system