Loading...
 
Skip to main content

Goal, Unified Index; Goal misconfiguration can lead to failure of unified index creation/building

Status
Closed
Subject
Goal, Unified Index; Goal misconfiguration can lead to failure of unified index creation/building
Version
24.x
Category
  • Conflict of two features (each works well independently)
Resolution status
Out of Date
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

In a Tiki24.x using ElasticSearch, if you partially configure or misconfigure the Goal feature at tiki-admin.php?page=community&cookietab=2&highlight=goal_enabled#contentadmin_community-2 you won't be able to complete index rebuild command.

To reproduce, simply enable "Goal, recognition and rewards" and try php console.php i:r -p in the shell.

You will have the following error.

Copy to clipboard
% php console.php i:r -p [2023-04-04 09:01] Started rebuilding index... Unified search -------------- Engine: Elastic, version 7.14 3 mins/4 mins [====================>-------] -- Processing activity documentsA error was encountered while running a command Argument 1 passed to Search_Type_Json::__construct() must be of the type array, string given, called in /Users/bernardsfez/Documents/Shocksite/www/htdocs/wiki-to-yes.org_tiki24/lib/core/Search/Elastic/TypeFactory.php on line 81 on line 13 of /Users/xxx/Documents/xxx/www/htdocs/xxx_tiki24/lib/core/Search/Type/Json.php


The index rebuilt should complete and throw an error/warning/notice about the feature not being configured correctly.

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8373
Created
Tuesday 04 April, 2023 07:15:37 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Thursday 27 April, 2023 06:59:01 UTC


Show PHP error messages