Project

General

Profile

Actions

Bug #15231

closed

No error page shown when using simulatestatic even if alias doesn't exist

Added by Carlos Chiari over 18 years ago. Updated over 17 years ago.

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

0%

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

Description

INSTALL tool enables the configuratioin of error handling if requested page doesn't exist.

Yet, the mechanism at class.tslib_fe.php doesn't recognize this as an error (maybe feature?) if an unexisting alias is used.

If the $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] is set, I would expect that TYPO3 recognizes that I do not want bogus aliases rendering my root page.

Modifiying two functions at class.tslib_fe.php would enable this behavior:

function fetch_the_id()

and

function checkAndSetAlias().

I attach a file with the modifications.

Maybe it could inserted into core, as there are many extensions out there already extending tslib_fe....
(issue imported from #M1915)


Files

tslib_fe.modifiedfunctions.php (3.59 KB) tslib_fe.modifiedfunctions.php Administrator Admin, 2005-11-23 15:10
class.tslib_fe.php.simulatestatic.patch (280 Bytes) class.tslib_fe.php.simulatestatic.patch Administrator Admin, 2005-11-29 04:32

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #15130: Error 404: Page not found handling not working correctly with SimulateStaticDocuments=1Closed2005-10-20

Actions
Actions #1

Updated by Alexander Maringer over 18 years ago

Including the changes would be very appreciated for any people using error handling with simulate static documents.

Actions #2

Updated by Sebastian Kurfuerst over 18 years ago

Hi,
could you please submit it as a unified patch created with the "diff" tool? That would be of great help.
Greets, Sebastian

Actions #3

Updated by Alexander Maringer over 18 years ago

Here comes the patch. Should there be also a patch which make domain-specific error pages available?? Thanks for an answer

Actions #4

Updated by Michael Scharkow over 18 years ago

The diff seems to be reversed, and the error message is a little verbose, but it seems to work well.

Actions #5

Updated by Michael Scharkow over 18 years ago

fixed in CVS.

Actions

Also available in: Atom PDF