[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] search: Fix on error reporting on an edge case issue found with...

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69f096187d9ae_39456654054340@gitlab-sidekiq-low-urgency-cpu-bound-v2-584f6cb8d4-ssd2b.mail>

Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
48f12cc6 by Jonny Bradley at 2026-04-28T11:04:43+00:00
[FIX] search: Fix on error reporting on an edge case issue found with...
---
* [FIX] search: Fix on error reporting on an edge case issue found with elasticsearch v9 (`reason` is now inside `caused_by`)

See merge request tikiwiki/tiki!10094

- - - - -


1 changed file:

- lib/core/Search/Elastic/Connection.php


Changes:

=====================================
lib/core/Search/Elastic/Connection.php
=====================================
@@ -580,6 +580,8 @@ class Search_Elastic_Connection
                 $message = $message->reason;
             } elseif (is_object($message) && ! empty($message->root_cause) && ! empty($message->root_cause[0]->reason)) {
                 $message = $message->root_cause[0]->reason;
+            } elseif (is_object($message) && ! empty($message->caused_by) && ! empty($message->caused_by->reason)) {
+                $message = $message->caused_by->reason;
             } elseif (is_object($message) && ! empty($message->failed_shards) && ! empty($message->failed_shards[0]->reason)) {
                 if (is_object($message->failed_shards[0]->reason)) {
                     $message = $message->failed_shards[0]->reason->reason;



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/48f12cc6096aa81dc0ec027f71fbaafb63eb0c45

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/48f12cc6096aa81dc0ec027f71fbaafb63eb0c45
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.