Project

General

Profile

Actions

Bug #60224

closed

Package Paths should be relative to TYPO3_site

Added by Robert Vock almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2014-07-10
Due date:
% Done:

0%

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

Description

Ok, this one is quite complicated to explain.

In short: The Backend does not work if you use multiple domains with virtual hosts (see screenshot). Using paths relative to TYPO3_site for packages would fix this bug.

I have the following Apache Setup for virtual hosts:

<VirtualHost *:80>
  ServerName local-dev
  ServerAlias *.dev
  VirtualDocumentRoot /var/www/%-2+
</VirtualHost>

This means, when I visit www.example.de.dev Apache looks for files in /var/www/www.example.de/* and when I visit www.example.com it looks in /var/www/www.example.com/*

(Both folders are symlinks to the same folder)

This makes it possible to easily work on different domains in a local setup.

When I now visit the backend via www.example.de/typo3/ the package manager sees /var/www/www.example.de as Document Root and uses it as packagePath.

This information is written to the Cache (cache_core/PackageObjects_HASH)

Then I visit the backend via www.example.com/typo3/. The cache is read and the package paths are /var/www/www.example.de/typo3/sysext/t3skin/ instead of example.com.

This leads to incorrect links to stylesheets (see screenshot).

Using relative paths in the cache would fix this problem. Another fix could be to use different caches based on the hostname or document root.


Files

broken-backend.png (64.9 KB) broken-backend.png Robert Vock, 2014-07-10 10:30
incorrect-includes.png (109 KB) incorrect-includes.png Robert Vock, 2014-07-10 10:30

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #58288: Cache that write absolute paths needs PATH_site in cache identifierClosed2014-04-28

Actions
Actions #1

Updated by Markus Klein almost 10 years ago

  • Status changed from New to Accepted

I'm rather sure this is a duplicate, but I can't find it atm.

Actions #2

Updated by Helmut Hummel almost 10 years ago

  • Status changed from Accepted to Closed

Thanks for the report. I will close this as duplicate. Please comment and watch #58288

Actions

Also available in: Atom PDF