nextcloud / nextcloud/fulltextsearch

Configuration does not work with Nextcloud 34

Open Beginner friendly
#972 0 comments 3 reactions 0 assignees View on GitHub

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"

https://github.com/nextcloud/fulltextsearch/blob/5269e8b9f143ab8cd7658a29259991cb1fbeb298/lib/Service/ConfigService.php#L39

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.