Skip to content

Configuration does not work with Nextcloud 34 #972

Description

@fsalfner-dev

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"

$this->appConfig->setAppValueBool($k, $save[$k]);

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions