Bug #79218
Updated by Wittkiel Gruppe over 7 years ago
When open_basedir is used, every backend request causes multiple errors in sys_log like this: <pre> Core: Error handler (BE): PHP Warning: is_file(): open_basedir restriction in effect. File(/var/www/example.com/web/../typo3temp/assets/compressed/xtheme-t3skin-70db1845fe267782b0d773e08dad338b.css) is not within the allowed path(s): (/var/www/clients/client1/web1/web:/var/www/clients/client1/web1/private:/var/www/clients/client1/web1/tmp:/var/www/example.com/web:/srv/www/example.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web1/web/typo3_src-8.7.0/typo3/sysext/core/Classes/Resource/ResourceCompressor.php /var/www/clients/client1/web1/web/typo3_src-8.5.1/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 440 438 </pre> Bug introduced with patch for #78803. Easy fix would be to suppress warning with "@" in line 440 438 in ResourceCompressor.php: <pre> // if the file is an absolute reference within the docRoot $absolutePath = $docRoot . '/' . $fileNameWithoutSlash; if (@is_file($absolutePath)) { ... } </pre> Operating system: Unix TYPO3: 8.7.0 8.5.1 PHP: 7.0.15 7.0.8