fulltextsearch
fulltextsearch copied to clipboard
NC24: TypeError: Argument 2 passed to OCA\Files_FullTextSearch\Service\FilesService::getInt() must be of the type array
Ubuntu 20.04 + PHP 7.4.3 + EL 7.17.4
After applying this patch to FIlesService.php https://github.com/nextcloud/files_fulltextsearch/pull/170 indexing worked well but now indexing breaks with that error message:
Memory: 19 MB
┌─ Indexing ────
│ Action: generateIndexFiles
│ Provider: Files Account: REMOVED
│ Document: 441327
│ Info: /removed/path/to/folder
│ Title:
│ Content size:
│ Chunk: 120/129
│ Progress: 0/957
└──
┌─ Results ────
│ Result: 3/3
│ Index: files:441327
│ Status: ok
│ Message: {"_index":"nextcloud","_type":"_doc","_id":"files:441327","_version":10,"result":"noop","_shards":{"total":0,"successful":0,"failed":0},"_seq_no":3709,"_primary_term":1}
│
│
└──
┌─ Errors ────
│ Error: 20/20
│ Index: files:446100
│ Exception: Elasticsearch\Common\Exceptions\BadRequest400Exception
│ Message: unknown error
│
│
└──
## x:first result ## c/v:prec/next result ## b:last result
## f:first error ## h/j:prec/next error ## d:delete error ## l:last error
## q:quit ## p:pause
An unhandled exception has been thrown:
TypeError: Argument 2 passed to OCA\Files_FullTextSearch\Service\FilesService::getInt() must be of the type array, bool given, called in /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Service/FilesService.php on line 501 and defined in /var/www/clients/client1/web2/web/apps/fulltextsearch/vendor/artificial-owl/my-small-php-tools/lib/Traits/TArrayTools.php:102
Stack trace:
#0 /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Service/FilesService.php(501): OCA\Files_FullTextSearch\Service\FilesService->getInt()
#1 /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Service/FilesService.php(374): OCA\Files_FullTextSearch\Service\FilesService->generateFilesDocumentFromFile()
#2 /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Service/FilesService.php(383): OCA\Files_FullTextSearch\Service\FilesService->getFilesFromDirectory()
#3 /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Service/FilesService.php(383): OCA\Files_FullTextSearch\Service\FilesService->getFilesFromDirectory()
#4 /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Service/FilesService.php(320): OCA\Files_FullTextSearch\Service\FilesService->getFilesFromDirectory()
#5 /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Provider/FilesProvider.php(269): OCA\Files_FullTextSearch\Service\FilesService->getFilesFromUser()
#6 /var/www/clients/client1/web2/web/apps/fulltextsearch/lib/Service/IndexService.php(183): OCA\Files_FullTextSearch\Provider\FilesProvider->generateIndexableDocuments()
#7 /var/www/clients/client1/web2/web/apps/fulltextsearch/lib/Command/Index.php(416): OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser()
#8 /var/www/clients/client1/web2/web/apps/fulltextsearch/lib/Command/Index.php(279): OCA\FullTextSearch\Command\Index->indexProvider()
#9 /var/www/clients/client1/web2/web/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute()
#10 /var/www/clients/client1/web2/web/core/Command/Base.php(168): Symfony\Component\Console\Command\Command->run()
#11 /var/www/clients/client1/web2/web/3rdparty/symfony/console/Application.php(1009): OC\Core\Command\Base->run()
#12 /var/www/clients/client1/web2/web/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#13 /var/www/clients/client1/web2/web/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#14 /var/www/clients/client1/web2/web/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#15 /var/www/clients/client1/web2/web/console.php(99): OC\Console\Application->run()
#16 /var/www/clients/client1/web2/web/occ(11): require_once('/var/www/client...')