Bug #25725
closed
pageNotFound_handling error with relative paths
Added by Kurt Kunig over 13 years ago.
Updated about 6 years ago.
Description
The "pageNotFound_handling" shows an empty page instead of the dedicated error404-page:
The page (e.g.) http://www.kupix.de/error404.html is existing!
Following the inputs into the localconf.php and the reaction of the system (my description below)!
1.)
$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'error404.html';
Error-message: Server not found
The server www.kupix.deerror404.html could not be found.
(Here you see a missing slash between the TLD and the page-name)
2.)
$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = '/error404.html';
No error message, only a white and empty page
3.)
$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'http://www.kupix.de/error404.html';
No error message, only a white and empty page
This happens in TYPO3 V4.4.6 and also in V4.5.2
Our TYPO3-Hoster told me that they found an internal server problem.
This problem was fixed by the hoster and all error404-pages now come up again if an unknown page was addressed.
Sorry for this ticket!
Kind regards
Kurt
- Status changed from New to Closed
We have to reopen this one, as point 1 is still valid.
Assume this non-existent URL http://10.4.5.6/theurl/index.php?id=6566.
Setting $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'index.php?id=errorpage' leads to a Location-Header containing:
Location: http://10.4.5.6index.php?id=errorpage
This is simply bullshit!
Problem is, that in tslib_fe a check, whether the given url is relative, is missing.
- Status changed from Closed to Under Review
- Subject changed from $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] doesn't work!? to pageNotFound_handling error with relative paths
Patch set 2 of change I664250d34b05a26bdaf1e2a839027b80c1e4f607 has been pushed to the review server.
It is available at http://review.typo3.org/1712
Patch set 1 of change Ibf19841a984aaef863cdb72392b09b631e4f39e5 has been pushed to the review server.
It is available at http://review.typo3.org/2281
Patch set 1 of change Idd8e275ac63af30b67fc67dab1aeb7aeaa4d1b14 has been pushed to the review server.
It is available at http://review.typo3.org/2282
Patch set 2 of change Idd8e275ac63af30b67fc67dab1aeb7aeaa4d1b14 has been pushed to the review server.
It is available at http://review.typo3.org/2282
Patch set 2 of change Ibf19841a984aaef863cdb72392b09b631e4f39e5 has been pushed to the review server.
It is available at http://review.typo3.org/2281
Patch set 3 of change I664250d34b05a26bdaf1e2a839027b80c1e4f607 has been pushed to the review server.
It is available at http://review.typo3.org/1712
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF