Feature #62089
closederror message: Wrong symbolic link to index.php.
100%
Description
TYPO3 gives a wrong error message in the Front End if you make an error in the link of index.php.
Wrong link:
index.php -> typo3/index.php
instead of correct
index.php -> typo3_src/index.php
(see #62074)
Write a better error message:
Wrong symbolic link to index.php.
Updated by Markus Klein about 10 years ago
Background info
The typo3/index.php calls typo3/init.php which calls the bootstrap->baseSetup with parameter 'typo3/' as relative path.
This leads to the problem that getPathSiteByRelativePathPart() calculates the wrong path for the site as it removes the relative path from the current script path.
A possible way to check if the path is valid, would be to check in definePaths() whether PATH_site . 'index.php'
does exist.
Updated by Gerrit Code Review about 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33197
Updated by Markus Klein about 10 years ago
One more note: The Install Tool already detects if the index.php is a wrong symlink, but that does not help with the initial installation, if you access it with the website url only.
Example for an initial setup:
# ll FIRST_INSTALL index.php -> typo3/index.php typo3 -> typo3_src/typo3 typo3_src -> ../typo3_23423
If the user now accesses http://example.com/ an error will appear as the bootstrap is triggered, which fails and therefore does not redirect to the Install Tool where this misconfiguration would have been reported.
If the users accesses http://example.com/typo3/install/ the Install Tool will come up and show the misconfiguration.
So we only need to handle the first case here.
Updated by Gerrit Code Review about 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33197
Updated by Gerrit Code Review about 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33197
Updated by Gerrit Code Review about 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33197
Updated by Gerrit Code Review about 10 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33197
Updated by Gerrit Code Review about 10 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33197
Updated by Markus Klein about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d295ef77540c996a0bf79fc2defba539456da3c4.
Updated by Gerrit Code Review about 10 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34339
Updated by Gerrit Code Review about 10 years ago
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34339
Updated by Markus Klein about 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset 351d55f5fdb96d25497a3ff07dd3d750a59cc75e.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed