[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [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 <69f0975a71697_3818ee58643d6@gitlab-sidekiq-low-urgency-cpu-bound-v2-584f6cb8d4-ccb4t.mail>

Jonny Bradley pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
4770d1b3 by Jonny Bradley at 2026-04-28T11:17:23+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


(cherry picked from commit 48f12cc6096aa81dc0ec027f71fbaafb63eb0c45)

37bd64bd [FIX] search: Fix on error reporting on an edge case issue found with...

Co-authored-by: Jonny Bradley <[email protected]>
- - - - -


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/4770d1b3f3f7655b66a8748ffb0e3845f943826a

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4770d1b3f3f7655b66a8748ffb0e3845f943826a
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.