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 #1

Updated by Georg Ringer about 4 years ago

  • Related to Bug #82863: ResourceCompressor can't deal with paths relative to docroot added
Actions #2

Updated by Benni Mack about 4 years ago

  • Related to Bug #89124: Template TypoScript editor broken and not working added
Actions #3

Updated by Georg Ringer about 4 years ago

  • Related to Bug #88184: Backend JS and CSS is not compressed with Viewhelper f:be.container and TYPO3 in subdirectory added
Actions #4

Updated by Georg Ringer about 4 years ago

  • Related to Bug #85162: form.css compression in BE not working when TYPO3 is in a subfolder added
Actions #5

Updated by Benni Mack about 4 years ago

Can you give us more information about your server setup? Apache2 / PHP-FPM or built-in etc?

Actions #6

Updated by Bastian Stargazer about 4 years ago

Benni Mack wrote:

Can you give us more information about your server setup? Apache2 / PHP-FPM or built-in etc?

Server API: Apache 2.0 Handler
Apache Version: Apache/2.4.29 (Ubuntu)
PHP Version: 7.2.28-3+ubuntu18.04.1+deb.sury.org+1

Does it help?

Actions #7

Updated by Markus Klein about 4 years ago

  • Target version deleted (10 LTS)

Like you wrote in #89124, do you access the instance with the IP here as well?

Actions #8

Updated by Markus Klein about 4 years ago

  • Status changed from New to Needs Feedback
Actions #9

Updated by Markus Klein about 4 years ago

  • Category changed from Backend User Interface to Backend API
  • Status changed from Needs Feedback to Accepted
  • Priority changed from Should have to Must have
Actions #10

Updated by Markus Klein about 4 years ago

I can reproduce the problem with the following setup:

DNS: localhost
Core in subfolder "t3"
BE|debug = false
SYS|displayErrors = 1
SYS|exceptionalErrors = 12290,
ApplicationContext = Development
Actions #11

Updated by Gerrit Code Review about 4 years ago

  • Status changed from Accepted to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #12

Updated by Gerrit Code Review about 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #13

Updated by Gerrit Code Review about 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #14

Updated by Gerrit Code Review about 4 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #15

Updated by Riccardo De Contardi about 4 years ago

Is this related? #89421

Actions #16

Updated by Markus Klein about 4 years ago

  • Has duplicate Bug #89421: Installation in Subfolder: realtive URls added
Actions #17

Updated by Markus Klein about 4 years ago

Thanks Riccardo. Done.

Actions #18

Updated by Gerrit Code Review about 4 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #19

Updated by Gerrit Code Review about 4 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #20

Updated by Gerrit Code Review about 4 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #21

Updated by Gerrit Code Review about 4 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #22

Updated by Gerrit Code Review about 4 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #23

Updated by Gerrit Code Review about 4 years ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #24

Updated by Gerrit Code Review about 4 years ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #25

Updated by Gerrit Code Review about 4 years ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #26

Updated by Gerrit Code Review about 4 years ago

Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63714

Actions #27

Updated by Gerrit Code Review about 4 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63773

Actions #28

Updated by Gerrit Code Review about 4 years ago

Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63773

Actions #29

Updated by Gerrit Code Review about 4 years ago

Patch set 3 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63773

Actions #30

Updated by Markus Klein about 4 years ago

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

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions #32

Updated by JF Belsile over 2 years ago

  • PHP Version changed from 7.2 to 7.4
  • Is Regression set to Yes

Look like it's back again... :-(

Version 10.4.21, same thing as described here. Must be in debug mode for the BE to working properly. Otherwise I get

file_get_contents(/var/www/html/_instance/public/typo3//MYSITENAME/typo3/sysext/form/Resources/Public/Css/form.css)

Actions #33

Updated by Markus Klein over 2 years ago

Please create a new ticket and only reference this one. Thanks.

Actions #34

Updated by Markus Klein over 1 year ago

  • Related to Bug #95848: ResourceCompressor can't deal with paths relative to docroot (Reoccurrence) added
Actions

Also available in: Atom PDF