[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 | <69ba8fe78930_3b18d2b048986@gitlab-sidekiq-low-urgency-cpu-bound-v2-7845844f5c-r72xt.mail> |
Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
6ab45725 by Jonny Bradley at 2026-03-18T11:36:22+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
- - - - -
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/6ab45725192b7f2d6d011afc9212290aef77aae5
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/6ab45725192b7f2d6d011afc9212290aef77aae5
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