View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035207 | mantisbt | ui | public | 2024-12-27 17:37 | 2025-03-15 10:31 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Target Version | 2.28.0 | Fixed in Version | 2.28.0 | ||
Summary | 0035207: Early inline warnings mess up with page layout | ||||
Description | Warnings triggered by MantisBT core before the page header has been printed cause the layout to be broken if warnings are configured to be displayed inline, as shown in the screenshot:
The error message display should be delayed, similar to what we already do for deprecation warnings. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
related to | 0035208 | resolved | dregad | Improve error handling for invalid plugins |
has duplicate | 0024175 | closed | dregad | The PHP errors break styling |
related to | 0035552 | resolved | dregad | Inline error messages are sometimes displayed behind the navbar |
related to | 0035583 | resolved | dregad | Delayed inline errors are not printed on login page |
MantisBT: master ebcd204f 2024-12-27 18:49 Details Diff |
Allow delaying of warning messages Warnings triggered by MantisBT core before the page header has been printed cause the layout to be broken if warnings are configured to be displayed inline. Introduce a new error_delay_reporting() function, which allows to selectively enable the delayed printing of warnings (by defining the DELAY_INLINE_ERROR_REPORTING constant), and use it in event_hook() and in the error_handler() for the E_USER_DEPRECATED error type. Adapt the error handler to delay inline warnings when the constant is defined. Fixes 0035207 |
Affected Issues 0035207 |
|
mod - core/error_api.php | Diff File | ||
mod - core/event_api.php | Diff File |