nextcloud / nextcloud/fulltextsearch
Configuration does not work with Nextcloud 34
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 234
- Forks
- 64
- Avg merge
- 6h 18m
- Merged PRs (30d)
- 10
Description
Hi,
I get an error when setting up full text search on my new Nextcloud:
Argument #2 ($value) must be of type bool, int given, called in /var/www/html/custom_apps/fulltextsearch/lib/Service/ConfigService.php on line 39 in file '/var/www/html/lib/private/AppFramework/Services/AppConfig.php' line 192"
Adding a type cast solved the problem for me:
$this->appConfig->setAppValueBool($k, (bool)$save[$k]);
Setup in which the problem occurred:
- Nextcloud version 34.0.2
- fulltextsearch version 34.0.1
- files_fulltextsearch version 34.0.1
- fulltextsearch_elasticsearch version 34.0.1
I used the Nextcloud docker container which runs on PHP version 8.5.9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in lib/Service/ConfigService.php at line 39 and compare the value passed to AppConfig.php line 192 with the boolean type expected by Nextcloud 34. Reproduce the configuration failure on the listed Nextcloud and fulltextsearch versions, then verify that full-text search configuration completes successfully without the type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100