View Issue Details

IDProjectCategoryView StatusLast Update
0035207mantisbtuipublic2025-03-15 10:31
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Target Version2.28.0Fixed in Version2.28.0 
Summary0035207: 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:

  • warnings messages appear below the top navbar
  • the sidebar and main div are shifted down
  • font size is altered

The error message display should be delayed, similar to what we already do for deprecation warnings.

TagsNo tags attached.
Attached Files
image.png (204,815 bytes)   
image.png (204,815 bytes)   

Relationships

related to 0035208 resolveddregad Improve error handling for invalid plugins 
has duplicate 0024175 closeddregad The PHP errors break styling 
related to 0035552 resolveddregad Inline error messages are sometimes displayed behind the navbar 
related to 0035583 resolveddregad Delayed inline errors are not printed on login page 

Activities

dregad

dregad

2024-12-27 20:39

developer   ~0069620

PR https://github.com/mantisbt/mantisbt/pull/2066

raspopov

raspopov

2025-02-22 03:50

reporter   ~0069897

@dregad The 0024175 is the same?

Related Changesets

MantisBT: master ebcd204f

2024-12-27 18:49

dregad


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