TypeError: Argument 3 passed to OC\Activity\Event::setObject() must be of the type string, null given, called in /config/www/nextcloud/apps/files_antivirus/lib/Item.php

Nextcloud version: 24.0.2
PHP version: 7.4.26
Operating system and version: linuxserver-docker (Alpine 3.12)
ClamAV: Cisco Talos ClamAV Docker

[core] Fehler: TypeError: Argument 3 passed to OC\Activity\Event::setObject() must be of the type string, null given, called in /config/www/nextcloud/apps/files_antivirus/lib/Item.php on line 115 at <>

  1. /config/www/nextcloud/apps/files_antivirus/lib/Item.php line 115
    OC\Activity\Event->setObject()
  2. /config/www/nextcloud/apps/files_antivirus/lib/Status.php line 168
    OCA\Files_Antivirus\Item->processInfected()
  3. /config/www/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 327
    OCA\Files_Antivirus\Status->dispatch()
  4. /config/www/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 123
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scanOneFile()
  5. /config/www/nextcloud/lib/private/BackgroundJob/Job.php line 54
    OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->run()
  6. /config/www/nextcloud/lib/private/BackgroundJob/TimedJob.php line 60
    OC\BackgroundJob\Job->execute()
  7. /config/www/nextcloud/cron.php line 151
    OC\BackgroundJob\TimedJob->execute()

at 2022-07-20T10:00:15+00:00

I am new to Nextcloud and use it first since version 24. Since the installation i got this error. Unfortunately, despite research I have not found a solution so far. Maybe someone has a hint to fix it.

I also have this issue. Related? ==> TypeError Activity\Event::setObject(), null given, called in lib/Item.php on line 111 - Nextcloud/Files_antivirus

Nextcloud version: 26.0.3
PHP version: 8.1

Same here:

TypeError: OC\Activity\Event::setObject(): Argument #3 ($objectName) must be of type string, null given, called in /var/www/nextcloud/apps/files_antivirus/lib/Item.php on line 102 and defined in /var/www/nextcloud/lib/private/Activity/Event.php:413
Stack trace:
#0 /var/www/nextcloud/apps/files_antivirus/lib/Item.php(102): OC\Activity\Event->setObject('file', 21670, NULL)
#1 /var/www/nextcloud/apps/files_antivirus/lib/Status.php(164): OCA\Files_Antivirus\Item->processInfected(Object(OCA\Files_Antivirus\Status))
#2 /var/www/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php(314): OCA\Files_Antivirus\Status->dispatch(Object(OCA\Files_Antivirus\Item))
#3 /var/www/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php(207): OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scanOneFile(Object(OC\Files\Node\File))
#4 /var/www/nextcloud/lib/public/BackgroundJob/Job.php(78): OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->run(NULL)
#5 /var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php(103): OCP\BackgroundJob\Job->start(Object(OC\BackgroundJob\JobList))
#6 /var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php(93): OCP\BackgroundJob\TimedJob->start(Object(OC\BackgroundJob\JobList))
#7 /var/www/nextcloud/cron.php(152): OCP\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
#8 {main}