Project

General

Profile

Actions

Bug #90689

closed

ResourceCompressor can't deal with paths relative to docroot (Reoccurrence)

Added by Bastian Stargazer about 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2020-03-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

In 2017 there was this bug #82863, which was fixed in v8. It seems this issue is alive again in v10.3. Working with installations in relative paths during development is no problem with TYPO3 v7, v8 and v9.

Core: Error handler (BE): PHP Warning: file_get_contents(/webserver/customer/playground-t3v10test/typo3//customer/playground-t3v10test/typo3/sysext/dashboard/Resources/Public/Css/dashboard.css): failed to open stream: No such file or directory in /webserver/libraries/typo3_src-10.3.0/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 281

Watch the double occurring part /customer/playground-t3v10test/typo3/ which is equal to the relative part of the URL: http://192.168.1.20/customer/playground-t3v10test/typo3/

Folder structure:

Webroot
- customer
  - playground-t3v10test
    - typo3_src => ../../libraries/typo3_src-10.3.0
    - typo3 => typo3_src/typo3
- libraries
  - typo3_src-9.5.13
  - typo3_src-10.3.0

This error is also thrown for several other backend files:

Core: Error handler (BE): PHP Warning: file_get_contents(/webserver/customer/playground-t3v10test/typo3//customer/playground-t3v10test/typo3/sysext/t3editor//Resources/Public/Css/t3editor.css): failed to open stream: No such file or directory in /webserver/libraries/typo3_src-10.3.0/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 281

Core: Error handler (BE): PHP Warning: file_get_contents(/webserver/customer/playground-t3v10test/typo3//customer/playground-t3v10test/typo3/sysext/t3editor/Resources/Public/JavaScript/Contrib/cm/lib/codemirror.css): failed to open stream: No such file or directory in /webserver/libraries/typo3_src-10.3.0/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 281

Core: Error handler (BE): PHP Warning: file_get_contents(/webserver/customer/playground-t3v10test/typo3//customer/playground-t3v10test/typo3/sysext/viewpage/Resources/Public/Css/ui-lightness/jquery-ui-1.10.3.custom.min.css): failed to open stream: No such file or directory in /webserver/libraries/typo3_src-10.3.0/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 281

System:
- Ubuntu 18.04
- PHP 7.2
- Plain new TYPO3 v10.3 installation by ZIP file (symlinked)
- TYPO3 10.3.0 - Application context has to be set to Development, as in Production it seems some files cant be loaded which breaks the t3editor (also the Dashboard is not working than).


Related issues 6 (1 open5 closed)

Related to TYPO3 Core - Bug #82863: ResourceCompressor can't deal with paths relative to docrootClosedMarkus Klein2017-10-26

Actions
Related to TYPO3 Core - Bug #89124: Template TypoScript editor broken and not workingClosed2019-09-10

Actions
Related to TYPO3 Core - Bug #88184: Backend JS and CSS is not compressed with Viewhelper f:be.container and TYPO3 in subdirectoryClosed2019-04-23

Actions
Related to TYPO3 Core - Bug #85162: form.css compression in BE not working when TYPO3 is in a subfolderClosed2018-06-06

Actions
Related to TYPO3 Core - Bug #95848: ResourceCompressor can't deal with paths relative to docroot (Reoccurrence)Needs Feedback2021-11-02

Actions
Has duplicate TYPO3 Core - Bug #89421: Installation in Subfolder: realtive URlsClosed2019-10-15

Actions
Actions

Also available in: Atom PDF