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

setIndexOptions() #424

Closed
q5616417 opened this issue Dec 18, 2018 · 4 comments
Closed

setIndexOptions() #424

q5616417 opened this issue Dec 18, 2018 · 4 comments
Labels

Comments

@q5616417
Copy link

q5616417 commented Dec 18, 2018

Hello,
when I'm starting indexing, I get the following error:

An unhandled exception has been thrown:
Error: Call to undefined method OCA\Files_FullTextSearch\Provider\FilesProvider::setIndexOptions()
In /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php:263
Stack trace:
#0 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(251): >OCA\FullTextSearch\Command\Index->execute(Obje
ct(Symfony\Component\Console\Input\ArgvInput), >Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /var/www/nextcloud/core/Command/Base.php(162): >Symfony\Component\Console\Command\Command->run(Object(Symfony\Compone
nt\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /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))
#3 /var/www/nextcloud/3rdparty/symfony/console/Application.php(248): >Symfony\Component\Console\Application->doRunComman
d(Object(OCA\FullTextSearch\Command\Index), >Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component
\Console\Output\ConsoleOutput))
#4 /var/www/nextcloud/3rdparty/symfony/console/Application.php(148): >Symfony\Component\Console\Application->doRun(Objec
t(Symfony\Component\Console\Input\ArgvInput), >Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/nextcloud/lib/private/Console/Application.php(213): >Symfony\Component\Console\Application->run(Object(Symfo
ny\Component\Console\Input\ArgvInput), >Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/nextcloud/console.php(96): OC\Console\Application->run()
#7 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#8 {main}

my Setup:

  • Nextcloud 14.0.4 on Ubuntu 18.04

  • Elasticsearch 6.5.3 with ingest-attachment

  • apache 2.4.29

  • PHP 7.2.10-0ubuntu0.18.04.1

  • fulltextsearch: 1.1.0

  • fulltextsearch_elasticsearch: 1.0.2

  • files_fulltextsearch: 0.6.0

  • files_fulltextsearch_tesseract: 1.0.0

Any Idea?

Best regards

Thomas

@ArtificialOwl
Copy link
Member

Are those the real version of the apps you are using ? If so, is there an issue when you try to update them ?

@q5616417
Copy link
Author

Hello daita and thank you for your answer.
I just upgraded to nextcloud 15 and fulltextsearch 1.2.2. Now, when doing occ fultextsearch:index, I get this error:

An unhandled exception has been thrown:
TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Model\MountPoint::setId() must be of the >type string, integer given, called in >/var/www/nextcloud/apps/files_fulltextsearch/lib/Service/ExternalFilesService.php on line 263 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/ExternalFilesService.php(263): >OCA\Files_FullTextSearch\Model\MountPoint->setId(1)
#1 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/ExternalFilesService.php(133): >OCA\Files_FullTextSearch\Service\ExternalFilesService->getMountPoints('moshing')
#2 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(210): >OCA\Files_FullTextSearch\Service\ExternalFilesService->initExternalFilesForUser('moshing')
#3 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(181): >OCA\Files_FullTextSearch\Service\FilesService->initFileSystems('moshing')
#4 /var/www/nextcloud/apps/files_fulltextsearch/lib/Provider/FilesProvider.php(228): >OCA\Files_FullTextSearch\Service\FilesService->getFilesFromUser('moshing', >Object(OCA\FullTextSearch\Model\IndexOptions))
#5 /var/www/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(180): >OCA\Files_FullTextSearch\Provider\FilesProvider->generateIndexableDocuments('moshing')
#6 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php(407): >OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser(Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlat>form), Object(OCA\Files_FullTextSearch\Provider\FilesProvider), 'moshing', >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...')

@ArtificialOwl
Copy link
Member

should be fixed in 1.2.3

@q5616417
Copy link
Author

Works like a charm, thank you :)

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

No branches or pull requests

2 participants