-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Model\MountPoint::setId() must be of the type integer #27
Comments
I have same problem. Ubuntu 18.04 NC 15.0.0 |
I had the same problem with Nextcloud 15 and ElasticSearc 6.5.3 (both with docker). Release 1.2.3 fixed it for me. Indexing ran fine and searching files works. |
Issue seems to be solved. |
Sorry, but not |
You might need to reset your index |
Same here. Using last files_fulltextsearch with nextcloud 20.0. I have to disable "GroupFolders" to get the index correctly working. |
Running:
Nextcloud 15.0.0
Elastic Search 6.5.3 with Elasticsearch Plugin (free)
Plugins Installed:
Full text search 1.2.1
Full text search - Elasticsearch Platform 1.2.1
Full text search - Files 1.2.1
Config:
Outcome of "occ fulltextsearch:check"
Fulltext search 1.2.1
Search Platform:
Elasticsearch 1.2.1
{
"elastic_host": [
"http://nextcloud:********@localhost:9200"
],
"elastic_index": "my_index"
}
Content Providers:
Files 1.2.1
{
"files_local": "1",
"files_external": "0",
"files_group_folders": "1",
"files_encrypted": "0",
"files_federated": "0",
"files_size": "20",
"files_pdf": "1",
"files_office": "1",
"files_image": "0",
"files_audio": "0"
}
Problem:
The following error comes up when attempting to "occ fulltextsearch:index":
An unhandled exception has been thrown:
TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Model\MountPoint::setId() must be of the type integer, string given, called in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php on line 220 and defined in /var/www/nextcloud/apps/files_fulltextsearch/lib/Model/MountPoint.php:70
Stack trace:
#0 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php(220): OCA\Files_FullTextSearch\Model\MountPoint->setId('1')
#1 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php(123): OCA\Files_FullTextSearch\Service\GroupFoldersService->getMountPoints('a.bott')
#2 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(211): OCA\Files_FullTextSearch\Service\GroupFoldersService->initGroupSharesForUser('a.bott')
#3 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(181): OCA\Files_FullTextSearch\Service\FilesService->initFileSystems('a.bott')
#4 /var/www/nextcloud/apps/files_fulltextsearch/lib/Provider/FilesProvider.php(228): OCA\Files_FullTextSearch\Service\FilesService->getFilesFromUser('a.bott', Object(OCA\FullTextSearch\Model\IndexOptions))
#5 /var/www/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(179): OCA\Files_FullTextSearch\Provider\FilesProvider->generateIndexableDocuments('a.bott')
#6 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php(407): OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser(Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform), Object(OCA\Files_FullTextSearch\Provider\FilesProvider), 'a.bott', Object(OCA\FullTextSearch\Model\IndexOptions))
#7 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php(271): OCA\FullTextSearch\Command\Index->indexProvider(Object(OCA\Files_FullTextSearch\Provider\FilesProvider), Object(OCA\FullTextSearch\Model\IndexOptions))
#8 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/nextcloud/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(946): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OCA\FullTextSearch\Command\Index), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/nextcloud/console.php(96): OC\Console\Application->run()
#15 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#22
#25
#28
The text was updated successfully, but these errors were encountered: