[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] console: If TikiLib fails to load in tiki-setup.php for some reason, ...

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69bd280ea1d6e_3b18d198-3fd@gitlab-sidekiq-low-urgency-cpu-bound-v2-85bc8d8d44-h6pxx.mail>

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


Commits:
ae3c2668 by Jonny Bradley at 2026-03-20T10:57:15+00:00
[FIX] console: If TikiLib fails to load in tiki-setup.php for some reason,...
---
* [FIX] console: If TikiLib fails to load in tiki-setup.php for some reason, `captureException` fails silently leading to spurious and misleading error messages being reported, so better to reveal the initial message

See merge request tikiwiki/tiki!9782


(cherry picked from commit 6ab45725192b7f2d6d011afc9212290aef77aae5)

19c44d9e [FIX] console: If TikiLib fails to load in tiki-setup.php for some reason,...

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

(cherry picked from commit ed7359a929daadbd55085145ff5a6fac7645e8e8)

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

(cherry picked from commit 95b2fc974376e784375b29064c692a5490960153)

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


1 changed file:

- console.php


Changes:

=====================================
console.php
=====================================
@@ -140,8 +140,8 @@ function custom_error_handler($number, $message, $file, $line): void
 
     if ($error_is_enabled) {
         $exception = new ErrorException($message, 0, $number, $file, $line);
-        // Check if autoloader is available, then call TikiLib
-        if ($GLOBALS['_autoloaderIsAvailable']) {
+        // Check if autoloader is available, then call TikiLib if it has loaded properly
+        if ($GLOBALS['_autoloaderIsAvailable'] && is_callable('TikiLib::lib')) {
             TikiLib::lib('errortracking')->captureException($exception);
         }
         // Fatal Errors



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

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