[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 | <69bd27ffc9244_3b18d33c29bc@gitlab-sidekiq-low-urgency-cpu-bound-v2-85bc8d8d44-pjcns.mail> |
Jonny Bradley pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki Commits: 95b2fc97 by Jonny Bradley at 2026-03-20T10:56:59+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]> - - - - - 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/95b2fc974376e784375b29064c692a5490960153 -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/95b2fc974376e784375b29064c692a5490960153 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