Skip to content
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

Closed
ghost opened this issue Dec 14, 2018 · 6 comments

Comments

@ghost
Copy link

ghost commented Dec 14, 2018

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

@winvan
Copy link

winvan commented Dec 17, 2018

I have same problem. Ubuntu 18.04 NC 15.0.0

@pfaelzerchen
Copy link

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.

@ghost
Copy link
Author

ghost commented Jan 3, 2019

Issue seems to be solved.

@ghost ghost closed this as completed Jan 3, 2019
@winvan
Copy link

winvan commented Feb 12, 2019

Issue seems to be solved.

Sorry, but not
Error can be reproduced only if "GroupFolders" app enabled
Disabling Group folders app allow create index

@ArtificialOwl
Copy link
Member

You might need to reset your index

@franciscopaniskaseker
Copy link

Issue seems to be solved.

Sorry, but not
Error can be reproduced only if "GroupFolders" app enabled
Disabling Group folders app allow create index

Same here. Using last files_fulltextsearch with nextcloud 20.0. I have to disable "GroupFolders" to get the index correctly working.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants