Error in Log and not all Activitys for shares

Nextcloud version (eg, 10.0.2): 11.0.1
Operating system and version (eg, Ubuntu 16.04): 14.04 TLS
Apache or nginx version (eg, Apache 2.4.25): 2.4.7
PHP version (eg, 5.6): 7.0.14
Is this the first time you’ve seen this error and can you replicate it?:

The issue you are facing:

Error in Logging.
Activity App dont shows all changes in Shares from other, just a few and a “loading cycle”

The output of your Nextcloud log in Admin > Logging:

[details=Summary]Error no app in context InvalidArgumentException: The given affected user is invalid
/var/www/owncloud/apps/activity/lib/FilesHooks.php - line 889: OC\Activity\Event->setAffectedUser(11325)
/var/www/owncloud/apps/activity/lib/FilesHooks.php - line 334: OCA\Activity\FilesHooks->addNotificationsForUser(11325, ‘renamed_by’, Array, 29741, ‘/11325/Fibu/Fib…’, true, true, 0, ‘file_changed’)
/var/www/owncloud/apps/activity/lib/FilesHooks.php - line 274: OCA\Activity\FilesHooks->fileRenaming(’/11325/Fibu/Fib…’, ‘/11325/Fibu/Fib…’)
/var/www/owncloud/apps/activity/lib/FilesHooksStatic.php - line 77: OCA\Activity\FilesHooks->fileMovePost(’/11325/Fibu/Fib…’, ‘/11325/Fibu/Fib…’)
/var/www/owncloud/lib/private/legacy/hook.php - line 106: OCA\Activity\FilesHooksStatic fileMovePost(Array)
/var/www/owncloud/lib/private/Files/View.php - line 822: OC_Hook emit(‘OC_Filesystem’, ‘post_rename’, Array)
/var/www/owncloud/apps/dav/lib/Connector/Sabre/ObjectTree.php - line 268: OC\Files\View->rename(’/11325/Fibu/Fib…’, ‘/11325/Fibu/Fib…’)
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 642: OCA\DAV\Connector\Sabre\ObjectTree->move(‘11325/Fibu/Fibu…’, ‘11325/Fibu/Fibu…’)
[internal function] Sabre\DAV\CorePlugin->httpMove(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit(‘method MOVE’, Array)
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/owncloud/apps/dav/appinfo/v1/webdav.php - line 60: Sabre\DAV\Server->exec()
/var/www/owncloud/remote.php - line 165: require_once(’/var/www/ownclo…’)
{main}[/details]

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

[details=Summary]<?php
$CONFIG = array (
‘instanceid’ => ‘ockowjhwi9yo’,
‘passwordsalt’ => ‘’,
‘secret’ => ‘’,
‘trusted_domains’ =>
array (
0 => ‘cloud.steuerberater-stephan-mann.de’,
),
‘datadirectory’ => ‘/var/www/owncloud/data’,
‘overwrite.cli.url’ => ‘https://cloud.steuerberater-stephan-mann.de’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘11.0.1.2’,
‘dbname’ => ‘owncloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘’,
‘dbpassword’ => ‘’,
‘logtimezone’ => ‘UTC’,
‘installed’ => true,
‘mail_smtpmode’ => ‘smtp’,
‘mail_from_address’ => ‘cloud’,
‘mail_domain’ => ‘steuerberater-stephan-mann.de’,
‘mail_smtphost’ => ‘’,
‘mail_smtpport’ => ‘2555’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘maintenance’ => false,
‘loglevel’ => 2,
);
[/details]

Hello,

Have no one a Idea?