Issue Bug Closed

#95848ResourceCompressor can't deal with paths relative to docroot (Reoccurrence)

JF Belsile 11/02/21, 12:49 updated 06/20/24, 13:06

Description

Everything have been working properly but started to use the form extension and notice this behavior since then.

We are having resources loading errors when compression is active on the backend, some files are not getting loaded resulting in a broken backend. When in debug mode, files are getting loaded properly since no compression occurs.

We have many docker composer instances running multiple sites using symlinks, as shown below.

Folder structure

root@8347040050b5:/var/www/html# ll
total 0
drwxr-xr-x 1 www-data www-data 101 Nov  1 16:34 _instance
lrwxrwxrwx 1 www-data www-data  16 Nov  1 20:09 toolbox-api_typo3-test-dev -> _instance/public
lrwxrwxrwx 1 www-data www-data  16 Nov  1 20:09 typo3_test-belj1822 -> _instance/public
lrwxrwxrwx 1 www-data www-data  16 Nov  1 20:09 typo3_test-dev -> _instance/public
lrwxrwxrwx 1 www-data www-data  16 Nov  1 20:09 typo3_test-dev-institutionnel -> _instance/public
lrwxrwxrwx 1 www-data www-data  16 Nov  1 20:09 typo3_test-petd2206-rename -> _instance/public
lrwxrwxrwx 1 www-data www-data  16 Nov  1 20:09 typo3_test-petd2206-titre-4 -> _instance/public
root@8347040050b5:/var/www/html# ll _instance/public/
total 8
drwxr-xr-x 11 www-data www-data  218 Nov  1 16:34 fileadmin
-rw-r--r--  1 www-data www-data  987 Nov  1 15:55 index.php
drwxr-xr-x  1 www-data www-data   56 Nov  1 15:55 typo3
drwxr-xr-x  3 www-data www-data  107 Nov  1 16:34 typo3conf
drwxr-xr-x  3 www-data www-data 4096 Nov  1 16:34 typo3temp
drwxr-xr-x  2 www-data www-data   22 Mar 19  2021 uploads
root@8347040050b5:/var/www/html# 

Errors

Mon, 01 Nov 2021 20:22:17 -0400 [WARNING] request="01a90633219a8" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (BE): PHP Warning: file_get_contents(/var/www/html/_instance/public/typo3//MY_SITE_NAME/typo3/sysext/form/Resources/Public/Css/form.css): failed to open stream: No such file or directory in /var/www/html/_instance/public/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 284

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.