Bug #25725
closedpageNotFound_handling error with relative paths
100%
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
Updated by Kurt Kunig over 13 years ago
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
Updated by Markus Klein over 13 years ago
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.
Updated by Oliver Hader over 13 years ago
- Status changed from Closed to Under Review
Updated by Oliver Hader over 13 years ago
Fix ready to be reviewed: https://review.typo3.org/#change,1712
Updated by Oliver Hader over 13 years ago
- Subject changed from $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] doesn't work!? to pageNotFound_handling error with relative paths
Updated by Mr. Hudson over 13 years ago
Patch set 2 of change I664250d34b05a26bdaf1e2a839027b80c1e4f607 has been pushed to the review server.
It is available at http://review.typo3.org/1712
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change Ibf19841a984aaef863cdb72392b09b631e4f39e5 has been pushed to the review server.
It is available at http://review.typo3.org/2281
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change Idd8e275ac63af30b67fc67dab1aeb7aeaa4d1b14 has been pushed to the review server.
It is available at http://review.typo3.org/2282
Updated by Mr. Hudson over 13 years ago
Patch set 2 of change Idd8e275ac63af30b67fc67dab1aeb7aeaa4d1b14 has been pushed to the review server.
It is available at http://review.typo3.org/2282
Updated by Mr. Hudson over 13 years ago
Patch set 2 of change Ibf19841a984aaef863cdb72392b09b631e4f39e5 has been pushed to the review server.
It is available at http://review.typo3.org/2281
Updated by Mr. Hudson over 13 years ago
Patch set 3 of change I664250d34b05a26bdaf1e2a839027b80c1e4f607 has been pushed to the review server.
It is available at http://review.typo3.org/1712
Updated by Markus Klein over 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9ac4d955d3f7e1749d871ca07dc04619fe603767.