Loading...
 
Skip to main content

Error in a Tiki27 Unified Index rebuild (MySQL) Undefined array key "is_html"

Status
Open
Subject
Error in a Tiki27 Unified Index rebuild (MySQL) Undefined array key "is_html"
Version
27.x
Category
  • Bug
  • Easy for Newbie Dev
Feature
Forum
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

On a Tiki 27.x (updated after Tiki27.5 release) I had multiple errors while rebuilding the Unified Index.

Copy to clipboard
2026-02-09T09:46:45+00:00 INFO (6): addDocument forum post 1 {"memoryUsage":"42.5 MiB","memoryAvail":"-1 B"} 2026-02-09T09:46:45+00:00 ERR (3): WARNING: Undefined array key "is_html" {"code":2,"file":"/home/domain/public_html/lib/tikilib.php","line":6477} 2026-02-09T09:46:45+00:00 INFO (6): addDocument forum post 4 {"memoryUsage":"42.5 MiB","memoryAvail":"-1 B"} .../...


See solution for the fix I used.

Solution

Fix lib/tikilib.php

Copy to clipboard
sed -i "6477s/\['is_html' => \$options\['is_html'\]/['is_html' => \$options['is_html'] ?? false/" lib/tikilib.php sed -i "6477s/'indexing' => \$options\['indexing'\]/'indexing' => \$options['indexing'] ?? false/" lib/tikilib.php


Fix lib/core/Search/ContentSource/ForumPostSource.php

Copy to clipboard
sed -i "60s/\['indexing' => true\]/['indexing' => true, 'is_html' => false]/" lib/core/Search/ContentSource/ForumPostSource.php sed -i "130s/get_snippet(\$content)/get_snippet(\$content, '', ['indexing' => false, 'is_html' => false])/" lib/core/Search/ContentSource/ForumPostSource.php


Rebuilt the index, no more error.

Workaround
Importance
4
Easy to solve?
5
Priority
20
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8917
Created
Monday 09 February, 2026 10:42:56 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Monday 09 February, 2026 10:47:46 UTC


Show PHP error messages