Project

General

Profile

Actions

Bug #14243

closed

fileadmin links to files are missing part of path

Added by old_mi6 over 20 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend API
Target version:
-
Start date:
2004-07-16
Due date:
% Done:

0%

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

Description

when i click on a file stored anywhere in the fileadmin directory, the link to open/save it is missing the typo3-part of the path: if i install a version of typo3 3.61 or later (any package), and the typo3 root is
/[packagename], the link to the file is "[packagename]/fileadmin/file_xx.xxx" instead of "[packagename]/typo3/fileadmin/file_xx.xxx" as it should be (where the file really resides).

(issue imported from #M227)


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #14285: Images in fileadmin are not displayed, when using typo3 inside public_html directoryClosed2004-08-25

Actions
Has duplicate TYPO3 Core - Bug #14563: backend file list fileadmin links to wrong placeClosed2005-02-21

Actions
Has duplicate TYPO3 Core - Bug #19842: fileadmin links to files are missing part of pathClosed2009-01-16

Actions
Actions #1

Updated by Karsten Dambekalns over 20 years ago

Why do you have the fileadmin under the typo3 folder, is the question. Or did I miss something?

Actions #2

Updated by Ingmar Schlecht over 20 years ago

Yes, this is in fact not a bug.
The fileadmin folder really is at [packagename]/fileadmin and not [packagename]/typo3/fileadmin.

Actions #3

Updated by old_mi6 over 20 years ago

i actually misspelled the link typo3 generates:
if typo3 is installed under "/htdocs/TYPO3/[packagename]/", the link to a file would be "htdocs/[packagename]/fileadmin/file.xxx" instead of "htdocs//TYPO3/[packagename]/fileadmin/file.xxx".
of course, the fileadmin directory which i had referred to resides in the package's root folder.

Actions #4

Updated by Michael Scharkow almost 20 years ago

I can still reproduce this with 3.7, and in a situation described in #0000306:

If the T3 installation is in some subdir of the webspace, then t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') does not return the proper dir, but one level above, e.g. my site is located here: /home/www/box/public_html/beta, TYPO3_DOC_ROOT returns only /home/www/box/public_html

To make things worse, the url returned by linkWrapFile() is /beta/fileadmin/somedir/somefile.txt which does work if public_html is used for a proper (sub-)domain, but not if it user webspace, i.e. mydomain.com/~box

One solution would be to fix t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') AND prefix the path with t3lib_div::getIndpEnv('TYPO3_SITE_URL')

Seems like it is not trivial, discuss it on -dev?

Actions #5

Updated by Ingo Renner over 16 years ago

could not be reproduced during Bug Day 07/2008

Actions #6

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF