Skip to content

[v1.5.3] TypeError: OCA\Files_Reader\Hooks::OCA\Files_Reader\{closure}(): Argument #1 ($node) must be of type OCA\Files_Reader\Node, OC\Files\Node\File given #1

Description

@j-ed

After installing the latest app version 1.5.3 cron.php has shown the following messages on execution:

TypeError: OCA\Files_Reader\Hooks::OCA\Files_Reader\{closure}(): Argument #1 ($node) must be of type OCA\Files_Reader\Node, OC\Files\Node\File given in .../nextcloud/apps2/files_reader/lib/Hooks.php:18
Stack trace:
#0 [internal function]: OCA\Files_Reader\Hooks::OCA\Files_Reader\{closure}(Object(OC\Files\Node\File))
#1 .../nextcloud/lib/private/Hooks/EmitterTrait.php(106): call_user_func_array(Object(Closure), Array)
#2 .../nextcloud/lib/private/Hooks/PublicEmitter.php(40): OC\Hooks\BasicEmitter->emit('\\OC\\Files', 'preDelete', Array)
#3 .../nextcloud/lib/private/Files/Node/Root.php(143): OC\Hooks\PublicEmitter->emit('\\OC\\Files', 'preDelete', Array)
#4 .../nextcloud/lib/private/Files/Node/Node.php(117): OC\Files\Node\Root->emit('\\OC\\Files', 'preDelete', Array)
#5 .../nextcloud/lib/private/Files/Node/File.php(129): OC\Files\Node\Node->sendHooks(Array)
#6 .../nextcloud/lib/private/Files/SimpleFS/SimpleFile.php(149): OC\Files\Node\File->delete()
#7 .../nextcloud/apps2/bookmarks/lib/Service/FileCache.php(156): OC\Files\SimpleFS\SimpleFile->delete()
#8 .../nextcloud/apps2/bookmarks/lib/BackgroundJobs/FileCacheGCJob.php(39): OCA\Bookmarks\Service\FileCache->gc()
#9 .../nextcloud/lib/public/BackgroundJob/Job.php(79): OCA\Bookmarks\BackgroundJobs\FileCacheGCJob->run(NULL)
#10 .../nextcloud/lib/public/BackgroundJob/TimedJob.php(95): OCP\BackgroundJob\Job->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
#11 .../nextcloud/cron.php(151): OCP\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
#12 {main}

My Environment

Server Configuration

OS: Linux 5.15.64
Web server: Apache2 2.4.53
Database: MariaDB 10.3.35
PHP version: 8.0.20
Nextcloud version: 24.0.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions