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
- Description
On a Tiki 27.x (updated after Tiki27.5 release) I had multiple errors while rebuilding the Unified Index.
Copy to clipboard2026-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 clipboardsed -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.phpCopy to clipboardsed -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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- 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