App: files_sharing, message:"... Migrate everything from app.php to the Application class."

Nextcloud version: [Nextcloud Hub II] (23.0.0)
Operating system and version: Raspian Buster
Apache version: Apache/2.4.38 (Raspbian)
PHP version: 7.3.31-1~deb10u1

The issue you are facing:

Uploading images from iPhone client fails.
For each try and each image i find messages

{"reqId":"...","level":3,"time":"2022-01-03T20:08:51+00:00","remoteAddr":"some-ip","user":"uid","app":"files_sharing","method":"PUT","url":"/nextcloud/remote.php/dav/files/uid/Photos/2022/01/file-name.jpg","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.1.0","version":"23.0.0.10"}
{"reqId":"...","level":3,"time":"2022-01-03T20:21:51+00:00","remoteAddr":"some-ip","user":"uid","app":"files_sharing","method":"PUT","url":"/nextcloud/remote.php/dav/files/uid/Photos/2022/01/file-name.jpg","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.1.0","version":"23.0.0.10"}
{"reqId":"...","level":3,"time":"2022-01-03T20:22:12+00:00","remoteAddr":"some-ip","user":"uid","app":"files_sharing","method":"PUT","url":"/nextcloud/remote.php/dav/files/uid/Photos/2022/01/file-name.jpg","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.1.0","version":"23.0.0.10"}

What does is mean “Migrate everything from app.php to the Application class”? What am i supposed to do?

Is this the first time you’ve seen this error? :Y

Steps to replicate it:

  1. Just start Nextcloud for iPhone to upload images

The output of your Nextcloud log in Admin > Logging:

Fehler	files_sharing	/appinfo/app.php is not loaded when \OCP\AppFramework\Bootstrap\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.	
2022-01-05T21:25:15+0100
Fehler	files_sharing	/appinfo/app.php is not loaded when \OCP\AppFramework\Bootstrap\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.	
2022-01-05T21:25:07+0100
Fehler	files_sharing	/appinfo/app.php is not loaded when \OCP\AppFramework\Bootstrap\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.	
2022-01-05T21:25:02+0100

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

<?php
$CONFIG = array (
...
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
...
  'dbtableprefix' => 'oc_',
...
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mysql.utf8mb4' => true,
  'app_install_overwrite' =>
  array (
    0 => 'ocr',
  ),
  'default_phone_region' => 'DE',
);

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

[Wed Jan 05 20:31:48.597633 2022] [mpm_prefork:notice] [pid 25047] AH00169: caught SIGTERM, shutting down
[Wed Jan 05 20:31:49.067350 2022] [mpm_prefork:notice] [pid 27540] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Wed Jan 05 20:31:49.067511 2022] [core:notice] [pid 27540] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jan 05 20:33:30.591719 2022] [core:info] [pid 27611] [client 89.104.101.117:46749] AH00128: File does not exist: /var/www/html/favicon.ico
[Wed Jan 05 20:39:36.416967 2022] [reqtimeout:info] [pid 27599] [client ... :55892] AH01382: Request header read timeout
[Wed Jan 05 20:44:37.367532 2022] [reqtimeout:info] [pid 28665] [client ... :56086] AH01382: Request header read timeout
[Wed Jan 05 20:54:57.667495 2022] [reqtimeout:info] [pid 28833] [client ... :64992] AH01382: Request body read timeout
[Wed Jan 05 20:54:57.681322 2022] [reqtimeout:info] [pid 28831] [client ... :64993] AH01382: Request body read timeout

I checked the logs for when these messages appeared the first time.
It looks like they appear since i suffered a file system damage and had to fix nc by reinstalling v22.2.3.0 manually.
I deactivated File Sharing and then the messages don’t show up any more. But then i can’t upload no more files via app.
Can somebody please give me a hint, what these messages mean, so i have a chance to fix it?

Thanks. Fixed it by myself.