Bug #90689
closedResourceCompressor can't deal with paths relative to docroot (Reoccurrence)
100%
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).
Updated by Georg Ringer about 5 years ago
- Related to Bug #82863: ResourceCompressor can't deal with paths relative to docroot added
Updated by Benni Mack about 5 years ago
- Related to Bug #89124: Template TypoScript editor broken and not working added
Updated by Georg Ringer about 5 years ago
- Related to Bug #88184: Backend JS and CSS is not compressed with Viewhelper f:be.container and TYPO3 in subdirectory added
Updated by Georg Ringer about 5 years ago
- Related to Bug #85162: form.css compression in BE not working when TYPO3 is in a subfolder added
Updated by Benni Mack about 5 years ago
Can you give us more information about your server setup? Apache2 / PHP-FPM or built-in etc?
Updated by Bastian Stargazer about 5 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?
Updated by Markus Klein about 5 years ago
- Target version deleted (
10 LTS)
Like you wrote in #89124, do you access the instance with the IP here as well?
Updated by Markus Klein about 5 years ago
- Status changed from New to Needs Feedback
Updated by Markus Klein about 5 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
Updated by Markus Klein about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Markus Klein about 5 years ago
- Has duplicate Bug #89421: Installation in Subfolder: realtive URls added
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Gerrit Code Review about 5 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
Updated by Markus Klein about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6c6baa8787b5fa092db801ab15584617f6e78233.
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed
Updated by JF Belsile over 3 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)
Updated by Markus Klein over 3 years ago
Please create a new ticket and only reference this one. Thanks.
Updated by Markus Klein over 2 years ago
- Related to Bug #95848: ResourceCompressor can't deal with paths relative to docroot (Reoccurrence) added