Skip to content

[ENH] Improve Error Handling in Tiki: Ensure Reporting to Local PHP Logs Alongside External Trackers

Improve error handling in Tiki by ensuring that errors are always logged to local PHP logs, even when external trackers like GlitchTip or Sentry are configured. The update modifies how error levels and display settings are handled to prevent overriding PHP's native error logging while maintaining Tiki's control over what errors are displayed in the UI.

Key Features:

  • Preserve PHP Error Logging: Stopped overriding PHP's error level with Tiki's settings, ensuring errors are logged according to the server's PHP configuration.
  • Control Error Display in UI: Tiki's error level setting now only controls the display of errors in the user interface, without affecting the underlying logging to local error logs or external services.
  • Admin Error Display Control: If the setting to display errors only for admins is enabled, display_errors is automatically set to off for non-admin users.
  • Unified Error Reporting: Errors will be logged to both the local system (PHP logs) and external trackers like Sentry, regardless of Tiki's UI settings for error visibility.

Ref: https://avan.tech/item100484

Merge request reports

Loading