Project

General

Profile

Actions

Bug #82863

closed

ResourceCompressor can't deal with paths relative to docroot

Added by Markus Klein over 6 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend API
Target version:
-
Start date:
2017-10-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Core: Error handler (BE): PHP Warning: file_get_contents(/var/www/html/<thesite>/typo3/typo3conf/ext/rtehtmlarea/Resources/Public/Css/Skin/htmlarea.css): failed to open stream: No such file or directory in /<path_to_source>/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 359 

This bug seems to be a resurrection of #78803, which was fixed a year ago.

Again, setting $['BE']['compressionLevel'] = 5; causes the issue.

Tested with ext:rtehtmlarea in latest core v8.7.


Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #78803: ResourceCompressor can't deal with paths relative to docrootClosedMarkus Klein2016-11-25

Actions
Related to TYPO3 Core - Bug #90689: ResourceCompressor can't deal with paths relative to docroot (Reoccurrence)Closed2020-03-09

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

Actions
Actions #1

Updated by Markus Klein over 6 years ago

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

Updated by Markus Klein over 6 years ago

  • Description updated (diff)
Actions #3

Updated by Gerrit Code Review over 6 years ago

  • Status changed from Accepted to Under Review

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

Actions #4

Updated by Benni Mack over 6 years ago

  • Sprint Focus set to On Location Sprint
Actions #5

Updated by Gerrit Code Review over 6 years ago

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/54481

Actions #6

Updated by Gerrit Code Review over 6 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/54481

Actions #7

Updated by Gerrit Code Review over 6 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/54481

Actions #8

Updated by Gerrit Code Review over 6 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/54481

Actions #9

Updated by Gerrit Code Review over 6 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/54481

Actions #10

Updated by Gerrit Code Review over 6 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54880

Actions #11

Updated by Markus Klein over 6 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions #13

Updated by Bastian Stargazer about 4 years ago

  • Target version deleted (next-patchlevel)
  • Start date changed from 2017-10-26 to 2020-03-05
  • % Done changed from 100 to 0
  • TYPO3 Version changed from 8 to 10
  • PHP Version set to 7.2
  • Sprint Focus deleted (On Location Sprint)

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)

Edit:
- Application context has to be set to Development, as in Production it seems some JS files cant be loaded which breaks the t3editor (also the Dashboard is not working than).

Actions #14

Updated by Markus Klein about 4 years ago

  • Start date changed from 2020-03-05 to 2017-10-26
  • % Done changed from 0 to 100
  • TYPO3 Version changed from 10 to 8

@Bastian: Please open a new issue for your new bug report and set a relation to this old one!

Actions #15

Updated by Georg Ringer about 4 years ago

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

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