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).