Feature #62089

error message: Wrong symbolic link to index.php.

Added by Franz Holzinger 10 months ago. Updated 9 months ago.

Status:Resolved Start date:2014-10-07
Priority:Could have Due date:
Assigned To:- % Done:

100%

Category:- Spent time: -
Target version:7.0
PHP Version:5.5 Sprint Focus:
Complexity:

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.


Related issues

related to Core - Bug #62074: Calculated absolute path to tslib directory does not exist. Closed 2014-10-07

Associated revisions

Revision d295ef77
Added by Markus Klein 9 months ago

[TASK] Inform about invalid index.php symlink

Add a verbose message to inform the user about a possibly
wrong index.php symlink in case a wrong folder structure
is detected.

Resolves: #62089
Releases: master, 6.2
Change-Id: I9f7e70c2144fe2385751764f9d3abe32f199c030
Reviewed-on: http://review.typo3.org/33197
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>
Reviewed-by: Anja Leichsenring <>
Tested-by: Anja Leichsenring <>

Revision 351d55f5
Added by Markus Klein 9 months ago

[TASK] Inform about invalid index.php symlink

Add a verbose message to inform the user about a possibly
wrong index.php symlink in case a wrong folder structure
is detected.

Resolves: #62089
Releases: master, 6.2
Change-Id: I9f7e70c2144fe2385751764f9d3abe32f199c030
Reviewed-on: http://review.typo3.org/34339
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>
Reviewed-by: Helmut Hummel <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

History

#1 Updated by Markus Klein 10 months 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.

#2 Updated by Gerrit Code Review 10 months 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

#3 Updated by Markus Klein 10 months 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.

#4 Updated by Gerrit Code Review 10 months 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

#5 Updated by Gerrit Code Review 9 months 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

#6 Updated by Gerrit Code Review 9 months 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

#7 Updated by Gerrit Code Review 9 months 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

#8 Updated by Gerrit Code Review 9 months 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

#9 Updated by Markus Klein 9 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#10 Updated by Gerrit Code Review 9 months 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

#11 Updated by Gerrit Code Review 9 months 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

#12 Updated by Markus Klein 9 months ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF