Skip to content

Suppress deprecated and notice-level warnings from UI output#1700

Open
LogicVortex123 wants to merge 1 commit intoLibreHealthIO:masterfrom
LogicVortex123:fix-hide-deprecated-warnings
Open

Suppress deprecated and notice-level warnings from UI output#1700
LogicVortex123 wants to merge 1 commit intoLibreHealthIO:masterfrom
LogicVortex123:fix-hide-deprecated-warnings

Conversation

@LogicVortex123
Copy link
Copy Markdown

@LogicVortex123 LogicVortex123 commented Mar 4, 2026

PR: Clean UI by Suppressing Deprecated & Notice Warnings

This PR enhances the user interface by hiding PHP E_DEPRECATED and E_NOTICE warnings that clutter the UI, while keeping fatal and critical errors visible for debugging. Users now see a cleaner, more professional interface without affecting application functionality.

Changes Made:

  • Updated global error reporting to exclude deprecated and notice-level warnings
  • Disabled on-screen display of non-critical warnings using ini_set('display_errors', 'Off')

Motivation:
Addresses Issue #1660 by preventing non-actionable warnings from distracting users, improving usability and presentation without altering backend logic.

Scope & Safety:

  • UI-only improvement
  • No functional, database, or schema changes
  • Low-risk; critical errors remain unaffected

Testing:

  • Verified locally that deprecated and notice-level PHP warnings are not rendered during application boot and installer flow on localhost.

@LogicVortex123
Copy link
Copy Markdown
Author

Hi, I’d appreciate a review when possible. Happy to make any changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant