Project

General

Profile

Actions

Bug #16112

closed

HTML-Source in Error-Pages not valid (FE)

Added by Toralf Lenz over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Content Rendering
Target version:
-
Start date:
2006-05-02
Due date:
% Done:

0%

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

Description

e. g. "Error. Reason: Page is not available in the requested language."

- missing <!DOCTYPE> declaration
- various errors in source (e. g. <td style="text-align:center";>)

(issue imported from #M3391)

Actions #1

Updated by Ernesto Baschny over 18 years ago

The referred page is being generated by:

t3lib/class.t3lib_timetrack.php::debug_typo3PrintError

Do you have a cleaner suggestion on how this could look? If so, please attach an example to this request.

I think best would be to have a very good default but have this error output configurable (through TYPO3CONF) from an external template with markers (###BASEURL###, ###HEADER###, ###TEXT###).

Actions #2

Updated by Toralf Lenz over 18 years ago

A external template would be fine! Primary I would correct the errors and insert the DOCTYPE. DOCTYPE should be PageTS "config.doctype".

Actions #3

Updated by Martin Kutschker over 18 years ago

"Nice" HTML markup is fine, but is validity really an issue for debugging code?

Actions #4

Updated by Ernesto Baschny over 18 years ago

@Martin,

this is not "debugging code", this is the error page that TYPO3 generates in the FE (e.g. the "404" or the RealURL error message if something is wrong in the path).

As this might be shown to anonymous users of your site, I would find it cool if the site admin could design his own error page or if this would at least be consistently styled.

Actions #5

Updated by Toralf Lenz over 18 years ago

@Ernesto,

this is exactly what I mean! A page in the FE should be valid and editable by the admin (f. e.: styleguide of the page).

Actions #6

Updated by Martin Kutschker over 18 years ago

Ah, now I see.

Toralf is right, the markup should be fixed. But IMHO it's enough to produce valid stuff (no real need to make it configurable, but if it's easy fine).

Ernesto is also right when he asks for a customization. Please file a bug (type "feature").

Actions #7

Updated by Toralf Lenz over 18 years ago

@Ernesto,

write you the new feature-wish to the bugtracker?

Actions #8

Updated by Ernesto Baschny over 18 years ago

Patch submitted to the core-list.

@Toralf, if you have some time, please post a new feature request to the bug-tracker. Thanks for your help!

Actions #9

Updated by Ernesto Baschny over 18 years ago

Commited to CVS (HEAD and 4_0).

Actions

Also available in: Atom PDF