Bug #82863
closedResourceCompressor can't deal with paths relative to docroot
Added by Markus Klein over 6 years ago. Updated about 4 years ago.
100%
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.
Updated by Markus Klein over 6 years ago
- Related to Bug #78803: ResourceCompressor can't deal with paths relative to docroot added
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
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
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
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
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
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
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
Updated by Markus Klein over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c33288e5a5ec913e761b5f59dea8068b0a626873.
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).
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!
Updated by Georg Ringer about 4 years ago
- Related to Bug #90689: ResourceCompressor can't deal with paths relative to docroot (Reoccurrence) added
Updated by Markus Klein almost 2 years ago
- Related to Bug #95848: ResourceCompressor can't deal with paths relative to docroot (Reoccurrence) added