Project

General

Profile

Actions

Bug #16335

closed

t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') delivers wrong value in Backend

Added by Andreas Wolf over 18 years ago. Updated over 13 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When in backend mode, t3lib_div::getIndpEnv() delivers a wrong value when asked for 'TYPO3_DOCUMENT_ROOT'. When the root of your TYPO3-Installation is e.g. located in /srv/www/htdocs/t3inst/, it returns /srv/www/htdocs/t3inst/typo3/.
I suppose this happens because getIndpEnv uses SCRIPT_FILENAME for getting the document-root. When in backend-mode, this path is {real doc-root}/typo3/xyz.php, so the

Additionally, the value is always wrong when the whole TYPO3-dir is a symlink to another location, e.g. when /srv/www/htdocs/t3inst/ points to /srv/www/t3inst-real/.

(issue imported from #M3819)


Files

3819_v2.diff (2.87 KB) 3819_v2.diff Administrator Admin, 2010-08-08 19:29

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #14410: RealURL does not work, because TYPO3_SITE_URL value is wrongClosed2004-11-24

Actions
Related to TYPO3 Core - Bug #17878: mod_rewrite redirect to subdirectory + realurl = page not foundClosed2007-12-03

Actions
Related to TYPO3 Core - Bug #23262: unittest in tests/t3lib/cache/backend/t3lib_cache_backend_filebackendTest.php fails if installed in subdir of document_rootClosedChristian Kuhn2010-07-24

Actions
Has duplicate TYPO3 Core - Bug #21415: Fix failing unit test in t3lib_cache_backend_FileBackendTestCaseClosedChristian Kuhn2009-11-01

Actions
Actions

Also available in: Atom PDF