Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7423

Frontend does not display PHP errors that happen near the end of script execution

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.2.0rc2
    • Frontend (F)

      Zabbix frontend uses a custom error handler to catch all of the error messages and to display them in a pretty way. The error messages are caught and stored in a global variable and displayed using the show_messages() call in page_footer.php:54. The problem is that this is the last call to show_messages(), and errors that happen after it or during the shutdown of the script will not be displayed. They custom error handler will also prevent them from being logged in the PHP error file.

      One of the possible solutions is to restore the original PHP error handler after the last call to show_messages() to display and log all of these errors in a default way. It may also be possible to display these errors in a user-friendly way using register_shutdown_function().

            Unassigned Unassigned
            jelisejev Pavels Jelisejevs (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: