Bug #21570

Debug output destroys BE HTML

Added by Steffen Kamper about 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-11-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

if you use t3lib_div::debug in BE the HTML is corrupted, docheader not clickable etc. It's very weird.

Reason is that t3lib_div::debug use "echo" which doesn't respect any output.

Solution:
use flash messages. Ensure that the flag "showFlashMessage" is respected, that modern modules with templates render their flashmessage in modulebody, that old modules get the flash messages too, that FE output shows debug too.

It also respect all settings and debug handlers, as t3lib_div::debug is used as "last" output of debug

(issue imported from #M12614)


Files

12614-debug_flashmessages.diff (4.41 KB) 12614-debug_flashmessages.diff Administrator Admin, 2009-11-16 16:51
12614-t3uxw09.diff (12.5 KB) 12614-t3uxw09.diff Administrator Admin, 2009-11-17 16:56
12614-t3uxw09-v2.diff (12.8 KB) 12614-t3uxw09-v2.diff Administrator Admin, 2009-11-17 17:23

Related issues

Related to TYPO3 Core - Bug #21557: Use flash messages to show SQL debug errors in the backendClosedSteffen Kamper2009-11-15

Actions
Related to TYPO3 Core - Bug #18734: SQL debug output is not shown in the BackendClosedSteffen Kamper2008-05-01

Actions
Related to TYPO3 Core - Bug #18220: typo3-docheader not visible when error occuresClosedSteffen Kamper2008-02-15

Actions
Has duplicate TYPO3 Core - Bug #18685: New Backend UI relocates save save/close buttons in (TV) Page view if an PHP error / warning occursClosedChristian Kuhn2008-04-24

Actions
#1

Updated by Ivan Dharma Kartolo about 11 years ago

Hi Steffen,

it's related to 12598.
Attached is my patch for this problem, #21557 and general debug output in Frontend. It's made during T3UXW09. Please review it.

Ivan

#2

Updated by Ivan Dharma Kartolo about 11 years ago

the last one is kinda messed up. This is the fixed one. (12614-t3uxw09-v2.diff)

Thanks,

#3

Updated by Steffen Kamper almost 11 years ago

REMINDER for myself

#4

Updated by Benni Mack over 10 years ago

solved with #18734

#5

Updated by Susanne Moog over 9 years ago

  • Target version deleted (4.4.0)

Also available in: Atom PDF